Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name sc.hackathon.simonphilouze.fr www.sc.hackathon.simonphilouze.fr;
- location / {
- proxy_pass http://127.0.0.1:8888;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- }
- listen [::]:443 ssl; # managed by Certbot
- listen 443 ssl; # managed by Certbot
- ssl_certificate /etc/letsencrypt/live/sc.hackathon.simonphilouze.fr/fullchain.pem; # managed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/sc.hackathon.simonphilouze.fr/privkey.pem; # managed by Certbot
- include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
- ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
- }
- server {
- if ($host = sc.hackathon.simonphilouze.fr) {
- return 301 https://$host$request_uri;
- } # managed by Certbot
- listen 80;
- listen [::]:80;
- server_name sc.hackathon.simonphilouze.fr www.sc.hackathon.simonphilouze.fr;
- return 404; # managed by Certbot
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement