Skip to content

Commit

Permalink
Production guide: add support for let's encrypt in the nginx config
Browse files Browse the repository at this point in the history
This notably fixes potential issues like this one mastodon/mastodon#1665
  • Loading branch information
Baptiste Jonglez committed Apr 22, 2017
1 parent 863a5ea commit a8d244a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Running-Mastodon/Production-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a8d244a

Please sign in to comment.