Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2022
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. server {
  2. listen 443 ssl;
  3. listen [::]:443 ssl;
  4. include snippets/self-signed.conf;
  5. include snippets/ssl-params.conf;
  6.  
  7. root /var/www/nightscoutkp.local/html;
  8. index index.html index.htm index.nginx-debian.html;
  9.  
  10. server_name nightscoutkp.local nightscoutkp.local;
  11.  
  12. location / {
  13.  
  14. try_files $uri $uri/ =404;
  15. }
  16. }
  17.  
  18. server {
  19. listen 80;
  20. listen [::]:80;
  21.  
  22. server_name nightscoutkp.local nightscoutkp.local;
  23.  
  24. return 302 https://$server_name$request_uri;
  25.  
  26. location / {
  27. proxy_pass http://127.0.0.1:1337;
  28. proxy_set_header Upgrade $http_upgrade;
  29. proxy_set_header Connection "upgrade";
  30. proxy_set_header X-Forwarded-Proto "https";
  31. }
  32. }
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement