57 lines
1.7 KiB
Plaintext
57 lines
1.7 KiB
Plaintext
|
|
||
|
server {
|
||
|
# resolver 127.0.0.11 valid=30s; ## internal docker dns
|
||
|
#listen [::]:3011 default ipv6only=on; ## listen for ipv6
|
||
|
listen 80;
|
||
|
client_header_timeout 120s;
|
||
|
client_body_timeout 120s;
|
||
|
client_max_body_size 200m;
|
||
|
|
||
|
# save logs here
|
||
|
|
||
|
server_name ${SERVER_NAME};
|
||
|
|
||
|
|
||
|
location / {
|
||
|
return 301 https://${DOLLAR}host${DOLLAR}request_uri;
|
||
|
}
|
||
|
}
|
||
|
server {
|
||
|
# resolver 127.0.0.11 valid=30s; ## internal docker dns
|
||
|
#listen [::]:3011 default ipv6only=on; ## listen for ipv6
|
||
|
# listen on port 80
|
||
|
# listen 443
|
||
|
listen 443 ssl;
|
||
|
# this should allow large docs
|
||
|
client_header_timeout 120s;
|
||
|
client_body_timeout 120s;
|
||
|
client_max_body_size 200m;
|
||
|
ssl_certificate /etc/letsencrypt/live/${SERVER_NAME}/fullchain.pem;
|
||
|
ssl_certificate_key /etc/letsencrypt/live/${SERVER_NAME}/privkey.pem;
|
||
|
# save logs here
|
||
|
#access_log /var/log/nginx/access.log compression;
|
||
|
|
||
|
server_name ${SERVER_NAME};
|
||
|
|
||
|
location /sockjs {
|
||
|
proxy_pass ${PROXY_PASS}sockjs;
|
||
|
proxy_http_version 1.1;
|
||
|
proxy_set_header Upgrade ${DOLLAR}http_upgrade;
|
||
|
proxy_set_header Connection "Upgrade";
|
||
|
proxy_set_header Host ${DOLLAR}host;
|
||
|
}
|
||
|
location /sockjs/ {
|
||
|
proxy_pass ${PROXY_PASS}sockjs/;
|
||
|
proxy_http_version 1.1;
|
||
|
proxy_set_header Upgrade ${DOLLAR}http_upgrade;
|
||
|
proxy_set_header Connection "Upgrade";
|
||
|
proxy_set_header Host ${DOLLAR}host;
|
||
|
}
|
||
|
location / {
|
||
|
proxy_pass ${PROXY_PASS};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|