Spaces:
Runtime error
Runtime error
Update nginx.conf
Browse files- nginx.conf +1 -14
nginx.conf
CHANGED
@@ -13,20 +13,7 @@ server {
|
|
13 |
proxy_http_version 1.1;
|
14 |
proxy_pass https://chat.openai.com;
|
15 |
sub_filter_types text/html application/javascript application/x-javascript text/javascript;
|
16 |
-
sub_filter "chat.openai.com" "exnus-nginx-reverse-proxy.hf.space";
|
17 |
-
sub_filter_once off;
|
18 |
-
}
|
19 |
-
|
20 |
-
location / {
|
21 |
-
proxy_ssl_server_name on;
|
22 |
-
gzip off;
|
23 |
-
proxy_set_header Accept-Encoding "";
|
24 |
-
add_header Host cdn.oaistatic.com;
|
25 |
-
proxy_pass_request_headers on;
|
26 |
-
proxy_http_version 1.1;
|
27 |
-
proxy_pass https://cdn.oaistatic.com;
|
28 |
-
sub_filter_types text/html application/javascript application/x-javascript text/javascript;
|
29 |
-
sub_filter "cdn.oaistatic.com" "exnus-nginx-reverse-proxy.hf.space";
|
30 |
sub_filter_once off;
|
31 |
}
|
32 |
}
|
|
|
13 |
proxy_http_version 1.1;
|
14 |
proxy_pass https://chat.openai.com;
|
15 |
sub_filter_types text/html application/javascript application/x-javascript text/javascript;
|
16 |
+
sub_filter "chat.openai.com" "cdn.oaistatic.com" "exnus-nginx-reverse-proxy.hf.space";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
sub_filter_once off;
|
18 |
}
|
19 |
}
|