diff options
author | Henry Jameson <me@hjkos.com> | 2017-08-08 02:41:36 +0300 |
---|---|---|
committer | Henry Jameson <me@hjkos.com> | 2017-08-08 02:41:36 +0300 |
commit | 9112eda14ffa203eeca1d129d6739840f684569d (patch) | |
tree | f6988f0f3bd883f411db2f7e761d76db8377f000 /installation | |
parent | 763756f8790809d593c34dc78196d241d230658a (diff) | |
download | pleroma-9112eda14ffa203eeca1d129d6739840f684569d.tar.gz pleroma-9112eda14ffa203eeca1d129d6739840f684569d.zip |
First attempt at installation documentation
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..1bdb95ab4 --- /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 SSLv3 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 |