Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. server {
  2. server_name sc.hackathon.simonphilouze.fr www.sc.hackathon.simonphilouze.fr;
  3.  
  4. location / {
  5. proxy_pass http://127.0.0.1:8888;
  6. proxy_http_version 1.1;
  7. proxy_set_header Upgrade $http_upgrade;
  8. proxy_set_header Connection "upgrade";
  9. }
  10.  
  11. listen [::]:443 ssl; # managed by Certbot
  12. listen 443 ssl; # managed by Certbot
  13. ssl_certificate /etc/letsencrypt/live/sc.hackathon.simonphilouze.fr/fullchain.pem; # managed by Certbot
  14. ssl_certificate_key /etc/letsencrypt/live/sc.hackathon.simonphilouze.fr/privkey.pem; # managed by Certbot
  15. include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  16. ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  17. }
  18.  
  19. server {
  20. if ($host = sc.hackathon.simonphilouze.fr) {
  21. return 301 https://$host$request_uri;
  22. } # managed by Certbot
  23.  
  24. listen 80;
  25. listen [::]:80;
  26.  
  27. server_name sc.hackathon.simonphilouze.fr www.sc.hackathon.simonphilouze.fr;
  28. return 404; # managed by Certbot
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement