Set baseurl to localhost so compose works out of the box

pull/1/head
Jason Kendall 2020-01-29 15:15:17 -05:00
parent be00ecd1b5
commit 33e3155774
2 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,7 @@ services:
- "CRON_USER_ID=1"
- "REDIS_FQDN=redis"
- "MYSQL_PASSWORD=example"
- "HOSTNAME=https://localhost"
- "INIT=true" # Initialze MISP, things includes, attempting to import SQL and the Files DIR
misp-modules:

View File

@ -36,6 +36,9 @@ init_misp_config(){
sed -i "s/localhost/$MYSQL_HOST/" $MISP_APP_CONFIG_PATH/database.php
sed -i "s/db\s*login/$MYSQL_USER/" $MISP_APP_CONFIG_PATH/database.php
sed -i "s/db\s*password/$MYSQL_PASSWORD/" $MISP_APP_CONFIG_PATH/database.php
echo "Configure sane defaults"
sed -i "s#'baseurl' => ''#'baseurl' => '$HOSTNAME'#" $MISP_APP_CONFIG_PATH/config.php
}
init_misp_files(){