Hello Review Board team,
I’m using Review Board in a Docker environment, and I noticed there’s no way to set the CSRF_TRUSTED_ORIGINS directly through an environment variable. This is important when deploying Review Board behind a proxy or in setups where multiple trusted domains need to be configured for CSRF protection.
It would be great if you could add support for a CSRF_TRUSTED_ORIGINS environment variable that would automatically configure this setting in the settings_local.py file. For example, something like this:
$ docker run -P \
--name <name> \
-v /var/www/reviewboard:/site \
-e DOMAIN=
reviews.corp.example.com \
-e COMPANY="My Company" \
-e MEMCACHED_SERVER=
db.corp.example.com:11211 \
-e DATABASE_TYPE=postgresql \
-e DATABASE_SERVER=
db.corp.example.com \
-e DATABASE_USERNAME=reviewboard \
-e DATABASE_PASSWORD=reviewboard12345 \
-e DATABASE_NAME=reviewboard \
beanbag/reviewboard:4.0.4
This would simplify configuring trusted domains for CSRF protection without needing to manually edit the settings_local.py file after deployment.
Thank you for considering this feature!
Best regards,