Spaces:
Runtime error
Runtime error
Update nginx.conf
Browse files- nginx.conf +13 -0
nginx.conf
CHANGED
@@ -16,4 +16,17 @@ server {
|
|
16 |
sub_filter "chat.openai.com" "exnus-nginx-reverse-proxy.hf.space";
|
17 |
sub_filter_once off;
|
18 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
}
|
|
|
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 |
}
|