-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx.conf
45 lines (36 loc) · 912 Bytes
/
nginx.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
37
38
39
40
41
42
43
44
45
events {}
http {
include mime.types;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
location /graphql {
# NB: match it in .env[BACKENDPORT] too !
proxy_pass http://backend:4000;
}
location /_next/webpack-hmr {
proxy_pass http://frontend:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
location ~ (/upload|/files) {
proxy_pass http://imagesupload:8000;
}
# location /upload {
# proxy_pass http://imagesupload:8000;
# }
location /adminer {
proxy_pass http://adminer:8080;
}
location / {
# NB: match it in .env[NEXT_PUBLIC_FRONTENDPORT] too !
proxy_pass http://frontend:3000;
# root /pgdata_new1;
# try_files $uri /index.html;
}
}
}