This repository has been archived on 2020-08-13. You can view files and clone it, but cannot push or open issues or pull requests.
aria2/nginx.conf
Simon Bruder e14c963bed
All checks were successful
continuous-integration/drone/push Build is passing
add aria2 exporter
2019-04-23 21:11:46 +00:00

27 lines
489 B
Nginx Configuration File

server {
listen 80;
server_name localhost;
root /srv/www/webui/;
location / {
index index.html;
}
location /download/ {
alias /data/;
autoindex on;
}
location /jsonrpc {
proxy_pass http://localhost:6800/jsonrpc;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
location /metrics {
proxy_pass http://localhost:9578/metrics;
}
}