Also generate nextcloud.env
parent
3a65653130
commit
3110f399e6
@ -0,0 +1,19 @@
|
||||
NEXTCLOUD_TRUSTED_DOMAINS=${DOMAIN}
|
||||
|
||||
# reverse proxy config
|
||||
OVERWRITEHOST=${DOMAIN}
|
||||
OVERWRITECLIURL=https://${DOMAIN}
|
||||
OVERWRITEPROTOCOL=https
|
||||
TRUSTED_PROXIES=172.16.0.0/24 # trust the local lb
|
||||
PHP_MEMORY_LIMIT=1G
|
||||
PHP_UPLOAD_LIMIT=10G
|
||||
POSTGRES_HOST=db
|
||||
POSTGRES_DB_FILE=/run/secrets/postgres_db
|
||||
POSTGRES_USER_FILE=/run/secrets/postgres_user
|
||||
POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
|
||||
# admin user
|
||||
NEXTCLOUD_ADMIN_PASSWORD_FILE=/run/secrets/nextcloud_admin_password
|
||||
NEXTCLOUD_ADMIN_USER_FILE=/run/secrets/nextcloud_admin_user
|
||||
# redis
|
||||
REDIS_HOST=redis
|
||||
REDIS_HOST_PASSWORD_FILE=/run/secrets/redis_password
|
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
. apps.config
|
||||
|
||||
read -r -a APP_CONFIGS <<< "$APP_CONFIGS"
|
||||
|
||||
nextcloud_subdomain=
|
||||
|
||||
for config_string in ${APP_CONFIGS[@]}; do
|
||||
IFS=','
|
||||
read -r -a config <<< "$config_string"
|
||||
|
||||
app=${config[0]}
|
||||
subdomain=${config[1]}
|
||||
|
||||
if [ "$app" = "nextcloud" ]; then
|
||||
nextcloud_subdomain="$subdomain"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "DOMAIN=\"$nextcloud_subdomain.$ROOT_DOMAIN\"" > all-apps/nextcloud/nextcloud.env
|
||||
cat all-apps/nextcloud/nextcloud.env.tmpl >> all-apps/nextcloud/nextcloud.env
|
Loading…
Reference in New Issue