-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ services: | |
volumes: | ||
- .:/app | ||
ports: | ||
- 1316:1316 | ||
- 1500:1500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
events { } | ||
|
||
http { | ||
proxy_cache_path /opt/cache/ keys_zone=cache:10m max_size=10g inactive=12h; | ||
|
||
server { | ||
listen 1501; | ||
listen [::]:1501; | ||
|
||
server_name localhost; | ||
|
||
location / { | ||
proxy_cache cache; | ||
proxy_cache_key $scheme$proxy_host$request_uri$http_accept; | ||
proxy_cache_min_uses 2; | ||
proxy_cache_valid any 7d; | ||
|
||
add_header Access-Control-Allow-Origin *; | ||
add_header Access-Control-Allow-Methods 'GET'; | ||
|
||
proxy_pass http://web:1500/; | ||
} | ||
} | ||
} |