fix: clear proxy configs on boot

Unfortunately, Docker does not persist container IPs on boot, so containers may come up with the wrong IP, resulting in proxying to the incorrect app after a server restart. Instead, we should delete the configs and let ps:restore rebuild the proxy config correctly.

Closes #3932
This commit is contained in:
Jose Diaz-Gonzalez
2020-09-10 01:58:13 -04:00
parent ecc6c9e01d
commit 752a0cacd9
2 changed files with 7 additions and 0 deletions

View File

@@ -162,4 +162,5 @@ nginx_clear_config() {
declare desc="Remove the nginx conf file"
declare APP="$1"
rm -f "$DOKKU_ROOT/$APP/nginx.conf"
fn-nginx-vhosts-nginx-init-cmd "reload"
}