This commit is contained in:
parent
efdb65fe1e
commit
e14c963bed
|
@ -20,6 +20,8 @@ RUN apk add --no-cache \
|
|||
nginx \
|
||||
su-exec
|
||||
|
||||
COPY --from=sbruder/aria2_exporter /aria2_exporter /aria2_exporter
|
||||
|
||||
COPY --from=webui /webui-aria2/docs /srv/www/webui
|
||||
COPY --from=webui /AriaNg/dist /srv/www/webui/ng
|
||||
|
||||
|
|
|
@ -5,6 +5,8 @@ if ! [ -z $NGINX_LISTEN_SOCKET ]; then
|
|||
fi
|
||||
nginx
|
||||
|
||||
ARIA2_URL=http://localhost:6800 /aria2_exporter &
|
||||
|
||||
touch /data/torrents
|
||||
chown $UID /data/torrents
|
||||
|
||||
|
|
|
@ -19,4 +19,8 @@ server {
|
|||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
}
|
||||
|
||||
location /metrics {
|
||||
proxy_pass http://localhost:9578/metrics;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue