From fde215affca8265722059fd81e21884d69001975 Mon Sep 17 00:00:00 2001 From: Andrey Arapov Date: Sun, 17 May 2020 21:39:20 +0200 Subject: [PATCH] refactor --- Dockerfile | 3 +- README.md | 6 +- .../nginx/conf.d/rainloop.conf | 0 etc/php7/conf.d/00-privatebin.ini | 64 +++++++++++++++++++ etc/php7/php-fpm.d/zz-rainloop.conf | 18 ++++++ php-fpm.conf | 15 ----- 6 files changed, 86 insertions(+), 20 deletions(-) rename rainloop.conf => etc/nginx/conf.d/rainloop.conf (100%) create mode 100644 etc/php7/conf.d/00-privatebin.ini create mode 100644 etc/php7/php-fpm.d/zz-rainloop.conf delete mode 100644 php-fpm.conf diff --git a/Dockerfile b/Dockerfile index 21d3c39..3b07c97 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,8 +35,7 @@ RUN wget --progress=bar:force:noscroll -O $RLFILE https://github.com/RainLoop/ra rm -rf "$GNUPGHOME" $RLFILE # Copy the php-fpm & nginx configs -COPY php-fpm.conf /etc/php7/php-fpm.conf -COPY rainloop.conf /etc/nginx/conf.d/rainloop.conf +COPY etc/ /etc/ USER $USER CMD php-fpm7 -F diff --git a/README.md b/README.md index 5568db5..1611c24 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ docker-compose up -d ``` cd /srv/data -cp -pvi rainloop-1.13.0-bkp/html/data/_data_/_default_/configs/application.ini rainloop/html/data/_data_/_default_/configs/ -cp -pvi rainloop-1.13.0-bkp/html/data/_data_/_default_/domains/yourdomain.com.ini rainloop/html/data/_data_/_default_/domains/ -chown --reference rainloop/html/data/_data_ rainloop/html/data/_data_/_default_/configs/application.ini rainloop/html/data/_data_/_default_/domains/yourdomain.com.ini + +rsync -avHx --progress rainloop-1.13.0-bkp/html/data/_data_ rainloop/html/data/ +chown -Rh --reference rainloop/html/data rainloop/html/data/_data_ ``` diff --git a/rainloop.conf b/etc/nginx/conf.d/rainloop.conf similarity index 100% rename from rainloop.conf rename to etc/nginx/conf.d/rainloop.conf diff --git a/etc/php7/conf.d/00-privatebin.ini b/etc/php7/conf.d/00-privatebin.ini new file mode 100644 index 0000000..a245125 --- /dev/null +++ b/etc/php7/conf.d/00-privatebin.ini @@ -0,0 +1,64 @@ +; session.use_strict_mode specifies whether the module will use strict session id mode. If this +; mode is enabled, the module does not accept uninitialized session ID. If uninitialized session ID +; is sent from browser, new session ID is sent to browser. Applications are protected from session +; fixation via session adoption with strict mode. Defaults to 0 (disabled). +session.use_strict_mode=On + +; Enable assert() evaluation. +assert.active=Off + +; This determines whether errors should be printed to the screen as part of the output or if they +; should be hidden from the user. Value "stderr" sends the errors to stderr instead of stdout. +display_errors=Off + +; Tells whether script error messages should be logged to the server's error log or error_log. +; You're strongly advised to use error logging in place of error displaying on production web sites. +log_errors=On + + + +; increase size limits +upload_max_filesize=90M +post_max_size=90M + + + +; best practices + +; Disable deprecated short open tags ("