Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 443 ssl;
- listen [::]:443 ssl;
- include snippets/self-signed.conf;
- include snippets/ssl-params.conf;
- root /var/www/nightscoutkp.local/html;
- index index.html index.htm index.nginx-debian.html;
- server_name nightscoutkp.local nightscoutkp.local;
- location / {
- try_files $uri $uri/ =404;
- }
- }
- server {
- listen 80;
- listen [::]:80;
- server_name nightscoutkp.local nightscoutkp.local;
- return 302 https://$server_name$request_uri;
- location / {
- proxy_pass http://127.0.0.1:1337;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_set_header X-Forwarded-Proto "https";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement