Skip to content

Instantly share code, notes, and snippets.

@Aracki
Last active January 25, 2019 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aracki/dd9391051552fc186b0f73829ec4ae11 to your computer and use it in GitHub Desktop.
Save Aracki/dd9391051552fc186b0f73829ec4ae11 to your computer and use it in GitHub Desktop.
Simple Nginx config. TLS enabled with LetsEncrypt. Redirection HTTP to HTTPs.
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
}
@Aracki
Copy link
Author

Aracki commented Jan 25, 2019

server part not needed if Golang program serves the TLS!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment