Closed jasonpincin closed 8 years ago
@misterbisson Here's the PR that re-combines the Nginx config templates in autopilotpattern/nginx: https://github.com/autopilotpattern/nginx/pull/32
This will also need changes in setup.sh
to add the relevant config entries (commented out):
echo '# Nginx LetsEncrypt (ACME) config' >> _env
echo '# be sure ACME_DOMAIN and WORDPRESS_URL are the same, if using automated SSL via LetsEncrypt' >> _env
echo '#ACME_ENV=production' >> _env
echo '#ACME_DOMAIN=you.custom.domain' >> _env
Looking good. I pedantically called out some changes to be reverted before merging, but you knew about those.
The thing I'm really ashamed of is how long it took me to figure out how I'd made this work previously. I didn't use the conditional (which we'd want to avoid just because it's an extra conditional on every request), but it took me forever to spot the $server_port
in proxy_set_header Host $host:$server_port;
that I was using. That config file is in https://github.com/autopilotpattern/wordpress/issues/19 (which has a few things changed/removed for anonymity).
I PR'd those changes in https://github.com/jasonpincin/wordpress/pull/2 and https://github.com/jasonpincin/wordpress/pull/3, though if you're guessing I didn't build and test images with those changes....
From looking at https://hub.docker.com/r/autopilotpattern/wordpress/tags/ and https://hub.docker.com/r/autopilotpattern/wordpress-nginx/tags/, it looks like this should be tagged 4.5.3-r3
when merged.
This PR updates the local Nginx configs so that the ACME features of latest autopilotpattern/nginx are supported.