-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.conf.template
43 lines (34 loc) · 1016 Bytes
/
default.conf.template
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
server {
listen 80;
listen 443 http2 ssl;
server_name collabsketch.app;
ssl_certificate /etc/nginx/certs/cert.pem;
ssl_certificate_key /etc/nginx/certs/key.pem;
rewrite_log on;
client_max_body_size 11M;
server_name localhost;
client_header_buffer_size 64k;
large_client_header_buffers 4 64k;
add_header Last-Modified $date_gmt;
add_header Cache-Control 'no-store, must-revalidate';
if_modified_since off;
expires off;
etag off;
root /usr/share/nginx/html;
location / {
try_files $uri /index.html;
}
location /internal/health {
access_log off;
default_type text/plain;
return 200 "OK";
}
location /ws/ {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:2567/;
}
}