First attempt at installation documentation
[akkoma] / installation / pleroma.nginx
1 server {
2 listen 80;
3 server_name example.tld;
4 return 301 https://$server_name$request_uri;
5 }
6
7 server {
8 listen 443;
9 ssl on;
10 ssl_session_timeout 5m;
11
12 ssl_certificate /etc/letsencrypt/live/exmaple.tld/fullchain.pem;
13 ssl_certificate_key /etc/letsencrypt/live/example.tld/privkey.pem;
14
15 ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
16 ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
17 ssl_prefer_server_ciphers on;
18
19 server_name example.tld;
20
21 location / {
22 proxy_pass http://localhost:4000;
23 }
24 include snippets/well-known.conf;
25
26 }