File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ ARG TOOLS=" \
1414 curl \
1515 apache2-utils \
1616 vim \
17+ logrotate \
1718 "
1819
1920RUN set -ex \
Original file line number Diff line number Diff line change 11location /chen/ {
2- proxy_pass http://chen:8082;
2+ set $chen_upstream chen:8082;
3+ proxy_pass http://$chen_upstream;
34 proxy_buffering off;
45 proxy_http_version 1.1;
56 proxy_request_buffering off;
Original file line number Diff line number Diff line change 1717
1818 location /web/health/ {
1919 access_log off;
20- add_header Content-Type ' application/json' ;
20+ default_type application/json;
2121 return 200 '{"status": "ok"}';
2222 }
2323
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ location /private-media/ {
88}
99
1010location /ws/ {
11- proxy_pass http://core:8080;
11+ set $core_upstream core:8080;
12+ proxy_pass http://$core_upstream;
1213 proxy_buffering off;
1314 proxy_http_version 1.1;
1415 proxy_set_header Upgrade $http_upgrade;
@@ -18,7 +19,8 @@ location /ws/ {
1819}
1920
2021location ~ ^/(core|api|media)/ {
21- proxy_pass http://core:8080;
22+ set $core_upstream core:8080;
23+ proxy_pass http://$core_upstream;
2224 proxy_set_header Host $http_host;
2325 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2426 proxy_ignore_client_abort on;
Original file line number Diff line number Diff line change 11location /koko/ {
2- proxy_pass http://koko:5000;
2+ set $koko_upstream koko:5000;
3+ proxy_pass http://$koko_upstream;
34 proxy_buffering off;
45 proxy_http_version 1.1;
56 proxy_request_buffering off;
Original file line number Diff line number Diff line change 11location /lion/ {
2- proxy_pass http://lion:8081;
2+ set $lion_upstream lion:8081;
3+ proxy_pass http://$lion_upstream;
34 proxy_buffering off;
45 proxy_http_version 1.1;
56 proxy_request_buffering off;
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ stream {
2525http {
2626 include /etc/nginx/mime.types ;
2727 default_type application/octet-stream ;
28+ resolver 127.0.0.11 valid=10s ipv6=off;
29+ resolver_timeout 5s ;
2830
2931 log_format main '$remote_addr - $remote_user [$time_local] "$request" '
3032 '$status $body_bytes_sent "$http_referer" '
You can’t perform that action at this time.
0 commit comments