From ef6330ad51fd7ef83b3717e484c1f6b468c840fa Mon Sep 17 00:00:00 2001 From: Andrey Arapov Date: Sun, 17 May 2020 22:44:08 +0200 Subject: [PATCH] refactor 2 --- Dockerfile | 3 +-- README.md | 1 - etc/nginx/conf.d/rainloop.conf | 3 +++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3b07c97..651aaac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,8 +16,7 @@ ENV HOME /home/$USER ENV DATA /opt/rainloop RUN adduser -D -u $UID -h $HOME -s /bin/true $USER && \ mkdir -p $DATA && \ - touch /var/log/php-fpm.log && \ - chown -Rh $USER:$USER $DATA /var/log/php-fpm.log + chown -Rh $USER:$USER $DATA # Obtain RainLoop Webmail Community edition, # verify its integrity using GnuPG and then decompress it diff --git a/README.md b/README.md index 1611c24..901ccd4 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,6 @@ volumes: type: none device: /srv/data/rainloop/nginx o: bind - ``` ## updating the Rainloop diff --git a/etc/nginx/conf.d/rainloop.conf b/etc/nginx/conf.d/rainloop.conf index 9c915b5..645595c 100644 --- a/etc/nginx/conf.d/rainloop.conf +++ b/etc/nginx/conf.d/rainloop.conf @@ -37,5 +37,8 @@ server { include fastcgi_params; fastcgi_pass $rainloop; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + + # Prevent exposing nginx + version to $_SERVER + fastcgi_param SERVER_SOFTWARE ""; } }