antonovmaxim commited on
Commit
fb68934
1 Parent(s): 46c9c7e

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +12 -11
nginx.conf CHANGED
@@ -1,12 +1,13 @@
1
- location/ {
2
- proxy_pass http://example.com;
3
- proxy_http_version 1.1;
4
- proxy_cache_bypass $http_upgrade;
5
 
6
- proxy_set_header Host $host;
7
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
8
- proxy_set_header X-Real-IP $remote_addr;
9
- proxy_set_header X-Forwarded-Host $host;
10
- proxy_set_header X-Forwarded-Proto $scheme;
11
- proxy_set_header X-Forwarded-Port $server_port;
12
- }
 
 
 
 
1
+ server {
2
+ listen 7860;
 
 
3
 
4
+ location / {
5
+ proxy_ssl_server_name on;
6
+ proxy_pass https://gpt.darkcoder15.tk/;
7
+ }
8
+
9
+ # Установите следующие два блока, если у вас есть SSL для localhost
10
+ #ssl on;
11
+ #ssl_certificate /etc/nginx/ssl/localhost.crt; # путь к вашему cert
12
+ #ssl_certificate_key /etc/nginx/ssl/localhost.key; # путь к вашему ключу
13
+ }