Remix.run Logo
yjftsjthsd-h 2 days ago

> you need certificates to start the NGINX server but you need the NGINX server to issue certificates?

I just pre-populate with a self-signed cert to start, though I'd have to check how to do that in docker.

vivzkestrel 2 days ago | parent [-]

exactly! it all sounds easy unless you want to run stuff inside docker at which point there is a serious lack of documentation and resources

yjftsjthsd-h a day ago | parent [-]

Okay, it seems like if you're using compose this is now doable: https://stackoverflow.com/questions/70322031/does-docker-com... So you'd make an init container that runs something like `test -f /certs/whatever.crt || openssl command to generate cert` and tell compose to run that before the real web server container.