Set right indentions for merging with own server/config/production.yaml

This commit is contained in:
Gerhard Sletten 2019-12-12 14:19:06 +01:00
parent 7744f5dc29
commit b959bb0812

View file

@ -38,57 +38,57 @@ else
# Basic configuration # Basic configuration
cat > server/config/production.yaml <<EOT cat > server/config/production.yaml <<EOT
www: www:
host: 0.0.0.0 host: 0.0.0.0
proxy: $WWW_PROXY proxy: $WWW_PROXY
secret: "`pwgen -1`" secret: "`pwgen -1`"
trustedUrlBase: $URL_BASE_TRUSTED trustedUrlBase: $URL_BASE_TRUSTED
sandboxUrlBase: $URL_BASE_SANDBOX sandboxUrlBase: $URL_BASE_SANDBOX
publicUrlBase: $URL_BASE_PUBLIC publicUrlBase: $URL_BASE_PUBLIC
mysql: mysql:
host: $MYSQL_HOST host: $MYSQL_HOST
database: $MYSQL_DATABASE database: $MYSQL_DATABASE
user: $MYSQL_USER user: $MYSQL_USER
password: $MYSQL_PASSWORD password: $MYSQL_PASSWORD
redis: redis:
enabled: true enabled: true
host: $REDIS_HOST host: $REDIS_HOST
log: log:
level: info level: info
builtinZoneMTA: builtinZoneMTA:
log: log:
level: warn level: warn
mongo: mongodb://${MONGO_HOST}:27017/zone-mta mongo: mongodb://${MONGO_HOST}:27017/zone-mta
redis: redis://${REDIS_HOST}:6379/2 redis: redis://${REDIS_HOST}:6379/2
queue: queue:
processes: 5 processes: 5
EOT EOT
# Manage LDAP if enabled # Manage LDAP if enabled
if [ "$WITH_LDAP" = "true" ]; then if [ "$WITH_LDAP" = "true" ]; then
echo 'Info: LDAP enabled' echo 'Info: LDAP enabled'
cat >> server/config/production.yaml <<EOT cat >> server/config/production.yaml <<EOT
ldap: ldap:
enabled: true enabled: true
host: $LDAP_HOST host: $LDAP_HOST
port: $LDAP_PORT port: $LDAP_PORT
secure: $LDAP_SECURE secure: $LDAP_SECURE
bindUser: $LDAP_BIND_USER bindUser: $LDAP_BIND_USER
bindPasswort: $LDAP_BIND_PASS bindPasswort: $LDAP_BIND_PASS
filter: $LDAP_FILTER filter: $LDAP_FILTER
baseDN: $LDAP_BASEDN baseDN: $LDAP_BASEDN
uidTag: $LDAP_UIDTAG uidTag: $LDAP_UIDTAG
EOT EOT
else else
echo 'Info: LDAP not enabled' echo 'Info: LDAP not enabled'
cat >> server/config/production.yaml <<EOT cat >> server/config/production.yaml <<EOT
ldap: ldap:
enabled: false enabled: false
EOT EOT
fi fi
@ -99,10 +99,10 @@ if [ -f server/services/workers/reports/config/production.yaml ]; then
else else
echo 'Info: Generating server/production.yaml' echo 'Info: Generating server/production.yaml'
cat > server/services/workers/reports/config/production.yaml <<EOT cat > server/services/workers/reports/config/production.yaml <<EOT
mysql: mysql:
host: $MYSQL_HOST host: $MYSQL_HOST
log: log:
level: warn level: warn
EOT EOT
fi fi