diff options
author | Eugen <eugen@zeonfederated.com> | 2017-04-05 10:29:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-05 10:29:52 +0200 |
commit | 8b8839978a222ed53a3dc33eb99f87edc8794000 (patch) | |
tree | e140ef9317152e6e40e9cb7061413736605158fe /docs/Running-Mastodon | |
parent | 29efeecb9ebd4eac0ec65040b2f688d7a5c77283 (diff) | |
parent | 78cf0fe1c7981bd3770b80772eb7295bc2a0b753 (diff) |
Merge branch 'master' into master
Diffstat (limited to 'docs/Running-Mastodon')
-rw-r--r-- | docs/Running-Mastodon/Production-guide.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/Running-Mastodon/Production-guide.md b/docs/Running-Mastodon/Production-guide.md index b1f7bd35b..d539ddf64 100644 --- a/docs/Running-Mastodon/Production-guide.md +++ b/docs/Running-Mastodon/Production-guide.md @@ -12,9 +12,21 @@ map $http_upgrade $connection_upgrade { } server { + listen 80; + listen [::]:80; + server_name example.com; + return 301 https://$host$request_uri; +} + +server { listen 443 ssl; server_name example.com; + ssl_protocols TLSv1.2; + ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH'; + ssl_prefer_server_ciphers on; + ssl_session_cache shared:SSL:10m; + ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; |