diff options
author | Eugen <eugen@zeonfederated.com> | 2017-04-05 18:44:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-05 18:44:33 +0200 |
commit | 3d8b80e1cc8206d3a2d9904eb216269f0e38e66a (patch) | |
tree | 0bef7e42e35c04b2a4243f458909b86edf5aa278 /docs/Running-Mastodon/Production-guide.md | |
parent | 7bed4e51db18c864c36c6b48eb22c65f11c16b1c (diff) | |
parent | b142a2ebf51fb140062e52cb283736b6d4abe725 (diff) |
Merge branch 'master' into broadcast-to-worker
Diffstat (limited to 'docs/Running-Mastodon/Production-guide.md')
-rw-r--r-- | docs/Running-Mastodon/Production-guide.md | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/docs/Running-Mastodon/Production-guide.md b/docs/Running-Mastodon/Production-guide.md index b1f7bd35b..90e9c0dea 100644 --- a/docs/Running-Mastodon/Production-guide.md +++ b/docs/Running-Mastodon/Production-guide.md @@ -12,9 +12,22 @@ 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:EECDH+AES; + ssl_ecdh_curve secp384r1; + 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; @@ -75,8 +88,9 @@ It is recommended to create a special user for mastodon on the server (you could ## General dependencies + sudo apt-get install imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev nodejs file git curl curl -sL https://deb.nodesource.com/setup_4.x | sudo bash - - sudo apt-get install imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev nodejs file + apt-get intall nodejs sudo npm install -g yarn ## Redis |