Exnus commited on
Commit
e330231
·
verified ·
1 Parent(s): 2336869

Update nginx.conf

Browse files
Files changed (1) hide show
  1. 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
  }