Merge pull request #15 from Franselbaer/master

Added switch to activate logging to STDOUT
This commit is contained in:
hardware 2018-06-18 13:22:24 +02:00 committed by GitHub
commit 7f397ef46f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -30,6 +30,7 @@ Rainloop is a simple, modern & fast web-based client. More details on the [offic
| **UID** | rainloop user id | *optional* | 991
| **GID** | rainloop group id | *optional* | 991
| **UPLOAD_MAX_SIZE** | Attachment size limit | *optional* | 25M
| **LOG_TO_STDOUT** | set to "true" | *optional* | undef
### Docker-compose.yml

View File

@ -8,6 +8,13 @@ if [ -d "/rainloop/data/_data_/_default_/plugins/postfixadmin-change-password" ]
rm -rf /rainloop/data/_data_/_default_/plugins/postfixadmin-change-password
fi
# Set log output to STDOUT if wanted (LOG_TO_STDOUT=true)
if [ "$LOG_TO_STDOUT" == "true" ]; then
chmod o+w /dev/stdout
sed -i "s/.*error_log.*$/error_log \/dev\/stdout warn;/" /etc/nginx/nginx.conf
echo "Logging to STDOUT activated" > /dev/stdout
fi
# Add postfixadmin-change-password plugin
mkdir -p /rainloop/data/_data_/_default_/plugins/
cp -r /usr/local/include/postfixadmin-change-password /rainloop/data/_data_/_default_/plugins/