Compare commits

...
8 Commits
7 changed files with 42 additions and 31 deletions
+1 -1
View File
@@ -1 +1 @@
4.10.0
4.13.1
+9 -5
View File
@@ -12,13 +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 "app version: {env.APP_VERSION}"
}
root * /usr/local/www/aria2
@@ -26,5 +30,5 @@ file_server
encode gzip
log {
output stderr
output stderr
}
+3 -5
View File
@@ -6,9 +6,7 @@ WORKDIR /app
RUN git clone https://github.com/wahyd4/forego.git \
&& cd forego \
&& git checkout 20180216151118 \
&& go mod init \
&& go mod vendor \
&& git checkout fix-go-mod \
&& go mod download \
&& go build -o forego \
&& chmod +x forego
@@ -54,7 +52,7 @@ VOLUME /data
EXPOSE 80 443
HEALTHCHECK --interval=1m --timeout=3s \
CMD curl -f http://localhost || exit 1
HEALTHCHECK --interval=30s --timeout=3s \
CMD curl -f http://localhost/ping || exit 1
CMD ["./start.sh"]
+12 -9
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,13 +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 "app version: {env.APP_VERSION}"
}
root * /usr/local/www/aria2
@@ -32,5 +35,5 @@ file_server
encode gzip
log {
output stderr
output stderr
}
+10 -7
View File
@@ -1,8 +1,7 @@
{$DOMAIN}
basicauth / {
ARIA2_USER ARIA2_PWD_ENCRYPT
ARIA2_USER ARIA2_PWD_ENCRYPT
}
redir /ui / 301
@@ -13,13 +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 "app version: {env.APP_VERSION}"
}
root * /usr/local/www/aria2
@@ -27,5 +30,5 @@ file_server
encode gzip
log {
output stderr
output stderr
}
+4 -4
View File
@@ -2,10 +2,10 @@
echo "[INFO] Set variables for $(arch)"
caddy_version=2.4.5
filebrowser_version=v2.17.2
rclone_version=v1.56.2
ariang_version=1.2.2
caddy_version=2.4.6
filebrowser_version=v2.20.1
rclone_version=v1.57.0
ariang_version=1.2.3
case "$(arch)" in
+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