...
 
Commits (2)
......@@ -35,7 +35,8 @@ services:
NEXTCLOUD_ADMIN_PASSWORD: ${NC_ADMIN_PASSWORD:-changeme}
NEXTCLOUD_DATA_DIR: /var/www/nc_data
NEXTCLOUD_TABLE_PREFIX: nc
NEXTCLOUD_TRUSTED_DOMAINS: ${NC_DOMAIN:-nc.local}
NEXTCLOUD_TRUSTED_DOMAINS: ${NC_EXTERNAL_DOMAIN} ${NC_INTERNAL_DOMAIN}
NEXTCLOUD_INTERNAL_DOMAIN: ${NC_INTERNAL_DOMAIN}
ACME_SERVER: ${ACME_SERVER}
INSTITUTE_NAME: ${INSTITUTE_NAME:-dati sicuri per una scuola digitalmente sostenibile}
FUSS_SERVER_FQDN: ${FUSS_SERVER_FQDN}
......
......@@ -2,7 +2,8 @@ POSTGRES_USER=pgadmin
POSTGRES_PASSWORD=verystrongpassword
NC_ADMIN=root
NC_ADMIN_PASSWORD=verystrongpassword
NC_DOMAIN=your.domain.example.com
NC_EXTERNAL_DOMAIN=my.access.fuss.bz.it
NC_INTERNAL_DOMAIN=nc.my.scuole.fuss.bz.it
ACME_SERVER=172.16.1.50
INSTITUTE_NAME=
FUSS_SERVER_FQDN=my.fuss.bz.it
......
......@@ -36,7 +36,7 @@ if [ ! -e /etc/letsencrypt/live ]; then
--apache \
--non-interactive \
--server https://${ACME_SERVER}:4001/acme/acme/directory \
-d ${NEXTCLOUD_TRUSTED_DOMAINS}
-d ${NEXTCLOUD_INTERNAL_DOMAIN}
else
certbot renew --server https://${ACME_SERVER}:4001/acme/acme/directory
fi
......@@ -55,6 +55,10 @@ run_as 'cp /var/www/images/logo.png /var/www/html/core/img/logo/logo.png'
run_as 'cp /var/www/images/logo.svg /var/www/html/core/img/logo/logo.svg'
run_as 'php /var/www/html/occ maintenance:theme:update'
# Configure proxy
run_as 'php /var/www/html/occ config:system:set trusted_proxies 0 --value 10.0.101.75'
run_as "php /var/www/html/occ config:system:set overwritecondaddr --value '10.0.101.75'"
# Default provided files to new users
run_as 'mkdir -p /var/www/skeleton'
run_as 'cp /var/www/images/logo.png /var/www/skeleton/FUSS.png'
......