Closed danakim closed 12 months ago
@quartje - please test :)
@quartje - took the opportunity in this PR and I also fixed the logging, to make sure the logs go to stdout. The issue was that even if I configured the default log destination to be stdout and stderr, In the virtual host config the destination was still the log file. I had to overwrite the default vhost config as well to make sure we log to stdout. Please test this as well.
@quartje - I have tested this with the following command:
docker run -p 8080:80 -e HTTPD_CSP="default-src; object-src 'none'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self'; connect-src 'self'; img-src 'self' data:; form-action 'self'; base-uri 'none'" apache2:test
and it works, it adds the line to the config.I think this is similar to what Ansible will add.