-
Notifications
You must be signed in to change notification settings - Fork 194
allow setting custom settings #405
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,3 +13,4 @@ docker-compose.override.yml | |
| .DS_Store | ||
| .AppleDouble | ||
| .LSOverride | ||
| settings.json | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -100,6 +100,23 @@ If you push a change to add or remove an environment variable, please look in "c | |
|
|
||
| The misp-core container has definitions for minimum safe default settings which are set if needed each time the container starts. They will only be set if there is no existing entry in the config.php file or database for these settings. If you specify a custom value for any of these settings it will be respected. See the definitions of these in "core/files/etc/misp-docker" where the filenames contain the word "defaults". | ||
|
|
||
| #### Setting custom settings | ||
|
|
||
| If you want to set custom MISP settings on startup please take the following steps: | ||
|
|
||
| - create a `settings.json` file in the project root | ||
| - uncomment the `settings.json` mountpoint in the `misp-core` image in `docker-compose.yml` | ||
| - if you change the default mount path, be sure to update `MISP_SETTINGS_FILE` in your `.env` file | ||
| - add the settings to your json | ||
|
|
||
| ##### Example | ||
|
|
||
| ```json | ||
| { | ||
| "MISP.curl_request_timeout": "600" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is Is it because |
||
| } | ||
| ``` | ||
|
|
||
| #### Storing system settings in the DB | ||
|
|
||
| This container includes the "ENABLE_DB_SETTINGS" environment variable, which can be used to set "MISP.system_setting_db" to true or false. This changes the behaviour of where MISP chooses to store operator made settings changes; in config.php or in the system_settings database table. By default this is set to false. | ||
|
|
@@ -238,7 +255,6 @@ LDAPAUTH_LDAPTLSPROTOCOLMIN=LDAP_OPT_X_TLS_PROTOCOL_TLS1_2 | |
| STARTTLS is set to false as it's meant to upgrade an unencrypted connection (LDAP) to a secure one if possible automatically (LDAPS). | ||
| As we use LDAPS (hardcoded) or no connection at all, this isn't desired. | ||
|
|
||
|
|
||
| #### OIDC Authentication | ||
|
|
||
| OIDC Auth is implemented through the MISP OidcAuth plugin. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -132,12 +132,14 @@ services: | |
| - "./files/:/var/www/MISP/app/files/:Z" | ||
| - "./gnupg/:/var/www/MISP/.gnupg/:Z" | ||
| - "misp_guard_ca:/usr/local/share/ca-certificates/misp_guard:Z" | ||
| # custom MISP settings to be set on each boot, If changing the default path, be sure to also set MISP_SETTINGS_FILE | ||
| # - "./settings.json:/settings.json:ro" | ||
| # customize by replacing ${CUSTOM_PATH} with a path containing 'files/customize_misp.sh' | ||
| # - "${CUSTOM_PATH}/:/custom/:Z" | ||
| # mount custom ca root certificates | ||
| # - "./rootca.pem:/usr/local/share/ca-certificates/rootca.crt:Z" | ||
| cap_add: | ||
| - AUDIT_WRITE | ||
| # customize by replacing ${CUSTOM_PATH} with a path containing 'files/customize_misp.sh' | ||
| # - "${CUSTOM_PATH}/:/custom/:Z" | ||
| # mount custom ca root certificates | ||
| # - "./rootca.pem:/usr/local/share/ca-certificates/rootca.crt:Z" | ||
| environment: | ||
| - "BASE_URL=${BASE_URL:?The BASE_URL variable is now mandatory because the SSL logic is changed, see README.md for instructions.}" | ||
| - "CRON_USER_ID=${CRON_USER_ID}" | ||
|
|
@@ -327,6 +329,8 @@ services: | |
| - "PHP_SESSION_COOKIE_SAMESITE=${PHP_SESSION_COOKIE_SAMESITE:-Lax}" | ||
| # compose profiles | ||
| - "COMPOSE_PROFILES=${COMPOSE_PROFILES}" | ||
| # MISP settings | ||
| - "MISP_SETTINGS_FILE=${MISP_SETTINGS_FILE:-/settings.json}" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you set the default inside the main entrypoint as well? |
||
|
|
||
| misp-nginx: | ||
| image: ${REGISTRY_MIRROR_URL:-}ghcr.io/misp/misp-docker/misp-nginx:${CORE_RUNNING_TAG:-latest} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.