Refine the health point to return current app version, just for debuging issues (#200)

This commit is contained in:
2022-03-09 18:48:23 +11:00
committed by GitHub
parent aa1db00ca1
commit d12c6f7ea2
4 changed files with 25 additions and 24 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ route /files/* {
}
route /ping {
respond "pong"
respond "app version: {env.APP_VERSION}"
}
root * /usr/local/www/aria2
+1 -2
View File
@@ -1,5 +1,4 @@
{
debug
admin off
auto_https off
}
@@ -28,7 +27,7 @@ route /files/* {
}
route /ping {
respond "pong"
respond "app version: {env.APP_VERSION}"
}
root * /usr/local/www/aria2
+1 -2
View File
@@ -1,4 +1,3 @@
{$DOMAIN}
basicauth / {
@@ -23,7 +22,7 @@ route /files/* {
}
route /ping {
respond "pong"
respond "app version: {env.APP_VERSION}"
}
root * /usr/local/www/aria2
+3
View File
@@ -1,4 +1,7 @@
#!/bin/bash -eu
export APP_VERSION=$(cat /app/APP_VERSION)
if [ "$PGID" != "0" ]; then
$(dirname $0)/init.sh chpst -u junv ./forego start
else