Added two environment variables, MODE and MX_WHITELIST. #33
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
MODE can have the values DEV, TEST or PROD, while MX_WHITELIST
contains a comma-separated list of domains that will not be checked.
The updated "Apache Environment Variables" file will look like:
Variable | Description | Default value
---- | ---- | ----
DEPLOYMENT_NAME
| name of the specific instance |"CAcert.org Website"
CRT_DIRECTORY
* | directory where certificates are stored | noneCSR_DIRECTORY
* | directory where CSRs are stored | noneMYSQL_WEBDB_DATABASE
* | database name | noneMYSQL_WEBDB_HOSTNAME
* | database hostname | noneMYSQL_WEBDB_PASSWORD
* | database password | noneMYSQL_WEBDB_USER
* | database user name | noneRETURN_ADDRESS
* | return address (Errors-To header) for outgoing mails | noneSMTP_HOST
* | mail server to use for outgoing mails | noneSMTP_PORT
| port of the mail server |25
INSECURE_PORT
| port to use for http | none (defaults to 80)SECURE_PORT
| port to use for https | none (default to 443)DEFAULT_HOSTNAME
* | hostname for the default URL | noneSECURE_HOSTNAME
* | hostname for client certificate authentication | noneTVERIFY_HOSTNAME
* | hostname for tverify | noneMODE
* | Flag to indicate that the code is working in Production or Developmentone of DEV, TEST or PROD
'MX_WHITELIST' * | Comma-separated list of domain names that will not be checked for MX connectivity.
For example "example.com,cacert.org" Commas only, no spaces.
Environment variables marked with an asterisk (*) need to be defined explicitly.
SetEnv MYSQL_WEBDB_DATABASE cacert
SetEnv MYSQL_WEBDB_HOSTNAME localhost
SetEnv MYSQL_WEBDB_PASSWORD anotherhardpassword
SetEnv MYSQL_WEBDB_USER cacertapplication
SetEnv RETURN_ADDRESS root
SetEnv SMTP_HOST localhost
SetEnv CSR_DIRECTORY /tmp/csr
SetEnv CRT_DIRECTORY /tmp/crt
SetEnv DEFAULT_HOSTNAME cacert-test.local
SetEnv SECURE_HOSTNAME secure.cacert-test.local
SetEnv TVERIFY_HOSTNAME cacert-test.local
SetEnv MODE DEV
SetEnv MX_WHITELIST cacert.org,example.com