Adding switch to activate log to STDOUT
This commit is contained in:
parent
f3e35c8c8a
commit
f24c92d37f
@ -30,6 +30,7 @@ Rainloop is a simple, modern & fast web-based client. More details on the [offic
|
|||||||
| **UID** | rainloop user id | *optional* | 991
|
| **UID** | rainloop user id | *optional* | 991
|
||||||
| **GID** | rainloop group id | *optional* | 991
|
| **GID** | rainloop group id | *optional* | 991
|
||||||
| **UPLOAD_MAX_SIZE** | Attachment size limit | *optional* | 25M
|
| **UPLOAD_MAX_SIZE** | Attachment size limit | *optional* | 25M
|
||||||
|
| **LOG_TO_STDOUT** | set to "true" | *optional* | undef
|
||||||
|
|
||||||
### Docker-compose.yml
|
### Docker-compose.yml
|
||||||
|
|
||||||
|
@ -8,6 +8,13 @@ if [ -d "/rainloop/data/_data_/_default_/plugins/postfixadmin-change-password" ]
|
|||||||
rm -rf /rainloop/data/_data_/_default_/plugins/postfixadmin-change-password
|
rm -rf /rainloop/data/_data_/_default_/plugins/postfixadmin-change-password
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set log output to STDOUT if wanted (NGINX_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;/"
|
||||||
|
echo "Logging to STDOUT activated" > /dev/stdout
|
||||||
|
fi
|
||||||
|
|
||||||
# Add postfixadmin-change-password plugin
|
# Add postfixadmin-change-password plugin
|
||||||
mkdir -p /rainloop/data/_data_/_default_/plugins/
|
mkdir -p /rainloop/data/_data_/_default_/plugins/
|
||||||
cp -r /usr/local/include/postfixadmin-change-password /rainloop/data/_data_/_default_/plugins/
|
cp -r /usr/local/include/postfixadmin-change-password /rainloop/data/_data_/_default_/plugins/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user