healthcheck

This commit is contained in:
Alexandre
2023-03-26 16:10:07 +02:00
parent 2ecba77a16
commit ddb271f935
3 changed files with 8 additions and 2 deletions

View File

@@ -172,7 +172,7 @@ LABEL \
#################
ENV HEALTH_PORT="80" \
HEALTH_URL="/status.php"
HEALTH_URL="/healthcheck"
HEALTHCHECK \
--interval=5s \
--retries=5 \

View File

@@ -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]"
}

View File

@@ -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;
}