CiviForm server environment variables
The CiviForm server is configurable through environment variables. All availabile variables are documented in a env-var-docs.json file in the civiform/civiform repository.
When a CiviForm server version is released, the env-var-docs.json file corresponding to the release is used to generate markdown documentation of the variables. The generated markdown files are added to this directoy. Use the left sidebar to see the available configuration variables for the CiviForm version you are deploying.
Variables can have four different modes which determine where they are set and displayed:
"Admin writeable" variables should be set in the admin settings panel which is accessible in CiviForm when logged in as an admin. These variables should NOT be set in your deployment config and setting them there will result in a deployment error. If you need to set custom values for Admin writeable variables during an intial deploy, it is possible to override this error by setting
export ALLOW_ADMIN_WRITEABLE=true
in your deploy config. This should only be used for the initial deploy and should be removed from the config immediately afterwards."Admin readable" variables should be set in your deployment config file. The values for these variables can be seen in the admin settings panel, but not changed there.
"Server setting" variables should be set in your deployment config file and are not visible in the admin settings panel.
"Managed secret" variables should be set in your cloud provider's secrets manager. These are not visible in the admin settings panel.
A variable's mode is listed in between the variable name and its description in the server environment variable documentation that is generated on each release and saved in this directory (for example v1.51.0).
Last updated