3 server_name {{ domain }};
4 location /.well-known/acme-challenge/ {
8 return 301 https://$host$request_uri;
14 server_name {{ domain }};
16 ssl_certificate /certs/live/{{ domain }}/fullchain.pem;
17 ssl_certificate_key /certs/live/{{ domain }}/privkey.pem;
19 # TODO: add security params
22 rewrite (\/(user|u|inbox|post|community|c|login|search|sponsors|communities|modlog|home)+) /static/index.html break;
23 proxy_pass http://0.0.0.0:8536;
24 proxy_set_header X-Real-IP $remote_addr;
25 proxy_set_header Host $host;
26 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
29 proxy_http_version 1.1;
30 proxy_set_header Upgrade $http_upgrade;
31 proxy_set_header Connection "upgrade";