We’ve been tasked with updating our reverse proxy to accommodate a custom domain including SSL certs managed by a third party.
We’ve been happily using fly as our nginx reverse proxy but now I’ve encountered an issue and I can’t tell if it is nginx shaped, or fly shaped!
We’ve set up our Dockerfile
to securely download the certificate and key files from an S3 bucket and place them into our server.
We’ve then created a server block in our nginx config that looks for that server and if so applies the SSL cert.
Commented out properties were originally in, but trying to have the most minimal setup for testing.
listen 443 ssl;
server_name test.domain.net;
ssl_certificate /etc/nginx/ssl/domain.cert;
ssl_certificate_key /etc/nginx/ssl/domain.key;
# ssl_protocols TLSv1.3;
# ssl_prefer_server_ciphers on;
# ssl_ciphers EECDH+AESGCM:EDH+AESGCM;
# ssl_ecdh_curve secp384r1;
# ssl_session_timeout 10m;
# ssl_session_cache shared:SSL:10m;
# ssl_session_tickets off;
# ssl_stapling on;
# ssl_stapling_verify on;
# resolver 8.8.8.8 8.8.4.4 valid=300s;
# resolver_timeout 5s;
# add_header X-Frame-Options DENY;
# add_header X-Content-Type-Options nosniff;
# add_header X-XSS-Protection "1; mode=block";
error_log /var/log/nginx/domain.log debug;
# ...
We get a generic SSL error back when visiting the site, and no specific errors in any logs, including the specific debug log we created.
Because we’re clearly getting an SSL error back (makes sense, we’re playing with SSL), and the fact that the domain.log
file is created (just not populated) I’m fairly confident this server block has been correctly seen by nginx. However the lack of any output makes me wonder if fly could be getting in the way?
Any pointers would be gratefully received.