From f430660ba2b245de1480b1ffdd764a511b13a473 Mon Sep 17 00:00:00 2001 From: Simon L Date: Wed, 31 May 2023 10:19:34 +0200 Subject: [PATCH] adjustments to AIO_URL and AIO_TOKEN Signed-off-by: Simon L --- Containers/nextcloud/Dockerfile | 2 ++ manual-install/update-yaml.sh | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Containers/nextcloud/Dockerfile b/Containers/nextcloud/Dockerfile index 3e6e115e..84efdf08 100644 --- a/Containers/nextcloud/Dockerfile +++ b/Containers/nextcloud/Dockerfile @@ -5,6 +5,8 @@ ENV PHP_MEMORY_LIMIT 512M ENV PHP_UPLOAD_LIMIT 10G ENV PHP_MAX_TIME 3600 ENV NEXTCLOUD_VERSION 26.0.2 +ENV AIO_TOKEN 123456 +ENV AIO_URL localhost COPY --chmod=775 *.sh / COPY --chmod=774 upgrade.exclude /upgrade.exclude diff --git a/manual-install/update-yaml.sh b/manual-install/update-yaml.sh index e5d5eb05..ccd998ab 100644 --- a/manual-install/update-yaml.sh +++ b/manual-install/update-yaml.sh @@ -32,6 +32,11 @@ sed -i '/stop_grace_period:/s/$/s/' containers.yml sed -i '/: \[\]/d' containers.yml sed -i 's|- source: |- |' containers.yml sed -i 's|- ip_binding: |- |' containers.yml +sed -i '/AIO_TOKEN/d' containers.yml +sed -i '/AIO_URL/d' containers.yml + +sed -i '/AIO_TOKEN/d' sample.conf +sed -i '/AIO_URL/d' sample.conf TCP="$(grep -oP '[%A-Z0-9_]+/tcp' containers.yml | sort -u)" mapfile -t TCP <<< "$TCP" @@ -76,8 +81,6 @@ sed -i 's|UPDATE_NEXTCLOUD_APPS=|UPDATE_NEXTCLOUD_APPS="no" # When sett sed -i 's|APACHE_PORT=|APACHE_PORT=443 # Changing this to a different value than 443 will allow you to run it behind a web server or reverse proxy (like Apache, Nginx and else).|' sample.conf sed -i 's|APACHE_IP_BINDING=|APACHE_IP_BINDING=0.0.0.0 # This can be changed to e.g. 127.0.0.1 if you want to run AIO behind a web server or reverse proxy (like Apache, Nginx and else) and if that is running on the same host and using localhost to connect|' sample.conf sed -i 's|TALK_PORT=|TALK_PORT=3478 # This allows to adjust the port that the talk container is using.|' sample.conf -sed -i 's|AIO_TOKEN=|AIO_TOKEN=123456 # Has no function but needs to be set!|' sample.conf -sed -i 's|AIO_URL=|AIO_URL=localhost # Has no function but needs to be set!|' sample.conf sed -i 's|NC_DOMAIN=|NC_DOMAIN=yourdomain.com # TODO! Needs to be changed to the domain that you want to use for Nextcloud.|' sample.conf sed -i 's|NEXTCLOUD_PASSWORD=|NEXTCLOUD_PASSWORD= # TODO! This is the password of the initially created Nextcloud admin with username "admin".|' sample.conf sed -i 's|TIMEZONE=|TIMEZONE=Europe/Berlin # TODO! This is the timezone that your containers will use.|' sample.conf