Spaces:
Sleeping
Sleeping
epii-1
commited on
Commit
·
7958498
1
Parent(s):
3638a31
222222
Browse files- nginx.conf +4 -6
nginx.conf
CHANGED
|
@@ -21,23 +21,21 @@ http {
|
|
| 21 |
server {
|
| 22 |
listen 7860;
|
| 23 |
server_name 0.0.0.0;
|
| 24 |
-
|
| 25 |
-
|
| 26 |
location / {
|
| 27 |
root /usr/share/nginx/html;
|
| 28 |
try_files $uri $uri/ /index.html;
|
| 29 |
}
|
| 30 |
|
| 31 |
-
|
| 32 |
rewrite ^/api/(.*)$ /$1 break;
|
| 33 |
-
proxy_pass http://
|
| 34 |
proxy_set_header Host $host;
|
| 35 |
proxy_set_header X-Real-IP $remote_addr;
|
| 36 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
| 37 |
proxy_set_header X-Forwarded-Proto $scheme;
|
| 38 |
}
|
| 39 |
-
|
| 40 |
-
proxy_pass http://
|
| 41 |
proxy_set_header Host $host;
|
| 42 |
}
|
| 43 |
error_page 500 502 503 504 /50x.html;
|
|
|
|
| 21 |
server {
|
| 22 |
listen 7860;
|
| 23 |
server_name 0.0.0.0;
|
|
|
|
|
|
|
| 24 |
location / {
|
| 25 |
root /usr/share/nginx/html;
|
| 26 |
try_files $uri $uri/ /index.html;
|
| 27 |
}
|
| 28 |
|
| 29 |
+
location /api/ {
|
| 30 |
rewrite ^/api/(.*)$ /$1 break;
|
| 31 |
+
proxy_pass http://127.0.0.1:8009;
|
| 32 |
proxy_set_header Host $host;
|
| 33 |
proxy_set_header X-Real-IP $remote_addr;
|
| 34 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
| 35 |
proxy_set_header X-Forwarded-Proto $scheme;
|
| 36 |
}
|
| 37 |
+
location /tele-images/ {
|
| 38 |
+
proxy_pass http://127.0.0.1:8009;
|
| 39 |
proxy_set_header Host $host;
|
| 40 |
}
|
| 41 |
error_page 500 502 503 504 /50x.html;
|