Created
April 12, 2016 05:00
-
-
Save jiahuif/394212f7bb52bb4189be72bdfc8cae7d to your computer and use it in GitHub Desktop.
nginx config file for transmission download site
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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