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