Skip to content

Commit 899816f

Browse files
committed
fix: Fix nginx.conf
1 parent a9ad907 commit 899816f

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

docker-deploy-data/nginx.conf

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,34 @@ http {
1111
keepalive_timeout 65;
1212
server {
1313
listen 80;
14-
server_name 0.0.0.0;# public ip or domain name
14+
server_name 127.0.0.1;# public ip or domain name
1515
location / {
1616
root /usr/share/nginx/html;
1717
index index.html index.htm;
1818
}
19-
location ~* ^/(.*-center)/(.*) {
20-
proxy_pass http://tiny-engine-back:9090/$1/$2;
19+
20+
21+
location /app-center/ {
22+
proxy_pass http://tiny-engine-back:9090/app-center/;
2123
proxy_set_header Host $host;
2224
proxy_set_header X-Real-IP $remote_addr;
2325
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
24-
proxy_set_header X-Forwarded-Proto $scheme;
26+
proxy_set_header X-Forwarded-Proto $scheme;
2527
}
28+
location /platform-center/ {
29+
proxy_pass http://tiny-engine-back:9090/platform-center/;
30+
proxy_set_header Host $host;
31+
proxy_set_header X-Real-IP $remote_addr;
32+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
33+
proxy_set_header X-Forwarded-Proto $scheme;
34+
}
35+
location /material-center/ {
36+
proxy_pass http://tiny-engine-back:9090/material-center/;
37+
proxy_set_header Host $host;
38+
proxy_set_header X-Real-IP $remote_addr;
39+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
40+
proxy_set_header X-Forwarded-Proto $scheme;
41+
}
2642
error_page 500 502 503 504 /50x.html;
2743
location = /50x.html {
2844
root html; }

0 commit comments

Comments
 (0)