From a8d244ad42b5a14090984110ac3d94f588eac316 Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Sat, 22 Apr 2017 18:42:36 +0200 Subject: [PATCH] Production guide: add support for let's encrypt in the nginx config This notably fixes potential issues like this one https://github.com/tootsuite/mastodon/issues/1665 --- Running-Mastodon/Production-guide.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Running-Mastodon/Production-guide.md b/Running-Mastodon/Production-guide.md index 53868da2..793fc17d 100644 --- a/Running-Mastodon/Production-guide.md +++ b/Running-Mastodon/Production-guide.md @@ -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 {