server { server_name ~(?.+).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/ { 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; } }