Merge pull request #134 from zorun/letsencrypt

Production guide: add support for let's encrypt in the nginx config
This commit is contained in:
Eugen 2017-04-23 06:00:14 +02:00 committed by GitHub
commit 645fd80eff
1 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,9 @@ server {
listen 80;
listen [::]:80;
server_name example.com;
return 301 https://$host$request_uri;
# Useful for Let's Encrypt
location /.well-known/acme-challenge/ { allow all; }
location / { return 301 https://$host$request_uri; }
}
server {