From 3b3db4396c7b9b987467213234e1ad198e4bdb55 Mon Sep 17 00:00:00 2001 From: thopic Date: Wed, 9 Aug 2023 12:21:56 +0200 Subject: [PATCH] [GNOUSWEB] Set web git repo safe for system --- apaches/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apaches/Dockerfile b/apaches/Dockerfile index 55a4461..87c35f1 100644 --- a/apaches/Dockerfile +++ b/apaches/Dockerfile @@ -4,6 +4,8 @@ RUN apt-get update && apt-get install -y \ git \ && rm -rf /var/lib/apt/lists/* +RUN printf "[safe]\n\tdirectory = /var/www\n" > /etc/gitconfig + RUN a2enmod remoteip rewrite \ && echo "RemoteIPHeader X-Forwarded-For" > /etc/apache2/conf-available/remoteip.conf \ && a2enconf remoteip \