Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,22 @@ Adapters should generate their own private key and get the CSR signed by a trust
### Logging
This image does not use the standard Docker logging mechanism, but the native OS-based logging.

If you like, you can add the following commands in the file "httpd-foreground" in order to build an image that logs SimpleSAMLphp info to syslog and that you can check with `docker logs -f <image-name>`:

```
SAML_FOLDER=/var/simplesamlphp
FULL_CONFIG_PATH=${SAML_FOLDER}/config/config.php
SAML_LOG_FILE=${SAML_FOLDER}/log/simplesamlphp.log

sed -i "s/'syslog',/'file',/g" ${FULL_CONFIG_PATH}
sed -i "s#;error_log = syslog#error_log = /dev/console#g" ${FULL_CONFIG_PATH}

touch ${SAML_LOG_FILE}
chown apache:apache ${SAML_LOG_FILE}
chmod a+rw /dev/console
ln -sf /dev/console ${SAML_LOG_FILE}
```

## Building from source:

```
Expand Down