diff options
author | lambadalambda <gitgud@rogerbraun.net> | 2017-09-01 06:42:08 -0400 |
---|---|---|
committer | lambadalambda <gitgud@rogerbraun.net> | 2017-09-01 06:42:08 -0400 |
commit | 678f572144bfd861793c0b72061b04cdb9b7c991 (patch) | |
tree | e86521c9ac042227ba10613c11fcb7ab026491f0 /installation | |
parent | 1712c93f447b5480f5fdb5e174c0a340fbaf6321 (diff) | |
parent | a6e89ae6a389c23288ef6abc9459da35002e0fac (diff) | |
download | pleroma-678f572144bfd861793c0b72061b04cdb9b7c991.tar.gz pleroma-678f572144bfd861793c0b72061b04cdb9b7c991.zip |
Merge branch 'hj.doc-install' into 'develop'
First attempt at installation documentation
See merge request !24
Diffstat (limited to 'installation')
-rw-r--r-- | installation/pleroma.nginx | 26 | ||||
-rw-r--r-- | installation/pleroma.service | 16 |
2 files changed, 42 insertions, 0 deletions
diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx new file mode 100644 index 000000000..1a6e1d56f --- /dev/null +++ b/installation/pleroma.nginx @@ -0,0 +1,26 @@ +server { + listen 80; + server_name example.tld; + return 301 https://$server_name$request_uri; +} + +server { + listen 443; + ssl on; + ssl_session_timeout 5m; + + ssl_certificate /etc/letsencrypt/live/exmaple.tld/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/example.tld/privkey.pem; + + ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES"; + ssl_prefer_server_ciphers on; + + server_name example.tld; + + location / { + proxy_pass http://localhost:4000; + } + include snippets/well-known.conf; + +}
\ No newline at end of file diff --git a/installation/pleroma.service b/installation/pleroma.service new file mode 100644 index 000000000..fe314ed2b --- /dev/null +++ b/installation/pleroma.service @@ -0,0 +1,16 @@ +[Unit] +Description=Pleroma social network +After=network.target postgresql.service + +[Service] +User=pleroma +WorkingDirectory=/home/pleroma/pleroma +Environment="HOME=/home/pleroma" +ExecStart=/usr/local/bin/mix phx.server +ExecReload=/bin/kill $MAINPID +KillMode=process +Restart=on-failure + +[Install] +WantedBy=multi-user.target +Alias=pleroma.service |