Last active
January 25, 2019 10:25
-
-
Save Aracki/dd9391051552fc186b0f73829ec4ae11 to your computer and use it in GitHub Desktop.
Simple Nginx config. TLS enabled with LetsEncrypt. Redirection HTTP to HTTPs.
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 { | |
server_name www.aracki.me aracki.me; | |
return 301 https://aracki.me$request_uri; | |
} | |
server { | |
ssl_certificate /etc/letsencrypt/live/aracki.me/fullchain.pem; # managed by Certbot | |
ssl_certificate_key /etc/letsencrypt/live/aracki.me/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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
server
part not needed if Golang program serves the TLS!