Compare commits

...
9 Commits
5 changed files with 24 additions and 21 deletions
+1 -1
View File
@@ -1 +1 @@
5.3.0
6.0.1
+3 -3
View File
@@ -1,6 +1,6 @@
FROM golang:alpine AS build-forego
FROM golang AS build-forego
RUN apk add --no-cache git openssh
RUN apt update && apt install -y git
WORKDIR /app
@@ -11,7 +11,7 @@ RUN git clone https://github.com/wahyd4/forego.git \
&& go build -o forego \
&& chmod +x forego
FROM alpine:edge
FROM debian:stable-slim
LABEL AUTHOR=Junv<wahyd4@gmail.com>
+4 -4
View File
@@ -68,12 +68,12 @@ File Browser
### Quick run
```shell
docker run -d --name aria2-ui -p 80:80 wahyd4/aria2-ui
docker run -d --name aria2-ui -p 8000:80 wahyd4/aria2-ui
```
* Aria2: <http://yourip>
* FileManger: <http://yourip/files>
* Rclone: <http://yourip/rclone>
* Aria2: <http://yourip:8000>
* FileManger: <http://yourip:8000/files>
* Rclone: <http://yourip:8000/rclone>
* Please use `admin`/`admin` as username and password to login `Filebrowser` for the first time. And use `user`/`password` to login `Rclone` if you don't update `ARIA2_USER` and `ARIA2_PWD`
### Full features run
+4 -4
View File
@@ -9,15 +9,15 @@ case $ENABLE_AUTH in
true)
echo "[INFO] Use Basic Auth config file "
export CADDY_FILE=/usr/local/caddy/SecureCaddyfile
sed -i 's/ARIA2_USER/'"${ARIA2_USER}"'/g' ${CADDY_FILE}
sed -i 's/ARIA2_PWD_ENCRYPT/'"${ARIA2_PWD_ENCRYPT}"'/g' ${CADDY_FILE}
sed -i "s#ARIA2_USER#${ARIA2_USER}#g" ${CADDY_FILE}
sed -i "s#ARIA2_PWD_ENCRYPT#${ARIA2_PWD_ENCRYPT}#g" ${CADDY_FILE}
;;
heroku)
echo "[INFO] Run Caddy with Heroku mode"
export CADDY_FILE=/usr/local/caddy/HerokuCaddyfile
sed -i 's/ARIA2_USER/'"${ARIA2_USER}"'/g' ${CADDY_FILE}
sed -i 's/ARIA2_PWD_ENCRYPT/'"${ARIA2_PWD_ENCRYPT}"'/g' ${CADDY_FILE}
sed -i "s#ARIA2_USER#${ARIA2_USER}#g" ${CADDY_FILE}
sed -i "s#ARIA2_PWD_ENCRYPT#${ARIA2_PWD_ENCRYPT}#g" ${CADDY_FILE}
sed -i 's/PORT/'"${PORT}"'/g' ${CADDY_FILE}
+12 -9
View File
@@ -2,10 +2,10 @@
echo "[INFO] Set variables for $(arch)"
caddy_version=2.6.4
filebrowser_version=v2.23.0
rclone_version=v1.62.2
ariang_version=1.3.4
caddy_version=2.7.5
filebrowser_version=v2.26.0
rclone_version=v1.64.2
ariang_version=1.3.6
case "$(arch)" in
@@ -34,10 +34,10 @@ esac
filebrowser_file=${platform}-filebrowser.tar.gz
ariang_file=AriaNg-${ariang_version}.zip
adduser -D -u 1000 junv \
&& apk update \
&& apk add runit shadow wget bash curl openrc gnupg aria2 tar mailcap fuse vim libcap --no-cache \
groupadd junv \
&& useradd -g junv -m -s /bin/bash junv \
&& apt update \
&& apt install -y wget curl aria2 tar unzip libcap2-bin runit\
&& wget -N https://github.com/caddyserver/caddy/releases/download/v${caddy_version}/${caddy_file} \
&& tar -zxf ${caddy_file} \
&& mv caddy /usr/local/bin/ \
@@ -65,6 +65,9 @@ adduser -D -u 1000 junv \
&& unzip ${ariang_file} \
&& rm -rf ${ariang_file} \
&& chmod -R 755 /usr/local/www/aria2 \
&& mkdir -p /data && chown junv:junv /data \
&& mkdir -p /data/cloud \
&& chown junv:junv /data/cloud \
&& ln -s /data/cloud /app
&& ln -s /data/cloud /app \
&& apt remove -y unzip\
&& apt clean