mirror of
https://github.com/wahyd4/aria2-ariang-docker.git
synced 2026-08-09 05:15:55 +10:00
13 lines
320 B
Bash
Executable File
13 lines
320 B
Bash
Executable File
#! /bin/bash -eu
|
|
|
|
echo "Run aria2c and ariaNG"
|
|
if [ "$ENABLE_AUTH" = "true" ]; then
|
|
echo "Using Basic Auth config file "
|
|
export CADDY_FILE=/usr/local/caddy/SecureCaddyfile
|
|
else
|
|
echo "Using caddy without Basic Auth"
|
|
export CADDY_FILE=/usr/local/caddy/Caddyfile
|
|
fi
|
|
|
|
/usr/local/bin/caddy -quic --conf ${CADDY_FILE}
|