We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ec3251 commit 8b5e388Copy full SHA for 8b5e388
src/client/nginx-client.conf
@@ -1,11 +1,29 @@
1
+upstream backend {
2
+ server paws-compose-server:5000;
3
+}
4
+
5
server {
6
listen 80;
7
server_name localhost;
8
+ client_max_body_size 100M;
9
10
location / {
11
root /usr/share/nginx/html;
12
index index.html index.htm;
13
}
14
15
location /api {
- proxy_pass http://paws-compose-server:5000;
16
+ try_files $uri @backend;
17
+ }
18
19
+ location @backend {
20
+ proxy_pass http://backend;
21
+ proxy_set_header X-Real-IP $remote_addr;
22
+ proxy_set_header Host $host;
23
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
24
+ # Following is necessary for Websocket support
25
+ # proxy_http_version 1.1;
26
+ # proxy_set_header Upgrade $http_upgrade;
27
+ # proxy_set_header Connection "upgrade";
28
29
0 commit comments