Spaces:
Running
Running
Commit ·
2ab29ec
1
Parent(s): 040aee9
Update nginx
Browse files- nginx.conf +16 -0
nginx.conf
CHANGED
|
@@ -61,6 +61,22 @@ http {
|
|
| 61 |
proxy_buffering off;
|
| 62 |
}
|
| 63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
# all other requests -> internal 3000
|
| 65 |
location / {
|
| 66 |
proxy_pass http://app_http;
|
|
|
|
| 61 |
proxy_buffering off;
|
| 62 |
}
|
| 63 |
|
| 64 |
+
#/api/jobs and /api/jobs/** -> internal 8083
|
| 65 |
+
location ^~ /api/jobs {
|
| 66 |
+
proxy_pass http://renderer$request_uri;
|
| 67 |
+
proxy_http_version 1.1;
|
| 68 |
+
proxy_set_header Host $host;
|
| 69 |
+
proxy_set_header X-Real-IP $remote_addr;
|
| 70 |
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
| 71 |
+
proxy_set_header X-Forwarded-Proto $scheme;
|
| 72 |
+
|
| 73 |
+
# WebSocket headers
|
| 74 |
+
proxy_set_header Upgrade $http_upgrade;
|
| 75 |
+
proxy_set_header Connection $connection_upgrade;
|
| 76 |
+
|
| 77 |
+
proxy_buffering off;
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
# all other requests -> internal 3000
|
| 81 |
location / {
|
| 82 |
proxy_pass http://app_http;
|