mirror of
https://github.com/valitydev/docker-misp.git
synced 2024-11-06 08:45:18 +00:00
Set baseurl to localhost so compose works out of the box
This commit is contained in:
parent
be00ecd1b5
commit
33e3155774
@ -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:
|
||||
|
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user