# Pastebin KBYbN085 server { server_name mrh.io; listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/mrh.io/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/mrh.io/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot location / { proxy_pass http://localhost:8080; proxy_cache_bypass $http_upgrade; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; location /.well-known/webfinger { proxy_hide_header Content-Type; add_header Content-Type application/jrd+json; proxy_pass http://localhost:8080; } location /commenter { proxy_hide_header Content-Type; add_header Content-Type application/activity+json; proxy_pass http://localhost:8080; } } }