Skip to content

Instantly share code, notes, and snippets.

@jiahuif
Created April 12, 2016 05:00
Show Gist options
  • Save jiahuif/394212f7bb52bb4189be72bdfc8cae7d to your computer and use it in GitHub Desktop.
Save jiahuif/394212f7bb52bb4189be72bdfc8cae7d to your computer and use it in GitHub Desktop.
nginx config file for transmission download site
# requires ngx-fancyindex
server {
listen 8080;
location /downloads {
alias /var/lib/transmission-daemon/downloads;
charset utf-8;
gzip on;
fancyindex on;
fancyindex_exact_size off;
fancyindex_default_sort date_desc;
fancyindex_name_length 500;
}
location /downloads-json {
alias /var/lib/transmission-daemon/downloads;
charset utf-8;
gzip on;
gzip_types application/json;
autoindex on;
# json output requires nginx 1.7.9 or later
autoindex_format json;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment