Skip to content

Instantly share code, notes, and snippets.

@tilllt
Created May 16, 2017 12:33
Show Gist options
  • Save tilllt/f6244ba99d1a331e104daaa18eb4639d to your computer and use it in GitHub Desktop.
Save tilllt/f6244ba99d1a331e104daaa18eb4639d to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name cloud.domain.de;
# enforce https
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name cloud.domain.de;
ssl_certificate /etc/letsencrypt/live/domain.de/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain.de/privkey.pem;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment