From 065e0db08b049d0f76b3e22e51c6b61b6345d425 Mon Sep 17 00:00:00 2001 From: Konstantinos Kokkorogiannis Date: Mon, 19 Oct 2020 14:28:56 +0300 Subject: [PATCH] Fix error in nginx configuration It was failing with: ``` nginx 11:21:11.85 ERROR ==> Custom server blocks files were found inside '/bitnami/nginx/conf/vhosts'. This configuration is not supported anymore. Please mount your custom server blocks config files at '/opt/bitnami/nginx/conf/server_blocks' instead. ``` --- phpfpm-k8s/app-code/docker-compose.yml | 2 +- phpfpm-k8s/helm-chart/templates/deployment.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phpfpm-k8s/app-code/docker-compose.yml b/phpfpm-k8s/app-code/docker-compose.yml index 4af7bf4b..b06440bd 100644 --- a/phpfpm-k8s/app-code/docker-compose.yml +++ b/phpfpm-k8s/app-code/docker-compose.yml @@ -19,7 +19,7 @@ services: - '80:80' - '443:443' volumes: - - ./vhosts:/bitnami/nginx/conf/vhosts + - ./vhosts:/bitnami/nginx/conf/server_blocks mariadb: image: bitnami/mariadb:latest environment: diff --git a/phpfpm-k8s/helm-chart/templates/deployment.yaml b/phpfpm-k8s/helm-chart/templates/deployment.yaml index d277932d..6297ce8e 100644 --- a/phpfpm-k8s/helm-chart/templates/deployment.yaml +++ b/phpfpm-k8s/helm-chart/templates/deployment.yaml @@ -67,7 +67,7 @@ spec: timeoutSeconds: 1 volumeMounts: - name: nginx-config - mountPath: /bitnami/nginx/conf/vhosts + mountPath: /bitnami/nginx/conf/server_blocks volumes: - name: nginx-config configMap: