add aria2 exporter
continuous-integration/drone/push Build is passing Details

master
Simon Bruder 2019-04-23 21:11:46 +00:00
parent efdb65fe1e
commit e14c963bed
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
3 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -19,4 +19,8 @@ server {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
location /metrics {
proxy_pass http://localhost:9578/metrics;
}
}