x_old_misp_docker
x_old_misp_docker copied to clipboard
Question about environment variables
Hello,
I'm trying to run MISP as a Docker image and most of the tutorials that I have been following do not explain these variables:
[email protected]
MISP_ADMIN_PASSPHRASE=admin
MISP_BASEURL=localhost
POSTFIX_RELAY_HOST=relay.fqdn
TIMEZONE=Europe/Brussels
DATA_DIR=./data
What do they actually do? If I wanted to publish MISP on the Internet, would these variables affect anything?
For example, I am wondering if MISP_BASEURL is related to Nginx's server_name variable under the hood.
I have not been able to find information about these, sorry to bother you!
I believe that MISP_ADMIN_EMAIL, MISP_ADMIN_PASSPHRASE, MISP_BASEURL are related to the MISP app itself when you launch it in the web browser.
There are definite references to MISP_BASEURL in the install script. However, I have not found references to MISP_ADMIN_EMAIL, MISP_ADMIN_PASSPHRASE. There have been a number of new commits in the other MISP repos, so they have been updated, but not reflected in searches.
They are all provided as environment variables to the containers when run via Docker Compose.
Quoting @xme:
- MISP_ADMIN_xxx are used to define the credentials of the MISP admin (to log in as admin)
- DATA_DIR is… the directory where data will be saved (for persistence in your Docker env)
- POSTFIX_RELAY_HOST is used to specify the MTA that MISP will use to deliver emails
- MISP_BASEURL is used to describe the URL of your MISP instance (if, by example, it is located behind a reverse-proxy. Typical value is something like misp.my company.com