Specify root directive for letsencrypt (#471)

This commit is contained in:
abcang 2017-12-07 01:21:08 +09:00 committed by wxcafé
parent 079d0f0720
commit 88d81f14e9
1 changed files with 1 additions and 0 deletions

View File

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