Skip to content

Instantly share code, notes, and snippets.

@bryanjhv
Created April 27, 2021 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanjhv/c5eef62407dd77b2f39a4b11835792da to your computer and use it in GitHub Desktop.
Save bryanjhv/c5eef62407dd77b2f39a4b11835792da to your computer and use it in GitHub Desktop.
Aria2 daemon with Web UI using Caddy server
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
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
[Unit]
Description=Aria2 Daemon
[Service]
Type=forking
ExecStart=/usr/bin/aria2c --conf-path=/home/myself/.config/aria2/aria2.daemon.conf
[Install]
WantedBy=default.target
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