chg: [installer] Misp global vars

pull/4152/head
Steve Clement 2019-02-06 21:29:37 +09:00
parent ad8944f4b5
commit 090683bc28
1 changed files with 27 additions and 8 deletions

View File

@ -1,12 +1,26 @@
#### MISP configuration variables
```bash
# <snippet-begin 0_global-vars.sh>
# MISP configuration variables
# Local non-root MISP user
MISP_USER='misp'
MISP_PASSWORD='Password1234'
PATH_TO_MISP='/var/www/MISP'
CAKE="$PATH_TO_MISP/app/Console/cake"
MISP_BASEURL='""'
# Todo: IF run from CLI set MISP_BASEURL accordingly
if [ true ]; then
MISP_BASEURL='https://misp.local'
# Webserver configuration
FQDN='misp.local'
else
MISP_BASEURL='""'
# Webserver configuration
FQDN='localhost'
fi
MISP_LIVE='1'
CAKE="$PATH_TO_MISP/app/Console/cake"
# Database configuration
DBHOST='localhost'
@ -16,17 +30,14 @@ DBPASSWORD_ADMIN="$(openssl rand -hex 32)"
DBUSER_MISP='misp'
DBPASSWORD_MISP="$(openssl rand -hex 32)"
# Webserver configuration
FQDN='localhost'
# OpenSSL configuration
OPENSSL_CN='Common Name'
OPENSSL_CN=$FQDN
OPENSSL_C='LU'
OPENSSL_ST='State'
OPENSSL_L='Location'
OPENSSL_O='Organization'
OPENSSL_OU='Organizational Unit'
OPENSSL_EMAILADDRESS='info@localhost'
OPENSSL_EMAILADDRESS="info@$FQDN"
# GPG configuration
GPG_REAL_NAME='Autogenerated Key'
@ -41,6 +52,14 @@ post_max_size=50M
max_execution_time=300
memory_limit=512M
# apt config
export DEBIAN_FRONTEND=noninteractive
# sudo config to run $LUSER commands
SUDO_USER="sudo -u ${MISP_USER}"
SUDO_WWW="sudo -u www-data"
echo "Admin (root) DB Password: $DBPASSWORD_ADMIN"
echo "User (misp) DB Password: $DBPASSWORD_MISP"
# <snippet-end 0_global-vars.sh>
```