forked from allenai/pawls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.conf
36 lines (28 loc) · 882 Bytes
/
local.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
server {
listen [::]:80;
listen 80;
charset utf-8;
expires -1;
# For local development, it will appear that this is the logged-in user.
proxy_set_header X-Auth-Request-User 12345;
proxy_set_header X-Auth-Request-Email [email protected];
location / {
proxy_pass http://ui:3000;
}
location /openapi.json {
proxy_pass http://api:8000;
}
location /docs {
proxy_pass http://api:8000;
}
# This allows a websocket connection between the client and the webpack development server,
# so that webpack can reload the developer's browser after they make changes.
location /sockjs-node {
proxy_pass http://ui:3000;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
location /api {
proxy_pass http://api:8000;
}
}