@@ -25,9 +25,15 @@ http {
25
25
ssl_certificate_key /etc/nginx/ssl/live/web.dev.open-assistant.io/privkey.pem;
26
26
27
27
location / {
28
- proxy_set_header Host $host ;
29
- proxy_set_header X-Real-IP $remote_addr ;
30
- proxy_pass http://127.0.0.1:3000;
28
+ proxy_set_header Host $host ;
29
+ proxy_set_header X-Real-IP $remote_addr ;
30
+ proxy_pass http://127.0.0.1:3000;
31
+
32
+ proxy_set_header Connection '' ;
33
+ proxy_http_version 1.1 ;
34
+ chunked_transfer_encoding off ;
35
+ proxy_buffering off ;
36
+ proxy_cache off ;
31
37
}
32
38
}
33
39
@@ -40,16 +46,16 @@ http {
40
46
ssl_certificate_key /etc/nginx/ssl/live/backend.dev.open-assistant.io/privkey.pem;
41
47
42
48
location / {
43
- proxy_set_header Host $host ;
44
- proxy_set_header X-Real-IP $remote_addr ;
45
- proxy_pass http://127.0.0.1:8080;
49
+ proxy_set_header Host $host ;
50
+ proxy_set_header X-Real-IP $remote_addr ;
51
+ proxy_pass http://127.0.0.1:8080;
46
52
}
47
53
}
48
54
49
55
map $http_upgrade $connection_upgrade {
50
- default upgrade;
51
- '' close;
52
- }
56
+ default upgrade;
57
+ '' close;
58
+ }
53
59
54
60
server {
55
61
listen 443 ssl http2;
60
66
ssl_certificate_key /etc/nginx/ssl/live/inference.dev.open-assistant.io/privkey.pem;
61
67
62
68
location / {
63
- proxy_set_header Host $host ;
64
- proxy_set_header X-Real-IP $remote_addr ;
69
+ proxy_set_header Host $host ;
70
+ proxy_set_header X-Real-IP $remote_addr ;
65
71
66
72
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
67
73
proxy_set_header X-Forwarded-Proto $scheme ;
70
76
proxy_redirect off ;
71
77
proxy_buffering off ;
72
78
73
- proxy_pass http://127.0.0.1:8085;
79
+ proxy_pass http://127.0.0.1:8085;
74
80
}
75
81
}
76
82
@@ -86,9 +92,15 @@ http {
86
92
ssl_certificate_key /etc/nginx/ssl/live/web.staging.open-assistant.io/privkey.pem;
87
93
88
94
location / {
89
- proxy_set_header Host $host ;
90
- proxy_set_header X-Real-IP $remote_addr ;
91
- proxy_pass http://127.0.0.1:3100;
95
+ proxy_set_header Host $host ;
96
+ proxy_set_header X-Real-IP $remote_addr ;
97
+ proxy_pass http://127.0.0.1:3100;
98
+
99
+ proxy_set_header Connection '' ;
100
+ proxy_http_version 1.1 ;
101
+ chunked_transfer_encoding off ;
102
+ proxy_buffering off ;
103
+ proxy_cache off ;
92
104
}
93
105
}
94
106
@@ -101,9 +113,9 @@ http {
101
113
ssl_certificate_key /etc/nginx/ssl/live/backend.staging.open-assistant.io/privkey.pem;
102
114
103
115
location / {
104
- proxy_set_header Host $host ;
105
- proxy_set_header X-Real-IP $remote_addr ;
106
- proxy_pass http://127.0.0.1:8180;
116
+ proxy_set_header Host $host ;
117
+ proxy_set_header X-Real-IP $remote_addr ;
118
+ proxy_pass http://127.0.0.1:8180;
107
119
}
108
120
}
109
121
@@ -116,9 +128,17 @@ http {
116
128
ssl_certificate_key /etc/nginx/ssl/live/inference.staging.open-assistant.io/privkey.pem;
117
129
118
130
location / {
119
- proxy_set_header Host $host ;
120
- proxy_set_header X-Real-IP $remote_addr ;
121
- proxy_pass http://127.0.0.1:8185;
131
+ proxy_set_header Host $host ;
132
+ proxy_set_header X-Real-IP $remote_addr ;
133
+
134
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
135
+ proxy_set_header X-Forwarded-Proto $scheme ;
136
+ proxy_set_header Upgrade $http_upgrade ;
137
+ proxy_set_header Connection $connection_upgrade ;
138
+ proxy_redirect off ;
139
+ proxy_buffering off ;
140
+
141
+ proxy_pass http://127.0.0.1:8185;
122
142
}
123
143
}
124
144
0 commit comments