Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added two environment variables, MODE and MX_WHITELIST. #33

Open
wants to merge 1 commit into
base: release
Choose a base branch
from

Conversation

bdmc
Copy link
Contributor

@bdmc bdmc commented Sep 7, 2021

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 | none

CSR_DIRECTORY* | directory where CSRs are stored | none

MYSQL_WEBDB_DATABASE* | database name | none

MYSQL_WEBDB_HOSTNAME* | database hostname | none

MYSQL_WEBDB_PASSWORD* | database password | none

MYSQL_WEBDB_USER* | database user name | none

RETURN_ADDRESS* | return address (Errors-To header) for outgoing mails | none

SMTP_HOST* | mail server to use for outgoing mails | none

SMTP_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 | none

SECURE_HOSTNAME* | hostname for client certificate authentication | none

TVERIFY_HOSTNAME* | hostname for tverify | none

MODE* | Flag to indicate that the code is working in Production or Development

one 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

MODE can have the values DEV, TEST or PROD, while MX_WHITELIST
contains a comma-separated list of domains that will not be checked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants