diff --git a/Containers/apache/Caddyfile b/Containers/apache/Caddyfile
index 875e6a07..01222f5c 100644
--- a/Containers/apache/Caddyfile
+++ b/Containers/apache/Caddyfile
@@ -34,7 +34,9 @@
# Onlyoffice
route /onlyoffice/* {
uri strip_prefix /onlyoffice
- reverse_proxy {$ONLYOFFICE_HOST}:80
+ reverse_proxy {$ONLYOFFICE_HOST}:80 {
+ header_up X-Forwarded-Host {http.request.host}/onlyoffice
+ }
}
# Nextcloud
diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh
index 63df5b76..ec239a2c 100644
--- a/Containers/nextcloud/entrypoint.sh
+++ b/Containers/nextcloud/entrypoint.sh
@@ -297,6 +297,10 @@ fi
# OnlyOffice
if [ "$ONLYOFFICE_ENABLED" = 'yes' ]; then
+ while ! nc -z "$ONLYOFFICE_HOST" 80; do
+ echo "waiting for OnlyOffice to become available..."
+ sleep 5
+ done
if ! [ -d "/var/www/html/custom_apps/onlyoffice" ]; then
php /var/www/html/occ app:install onlyoffice
elif [ "$(php /var/www/html/occ config:app:get onlyoffice enabled)" = "no" ]; then
diff --git a/php/containers.json b/php/containers.json
index 93b429ce..182bcecd 100644
--- a/php/containers.json
+++ b/php/containers.json
@@ -131,7 +131,8 @@
"CLAMAV_HOST=nextcloud-aio-clamav",
"ONLYOFFICE_ENABLED=%ONLYOFFICE_ENABLED%",
"COLLABORA_ENABLED=%COLLABORA_ENABLED%",
- "TALK_ENABLED=%TALK_ENABLED%"
+ "TALK_ENABLED=%TALK_ENABLED%",
+ "ONLYOFFICE_HOST=nextcloud-aio-onlyoffice"
],
"maxShutdownTime": 10,
"restartPolicy": "unless-stopped"
diff --git a/php/src/Controller/DockerController.php b/php/src/Controller/DockerController.php
index 3edf1901..fa240b1a 100644
--- a/php/src/Controller/DockerController.php
+++ b/php/src/Controller/DockerController.php
@@ -185,6 +185,7 @@ class DockerController
}
}
+ $this->StopDomaincheckContainer();
$this->PerformRecursiveContainerStart($id);
// Cache the start for 10 minutes
diff --git a/php/templates/containers.twig b/php/templates/containers.twig
index 7b4ef3ac..3073936f 100644
--- a/php/templates/containers.twig
+++ b/php/templates/containers.twig
@@ -82,10 +82,10 @@
{% if isAnyRunning == true %}
{% if isApacheStarting != true %}
Click here to reveal the initial Nextcloud credentials
+ Click here to reveal the initial Nextcloud credentials
Initial Nextcloud username: admin
- Initial Nextcloud password: {{ nextcloud_password }}
-
Open your Nextcloud ↗
{% else %}
{% if isAnyRestarting == false %}
@@ -208,16 +208,18 @@