Update nginx.conf
Browse files- nginx.conf +6 -6
nginx.conf
CHANGED
@@ -21,12 +21,12 @@ http {
|
|
21 |
try_files $uri $uri/ /index.html;
|
22 |
}
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
}
|
31 |
error_page 500 502 503 504 /50x.html;
|
32 |
location = /50x.html {
|
|
|
21 |
try_files $uri $uri/ /index.html;
|
22 |
}
|
23 |
|
24 |
+
location /prod-api/ {
|
25 |
+
proxy_set_header Host $http_host;
|
26 |
+
proxy_set_header X-Real-IP $remote_addr;
|
27 |
+
proxy_set_header REMOTE-HOST $remote_addr;
|
28 |
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
29 |
+
proxy_pass https://zhuyougu-api.hf.space;
|
30 |
}
|
31 |
error_page 500 502 503 504 /50x.html;
|
32 |
location = /50x.html {
|