haini.sh/nginx.conf
2021-08-25 19:35:53 -03:00

25 lines
592 B
Nginx Configuration File

server {
server_name ~(?<domain>.+).sutty.local;
listen 4000 ssl http2 default_server;
ssl_certificate /etc/ssl/certs/sutty.local.crt;
ssl_certificate_key /etc/ssl/private/sutty.local.key;
root /Sutty/$domain-jekyll-theme/_site;
add_header Cache-Control "no-store; max-age=0";
location /assets/js/pack.js {
proxy_pass http://127.0.0.1:65001;
}
location /sw.js {
proxy_pass http://127.0.0.1:65001;
}
location /sockjs-node/ {
proxy_set_header Connection "upgrade";
proxy_set_header Upgrade $http_upgrade;
proxy_pass http://127.0.0.1:65001;
}
}