Spaces:
Running
Running
Commit
·
ae2b780
1
Parent(s):
3509d8b
Update nginx.conf
Browse files- nginx.conf +4 -9
nginx.conf
CHANGED
@@ -6,11 +6,6 @@ events {
|
|
6 |
|
7 |
http {
|
8 |
|
9 |
-
map $http_upgrade $connection_upgrade {
|
10 |
-
default upgrade;
|
11 |
-
'' close;
|
12 |
-
}
|
13 |
-
|
14 |
server {
|
15 |
listen 7860 default_server;
|
16 |
listen [::]:7860 default_server;
|
@@ -20,7 +15,7 @@ http {
|
|
20 |
location /kangas/ {
|
21 |
proxy_pass http://localhost:7640/kangas/;
|
22 |
proxy_set_header Upgrade $http_upgrade;
|
23 |
-
proxy_set_header Connection '
|
24 |
proxy_set_header Host $host;
|
25 |
proxy_set_header X-Real-IP $remote_addr;
|
26 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
@@ -32,7 +27,7 @@ http {
|
|
32 |
location /_next/ {
|
33 |
proxy_pass http://localhost:7640/kangas/_next;
|
34 |
proxy_set_header Upgrade $http_upgrade;
|
35 |
-
proxy_set_header Connection '
|
36 |
proxy_set_header Host $host;
|
37 |
proxy_set_header X-Real-IP $remote_addr;
|
38 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
@@ -44,7 +39,7 @@ http {
|
|
44 |
location /api/ {
|
45 |
proxy_pass http://localhost:7640/kangas/_next;
|
46 |
proxy_set_header Upgrade $http_upgrade;
|
47 |
-
proxy_set_header Connection '
|
48 |
proxy_set_header Host $host;
|
49 |
proxy_set_header X-Real-IP $remote_addr;
|
50 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
@@ -56,7 +51,7 @@ http {
|
|
56 |
location / {
|
57 |
proxy_pass http://localhost:7840/;
|
58 |
proxy_set_header Upgrade $http_upgrade;
|
59 |
-
proxy_set_header Connection
|
60 |
proxy_set_header Host $host;
|
61 |
proxy_set_header X-Real-IP $remote_addr;
|
62 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
6 |
|
7 |
http {
|
8 |
|
|
|
|
|
|
|
|
|
|
|
9 |
server {
|
10 |
listen 7860 default_server;
|
11 |
listen [::]:7860 default_server;
|
|
|
15 |
location /kangas/ {
|
16 |
proxy_pass http://localhost:7640/kangas/;
|
17 |
proxy_set_header Upgrade $http_upgrade;
|
18 |
+
proxy_set_header Connection 'Upgrade';
|
19 |
proxy_set_header Host $host;
|
20 |
proxy_set_header X-Real-IP $remote_addr;
|
21 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
27 |
location /_next/ {
|
28 |
proxy_pass http://localhost:7640/kangas/_next;
|
29 |
proxy_set_header Upgrade $http_upgrade;
|
30 |
+
proxy_set_header Connection 'Upgrade';
|
31 |
proxy_set_header Host $host;
|
32 |
proxy_set_header X-Real-IP $remote_addr;
|
33 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
39 |
location /api/ {
|
40 |
proxy_pass http://localhost:7640/kangas/_next;
|
41 |
proxy_set_header Upgrade $http_upgrade;
|
42 |
+
proxy_set_header Connection 'Upgrade';
|
43 |
proxy_set_header Host $host;
|
44 |
proxy_set_header X-Real-IP $remote_addr;
|
45 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
51 |
location / {
|
52 |
proxy_pass http://localhost:7840/;
|
53 |
proxy_set_header Upgrade $http_upgrade;
|
54 |
+
proxy_set_header Connection 'Upgrade';
|
55 |
proxy_set_header Host $host;
|
56 |
proxy_set_header X-Real-IP $remote_addr;
|
57 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|