mirror of
https://github.com/mastodon/documentation
synced 2025-04-11 22:56:17 +02:00
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
This commit is contained in:
parent
863a5ea716
commit
a8d244ad42
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user