File tree 5 files changed +26
-14
lines changed
5 files changed +26
-14
lines changed Original file line number Diff line number Diff line change 1
- #{
2
- # auto_https off
3
- #}
4
-
5
1
{$DOMAIN}
6
2
3
+ log {
4
+ level {env.CADDY_LOG_LEVEL}
5
+ output stderr
6
+ }
7
+
7
8
redir /ui / 301
8
9
redir /ui/ / 301
9
10
redir /rclone /rclone/ 301
@@ -29,6 +30,3 @@ root * /usr/local/www/aria2
29
30
file_server
30
31
31
32
encode gzip
32
- log {
33
- output stderr
34
- }
Original file line number Diff line number Diff line change @@ -31,8 +31,10 @@ ENV CADDYPATH=/app
31
31
ENV RCLONE_CONFIG=/app/conf/rclone.conf
32
32
ENV XDG_DATA_HOME=/app/.caddy/data
33
33
ENV XDG_CONFIG_HOME=/app/.caddy/config
34
+ ENV XDG_CACHE_HOME=/app/.cache
34
35
ENV RCLONE_CONFIG_BASE64=""
35
36
ENV ENABLE_APP_CHECKER=true
37
+ ENV CADDY_LOG_LEVEL=INFO
36
38
37
39
ADD install.sh aria2c.sh caddy.sh Procfile init.sh start.sh rclone.sh new-version-checker.sh APP_VERSION /app/
38
40
ADD conf /app/conf
@@ -44,13 +46,16 @@ RUN ./install.sh
44
46
45
47
RUN rm ./install.sh
46
48
47
- # folder for storing ssl keys
48
- VOLUME /app/conf/key
49
+ # For config files
50
+ VOLUME /app/conf/
49
51
50
- # file downloading folder
52
+ # For file downloading
51
53
VOLUME /data
52
54
53
- EXPOSE 80 443
55
+ # For rclone cache and aria2 DHT files
56
+ VOLUME /app/.cache
57
+
58
+ EXPOSE 80 443 6881
54
59
55
60
HEALTHCHECK --interval=30s --timeout=3s \
56
61
CMD curl -f http://localhost/ping || exit 1
Original file line number Diff line number Diff line change 1
1
{$DOMAIN}
2
2
3
+ log {
4
+ level {env.CADDY_LOG_LEVEL}
5
+ output stderr
6
+ }
7
+
3
8
basicauth / {
4
9
ARIA2_USER ARIA2_PWD_ENCRYPT
5
10
}
@@ -29,6 +34,3 @@ root * /usr/local/www/aria2
29
34
file_server
30
35
31
36
encode gzip
32
- log {
33
- output stderr
34
- }
Original file line number Diff line number Diff line change @@ -73,3 +73,9 @@ on-download-complete=/app/conf/aria2-sample-hook.sh
73
73
74
74
# The script to be run when download fails
75
75
on-download-error=/app/conf/aria2-sample-hook.sh
76
+
77
+ ## DHT
78
+ dht-entry-point=dht.transmissionbt.com:6881
79
+ dht-entry-point=dht.vuze.com:6881
80
+ dht-entry-point=dht.libtorrent.org:25401
81
+ dht-listen-port=6881
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ usermod -o -u "$PUID" junv
6
6
7
7
mkdir -p /app/.caddy
8
8
mkdir -p /app/.cache
9
+ mkdir -p /app/.cache/aria2
9
10
10
11
chown -R junv:junv \
11
12
/app \
You can’t perform that action at this time.
0 commit comments