From a6e74af60beff58a9cc670b7b71f293db3cf6e57 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 8 Mar 2023 15:39:58 +0100 Subject: [PATCH] Update Dockerfile --- nextcloud/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nextcloud/Dockerfile b/nextcloud/Dockerfile index 1fb2dc647..6b360d132 100644 --- a/nextcloud/Dockerfile +++ b/nextcloud/Dockerfile @@ -77,7 +77,12 @@ RUN \ ARG CONFIGLOCATION="/www/nextcloud/config" # hadolint ignore=SC2015, SC2013, SC2086 RUN \ - for file in $(grep -Esril "/www/nextcloud/data/config" /etc /defaults); do sed -Ei "s=(/www/nextcloud/data/config)+(/| |$|\"|\')=$CONFIGLOCATION\2=g" $file; done + for file in $(grep -Esril "/www/nextcloud/data/config" /etc /defaults); do sed -Ei "s=(/www/nextcloud/data/config)+(/| |$|\"|\')=$CONFIGLOCATION\2=g" $file; done && \ + \ + # Correct nginx files + sed -i "/Strict-Transport-Security/d" /defaults/nginx/site-confs/default.conf.sample && \ + sed -i '1h;1!H;$!d;g;s/\(.*\)}/\1/' /defaults/nginx/site-confs/default.conf.sample && \ + cat /defaults/nginx_addition >> /defaults/nginx/site-confs/default.conf.sample ################## # 3 Install apps #