-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnginx.conf
More file actions
29 lines (25 loc) · 749 Bytes
/
Copy pathnginx.conf
File metadata and controls
29 lines (25 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
events {}
http {
server {
listen 80;
location /demo-service {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_set_header USE_X_FORWARDED_HOST True;
proxy_set_header SCRIPT_NAME /demo-service;
proxy_connect_timeout 6000;
proxy_read_timeout 6000;
proxy_pass http://web:8000;
}
location /demo2-service {
proxy_pass http://web:8000;
rewrite ^/demo2-service(.*)$ $1 break;
}
location / {
proxy_redirect off;
}
}
}