crossroadsinajax / website

crossroads ajax webapp
https://crossroadsajax.church
0 stars 1 forks source link

use docker nginx for all proxying #17

Open Kyle-Verhoog opened 4 years ago

Kyle-Verhoog commented 4 years ago

It would be great if all configuration could be done through the docker nginx.

https is going to be the challenge.

Kyle-Verhoog commented 2 years ago

This could be done by mounting the needed pem files in the containers and then mapping ports 80 and 443.

Kyle-Verhoog commented 2 years ago

This would also be a bit more secure as the ports are not served directly on the host but only through docker. The tradeoff might be performance, both on the host (docker nginx consumes more than regular old nginx) and CD build times (building the nginx container takes time + bandwidth).

Another plus would be for the ability to check-in/rollback the nginx configuration. A recent issue surfaced due to a host nginx version upgrade and it wasn't able to be rolled back.