Merge pull request '添加 default.conf' (#419) from zhangkaihuai-patch-3 into dev
Reviewed-on: http://git.feashow.cn/clay/tunnel-cloud-web/pulls/419
This commit is contained in:
19
default.conf
Normal file
19
default.conf
Normal file
@@ -0,0 +1,19 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
location /api {
|
||||
proxy_pass http://gateway.dev.svc.cluster.local:8080;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Port $server_port;
|
||||
#proxy_set_header Host $host;
|
||||
rewrite "^/api/(.*)$" /$1 break;
|
||||
}
|
||||
|
||||
location / {
|
||||
root /home/clay;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user