Created
April 27, 2021 21:49
-
-
Save bryanjhv/c5eef62407dd77b2f39a4b11835792da to your computer and use it in GitHub Desktop.
Aria2 daemon with Web UI using Caddy server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check-integrity | |
continue | |
dir=${HOME}/Downloads | |
enable-http-pipelining | |
file-allocation=falloc | |
log-level=warn | |
max-connection-per-server=4 | |
min-split-size=5M | |
seed-time=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check-integrity | |
continue | |
daemon | |
dir=${HOME}/Downloads | |
enable-http-pipelining | |
enable-rpc | |
file-allocation=falloc | |
log-level=warn | |
max-connection-per-server=4 | |
min-split-size=5M | |
rpc-listen-all | |
rpc-secret=aria2caddy | |
seed-time=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Aria2 Daemon | |
[Service] | |
Type=forking | |
ExecStart=/usr/bin/aria2c --conf-path=/home/myself/.config/aria2/aria2.daemon.conf | |
[Install] | |
WantedBy=default.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aria2.server.lan { | |
file_server | |
encode gzip zstd | |
root * /home/myself/Projects/aria2/docs | |
@jsonrpc { | |
path /jsonrpc | |
header Upgrade websocket | |
header Connection *Upgrade* | |
} | |
route { | |
reverse_proxy @jsonrpc 127.0.0.1:6800 | |
try_files {path} /index.html | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment