-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnginx.dev.conf
More file actions
44 lines (39 loc) · 901 Bytes
/
nginx.dev.conf
File metadata and controls
44 lines (39 loc) · 901 Bytes
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
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
listen [::]:80;
# ssl_certificate /etc/nginx/ssl/concepts.local.crt;
# ssl_certificate_key /etc/nginx/ssl/concepts.local.key;
# ssl_protocols TLSv1.3;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_dhparam /etc/nginx/ssl/dhparam.pem;
#
# server_name concepts.local;
location / {
error_page 404 =200 /index.html;
root /var/www/html;
}
location /prisma {
proxy_pass http://prisma:4466/;
}
location = /graphql {
proxy_pass http://backend:4000;
}
location /api {
proxy_pass http://backend:4000;
}
location /playground {
proxy_pass http://backend:4000;
}
location /subscription {
proxy_pass http://backend:4000;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_connect_timeout 7d;
proxy_send_timeout 7d;
proxy_read_timeout 7d;
}
}