Created
May 15, 2018 14:38
-
-
Save borkdude/97365509675c9cdc1449fa5d972fef85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { listen 80; | |
server_name twitter.michielborkent.nl; | |
access_log /var/log/twitter-service.log; | |
location /.well-known { | |
alias /var/www/twitter.michielborkent.nl/.well-known; | |
} | |
location / { | |
proxy_pass http://localhost:8080; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto https; | |
} | |
listen 443 ssl; # managed by Certbot | |
ssl_certificate /etc/letsencrypt/live/eetvoorjeleven.nu-0001/fullchain.pem; # managed by Certbot | |
ssl_certificate_key /etc/letsencrypt/live/eetvoorjeleven.nu-0001/privkey.pem; # managed by Certbot | |
ssl_session_cache shared:le_nginx_SSL:1m; # managed by Certbot | |
ssl_session_timeout 1440m; # managed by Certbot | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # managed by Certbot | |
ssl_prefer_server_ciphers on; # managed by Certbot | |
ssl_ciphers "..."; # managed by Certbot | |
if ($scheme != "https") { | |
return 301 https://$host$request_uri; | |
} # managed by Certbot | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment