Created
December 22, 2020 22:48
-
-
Save HarrySky/b2ac620b845a3a87ecdb0bd827c8050a to your computer and use it in GitHub Desktop.
nginx default server for getting all LetsEncrypt certificates
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 default_server; | |
server_tokens off; | |
access_log off; | |
location ^~ /.well-known/acme-challenge/ { | |
alias /usr/share/nginx/html/letsencrypt/.well-known/acme-challenge/; | |
} | |
location / { | |
return 307 https://$host$request_uri; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment