Spaces:
Runtime error
Runtime error
Update nginx.conf
Browse files- nginx.conf +11 -19
nginx.conf
CHANGED
@@ -1,20 +1,12 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
proxy_bind $server_addr;
|
9 |
proxy_pass https://chat.openai.com;
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
#proxy_set_header X-Real-IP $remote_addr;
|
15 |
-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
16 |
-
#proxy_cache_bypass $http_upgrade;
|
17 |
-
#proxy_read_timeout 86400;
|
18 |
-
#proxy_redirect off;
|
19 |
-
}
|
20 |
-
}
|
|
|
1 |
+
location / {
|
2 |
+
proxy_ssl_server_name on;
|
3 |
+
gzip off;
|
4 |
+
proxy_set_header Accept-Encoding "";
|
5 |
+
add_header Host 1337xx.to;
|
6 |
+
proxy_pass_request_headers on;
|
7 |
+
proxy_http_version 1.1;
|
|
|
8 |
proxy_pass https://chat.openai.com;
|
9 |
+
sub_filter_types text/html application/javascript application/x-javascript text/javascript;
|
10 |
+
sub_filter "chat.openai.com" "exnus-nginx-reverse-proxy.hf.space";
|
11 |
+
sub_filter_once off;
|
12 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|