mirror of
https://github.com/wahyd4/aria2-ariang-docker.git
synced 2026-08-08 21:05:50 +10:00
Update docker file by enable caddy filemanager plugin.
This commit is contained in:
@@ -4,4 +4,12 @@
|
||||
gzip
|
||||
log stdout
|
||||
errors stdout
|
||||
|
||||
|
||||
}
|
||||
|
||||
{$DOMAIN}/files {
|
||||
filemanager / /data
|
||||
}
|
||||
|
||||
|
||||
|
||||
+5
-2
@@ -1,5 +1,6 @@
|
||||
FROM abiosoft/caddy
|
||||
MAINTAINER Junv<wahyd4@gmail.com>
|
||||
FROM alpine:edge
|
||||
|
||||
LABEL AUTHOR=Junv<wahyd4@gmail.com>
|
||||
|
||||
WORKDIR /root
|
||||
|
||||
@@ -14,6 +15,8 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositorie
|
||||
|
||||
RUN apk update && apk add wget bash curl openrc screen aria2 tar --no-cache
|
||||
|
||||
RUN curl https://getcaddy.com | bash -s personal http.filemanager
|
||||
|
||||
ADD conf /root/conf
|
||||
|
||||
COPY Caddyfile /usr/local/caddy/Caddyfile
|
||||
|
||||
@@ -11,14 +11,18 @@ fi
|
||||
if [ "$SSL" = "true" ]; then
|
||||
echo "Start aria2 with secure config"
|
||||
|
||||
/usr/bin/aria2c --conf-path="/root/conf/aria2.conf" -D --enable-rpc --rpc-listen-all --rpc-certificate=/root/conf/key/aria2.crt --rpc-private-key=/root/conf/key/aria2.key --rpc-secret="$RPC_SECRET" --rpc-secure \
|
||||
/usr/bin/aria2c --conf-path="/root/conf/aria2.conf" -D \
|
||||
--enable-rpc --rpc-listen-all \
|
||||
--rpc-certificate=/root/conf/key/aria2.crt \
|
||||
--rpc-private-key=/root/conf/key/aria2.key \
|
||||
--rpc-secret="$RPC_SECRET" --rpc-secure \
|
||||
&& caddy -quic --conf ${CADDY_FILE}
|
||||
|
||||
else
|
||||
echo "Start aria2 with standard mode"
|
||||
/usr/bin/aria2c --conf-path="/root/conf/aria2.conf" -D --enable-rpc --rpc-listen-all \
|
||||
/usr/bin/aria2c --conf-path="/root/conf/aria2.conf" -D \
|
||||
--enable-rpc --rpc-listen-all \
|
||||
&& caddy -quic --conf ${CADDY_FILE}
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user