Hi, I have kind of a reverse proxy setup with Nginx, here’s my config:
server {
listen 80;
server_name discourse.jonaharagon.com;
return 301 https://discourse.jonaharagon.com$request_uri;
}
server {
listen 443;
server_name discourse.jonaharagon.com;
ssl_certificate /etc/letsencrypt/live/discourse.jonaharagon.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/discourse.jonaharagon.com/privkey.pem;
location / {
proxy_pass http://discourse.jonaharagon.com:25654/;
proxy_read_timeout 90;
proxy_redirect http://discourse.jonaharagon.com:25654/ https://discourse.jonaharagon.com;
}
}
Chrome on my laptop and phone are returning an ERR_SSL_PROTOCOL_ERROR and SSL Labs is telling me my site doesn’t even have a certificate. The two certificate files do exist, and this same type of configuration works perfectly on other servers of mine. I can’t think of any reason this shouldn’t work, but maybe I’m just being dumb. Nginx gives no errors and works fine, and I’ve tried everything I can think of, I even made the files and directories all with 777 permissions (this isn’t a production server, it’ll be down in a few days) and nothing.
Any idea?