add transmission

fix lidar bugs
remove nzb shizzle
This commit is contained in:
kjeld Schouten-Lebbing 2020-02-28 16:21:57 +01:00
parent 0870c6c8ab
commit 3cbec21bfc
2 changed files with 15 additions and 20 deletions

View File

@ -20,25 +20,7 @@ location / {
location /transmission/ { location /transmission/ {
auth_request /auth-0; auth_request /auth-0;
add_header X-Frame-Options "SAMEORIGIN"; add_header X-Frame-Options "SAMEORIGIN";
proxy_pass https://192.168.30.29:9091; proxy_pass http://192.168.31.22:9091;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /nzbget/ {
auth_request /auth-0;
add_header X-Frame-Options "SAMEORIGIN";
proxy_pass https://127.0.0.1:6789;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /nzbhydra/ {
auth_request /auth-0;
add_header X-Frame-Options "SAMEORIGIN";
proxy_pass https://127.0.0.1:5075/nzbhydra/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@ -66,7 +48,7 @@ location /radarr/ {
location /lidarr/ { location /lidarr/ {
auth_request /auth-0; auth_request /auth-0;
add_header X-Frame-Options "SAMEORIGIN"; add_header X-Frame-Options "SAMEORIGIN";
proxy_pass http://192.168.31.25:7878; proxy_pass http://192.168.31.25:8686;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

13
install/transmission.sh Normal file
View File

@ -0,0 +1,13 @@
echo '{"pkgs":["bash","unzip","unrar","transmission","ca_root_nss","nano"]}' > /tmp/pkg.json
iocage create -n "transmission" -p /tmp/pkg.json -r 11.3-RELEASE interfaces="vnet0:bridge31" ip4_addr="vnet0|192.168.31.22/24" defaultrouter="192.168.31.1" vnet="on" allow_raw_sockets="1" boot="on"
rm /tmp/pkg.json
iocage exec transmission mkdir -p /config
iocage exec transmission mkdir -p /mnt/downloads
iocage fstab -a transmission /mnt/tank/apps/transmission /config nullfs rw 0 0
iocage fstab -a transmission /mnt/tank/downloads /mnt/downloads nullfs rw 0 0
iocage exec transmission mkdir -p /config
iocage exec transmission chown -R transmission:transmission /config
iocage exec transmission sysrc "transmission_enable=YES"
iocage exec transmission sysrc "transmission_conf_dir=/confige"
iocage exec transmission sysrc "transmission_download_dir=/mnt/downloads/complete"
iocage exec transmission service transmission start