Revert "docker-swarm-review"
This reverts commit 49d2697ef4c5047934a642b0df656c5112d37509.
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
server {
|
||||
listen 18888;
|
||||
listen 18889 ssl;
|
||||
server_name file-gk.sino-assist.com;
|
||||
|
||||
include /etc/nginx/ssl.conf;
|
||||
|
||||
location /n1/ {
|
||||
proxy_pass http://192.168.3.125:8080/;
|
||||
proxy_set_header X-Forwarded-Host $server_name;
|
||||
if ($request_filename ~ .*\.(htm|html)$) {
|
||||
add_header Cache-Control no-cache;
|
||||
}
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://192.168.3.119:8888;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Host $server_name;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
|
||||
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
|
||||
if ($request_filename ~ .*\.(htm|html)$) {
|
||||
add_header Cache-Control no-cache;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user