Skip to content

Commit 8b5e388

Browse files
author
Dan Kelley
committed
set config for client and server
1 parent 6ec3251 commit 8b5e388

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/client/nginx-client.conf

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
1+
upstream backend {
2+
server paws-compose-server:5000;
3+
}
4+
15
server {
26
listen 80;
37
server_name localhost;
8+
client_max_body_size 100M;
9+
410
location / {
511
root /usr/share/nginx/html;
612
index index.html index.htm;
713
}
14+
815
location /api {
9-
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";
1028
}
1129
}

0 commit comments

Comments
 (0)