haini.sh/nginx.conf

26 lines
592 B
Nginx Configuration File
Raw Normal View History

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";
2021-08-25 21:08:22 +00:00
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;
}
}