Spaces:
Runtime error
Runtime error
antonovmaxim
commited on
Commit
•
46c9c7e
1
Parent(s):
41c9fe0
Update nginx.conf
Browse files- nginx.conf +11 -12
nginx.conf
CHANGED
@@ -1,13 +1,12 @@
|
|
1 |
-
|
2 |
-
|
|
|
|
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
#ssl_certificate /etc/nginx/ssl/localhost.crt; # путь к вашему cert
|
12 |
-
#ssl_certificate_key /etc/nginx/ssl/localhost.key; # путь к вашему ключу
|
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 |
+
}
|
|
|
|
|
|