diff --git a/nextcloud/Dockerfile b/nextcloud/Dockerfile index 6f9fae6a1..6eea651f9 100644 --- a/nextcloud/Dockerfile +++ b/nextcloud/Dockerfile @@ -172,7 +172,7 @@ LABEL \ ################# ENV HEALTH_PORT="80" \ - HEALTH_URL="/status.php" + HEALTH_URL="/healthcheck" HEALTHCHECK \ --interval=5s \ --retries=5 \ diff --git a/nextcloud/config.json b/nextcloud/config.json index 209e80088..99c0edcd8 100644 --- a/nextcloud/config.json +++ b/nextcloud/config.json @@ -106,6 +106,6 @@ "slug": "nextcloud_ocr", "uart": true, "url": "https://github.com/alexbelgium/hassio-addons/tree/master/nextcloud", - "version": "26.0.0-2", + "version": "26.0.0-3", "webui": "https://[HOST]:[PORT:443]" } \ No newline at end of file diff --git a/nextcloud/rootfs/defaults/nginx_addition b/nextcloud/rootfs/defaults/nginx_addition index b5cf94ba0..9f51dea66 100644 --- a/nextcloud/rootfs/defaults/nginx_addition +++ b/nextcloud/rootfs/defaults/nginx_addition @@ -1,5 +1,11 @@ add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;"; +location /healthcheck { + proxy_pass http://127.0.0.1:80/status.php; + access_log off; + log_not_found off; +} + location = /.well-known/host-meta { return 301 $scheme://$http_hostpublic.php?service=host-meta; }