Closed dennisameling closed 3 years ago
It looks like that issue is because as of M3, MAUTIC_TRUSTED_PROXIES
is an environment variable that mautic itself reads (via symphony) and is expecting to be JSON, but we also have code in makeconfig.php that is trying to read the same environment variable as a comma-separated value that its going to shove into trusted_proxies in local.php - I assume you are providing that in your tests?
I think the correct thing to do here is to remove our extra magic MAUTIC_TRUSTED_PROXIES
code in makeconfig.php for v3 + v4 and document that environment variable as needing json
The correct formatting for that environment variable for the container to start correctly is:
MAUTIC_TRUSTED_PROXIES=["172.16.0.0/12"]
An alternative would be to:
unset MAUTIC_TRUSTED_PROXIES
In docker-entrypoint.sh
after running makeconfig.php
, but i think using the built in pass-a-json way of specifying proxies and removing the existing CSV format is a better solution going forward.
We have a fix in place for my review comments above, i think this is now ready to merge
Fixes the builds for Mautic 4 (already bumped PHP version to 7.4 and Mautic version to 4.0.0-alpha1 in https://github.com/mautic/docker-mautic/commit/6d994c354d50598003958a34ec136b206738a424)
Added the
sockets
extension because while I was playing with Mautic from Git (composer installation), I ran intoThe only missing piece is that the installer can't be opened due to an issue with
MAUTIC_TRUSTED_PROXIES
- would appreciate if someone could look into this!