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
+6 -6
View File
@@ -12,17 +12,17 @@ redir /files /files/ 301
reverse_proxy /jsonrpc 127.0.0.1:6800
route /rclone/* {
uri strip_prefix /rclone
reverse_proxy 127.0.0.1:5572
uri strip_prefix /rclone
reverse_proxy 127.0.0.1:5572
}
route /files/* {
uri strip_prefix /files
reverse_proxy 127.0.0.1:8080
uri strip_prefix /files
reverse_proxy 127.0.0.1:8080
}
route /ping {
respond "pong"
respond "app version: {env.APP_VERSION}"
}
root * /usr/local/www/aria2
@@ -30,5 +30,5 @@ file_server
encode gzip
log {
output stderr
output stderr
}
+9 -10
View File
@@ -1,13 +1,12 @@
{
debug
admin off
auto_https off
admin off
auto_https off
}
:PORT
basicauth / {
ARIA2_USER ARIA2_PWD_ENCRYPT
ARIA2_USER ARIA2_PWD_ENCRYPT
}
redir /ui / 301
@@ -18,17 +17,17 @@ redir /files /files/ 301
reverse_proxy /jsonrpc 127.0.0.1:6800
route /rclone/* {
uri strip_prefix /rclone
reverse_proxy 127.0.0.1:5572
uri strip_prefix /rclone
reverse_proxy 127.0.0.1:5572
}
route /files/* {
uri strip_prefix /files
reverse_proxy 127.0.0.1:8080
uri strip_prefix /files
reverse_proxy 127.0.0.1:8080
}
route /ping {
respond "pong"
respond "app version: {env.APP_VERSION}"
}
root * /usr/local/www/aria2
@@ -36,5 +35,5 @@ file_server
encode gzip
log {
output stderr
output stderr
}
+7 -8
View File
@@ -1,8 +1,7 @@
{$DOMAIN}
basicauth / {
ARIA2_USER ARIA2_PWD_ENCRYPT
ARIA2_USER ARIA2_PWD_ENCRYPT
}
redir /ui / 301
@@ -13,17 +12,17 @@ redir /files /files/ 301
reverse_proxy /jsonrpc 127.0.0.1:6800
route /rclone/* {
uri strip_prefix /rclone
reverse_proxy 127.0.0.1:5572
uri strip_prefix /rclone
reverse_proxy 127.0.0.1:5572
}
route /files/* {
uri strip_prefix /files
reverse_proxy 127.0.0.1:8080
uri strip_prefix /files
reverse_proxy 127.0.0.1:8080
}
route /ping {
respond "pong"
respond "app version: {env.APP_VERSION}"
}
root * /usr/local/www/aria2
@@ -31,5 +30,5 @@ file_server
encode gzip
log {
output stderr
output stderr
}
+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