I don’t think the nginx inside the container has diverged from stock at all, I use the provided launcher script for all the docker stuff.
This is what the host nginx config for the site looks like if you’re curious, but I don’t think this is the problem:
root@selectbutton:/etc/nginx/sites-enabled# cat discourse
server {
listen 443 ssl;
server_name selectbutton.net;
ssl_certificate /etc/letsencrypt/live/selectbutton.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/selectbutton.net/privkey.pem;
location /basic_status {
stub_status on;
access_log off;
allow 127.0.0.1;
allow 172.31.20.111;
allow 52.35.138.13;
deny all;
}
location / {
root /var/www/discourse-root;
try_files $uri @discourse;
}
location @discourse {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass https://localhost:4443;
}
}
server {
listen 80;
server_name selectbutton.net;
return 301 https://$host$request_uri;
}