Skip to content

Instantly share code, notes, and snippets.

@ha1fdan
Created October 2, 2022 13:01
Show Gist options
  • Save ha1fdan/13360efebf1ddf2212539e8b9e7cf899 to your computer and use it in GitHub Desktop.
Save ha1fdan/13360efebf1ddf2212539e8b9e7cf899 to your computer and use it in GitHub Desktop.
server {
listen 443;
ssl on;
server_name <dit-domænenavn>;
# SSL
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_certificate /etc/letsencrypt/live/<dit-domænenavn>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/<dit-domænenavn>/privkey.pem;
location / {
root /var/www/<dit-domænenavn>;
index index.html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment