From 87b1485bc7bc091d6a9ff58cffc6b3e50fa5d309 Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Mon, 12 Aug 2019 08:53:22 -0500 Subject: [PATCH] Add missing hydra2 api endpoints --- nzbhydra.subdomain.conf.sample | 15 +++++++++++++++ nzbhydra.subfolder.conf.sample | 14 ++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/nzbhydra.subdomain.conf.sample b/nzbhydra.subdomain.conf.sample index 7f7e22c..7b18fe2 100644 --- a/nzbhydra.subdomain.conf.sample +++ b/nzbhydra.subdomain.conf.sample @@ -34,4 +34,19 @@ server { set $upstream_nzbhydra hydra2; proxy_pass http://$upstream_nzbhydra:5076; } + + location ~ (/nzbhydra)?/getnzb { + include /config/nginx/proxy.conf; + resolver 127.0.0.11 valid=30s; + set $upstream_nzbhydra hydra2; + proxy_pass http://$upstream_nzbhydra:5076; + } + + location ~ (/nzbhydra)?/torznab/api { + include /config/nginx/proxy.conf; + resolver 127.0.0.11 valid=30s; + set $upstream_nzbhydra hydra2; + proxy_pass http://$upstream_nzbhydra:5076; + } + } diff --git a/nzbhydra.subfolder.conf.sample b/nzbhydra.subfolder.conf.sample index 05d8528..d17eed4 100644 --- a/nzbhydra.subfolder.conf.sample +++ b/nzbhydra.subfolder.conf.sample @@ -21,3 +21,17 @@ location ^~ /nzbhydra/api { set $upstream_nzbhydra hydra2; proxy_pass http://$upstream_nzbhydra:5076; } + +location /nzbhydra/getnzb { + include /config/nginx/proxy.conf; + resolver 127.0.0.11 valid=30s; + set $upstream_nzbhydra hydra2; + proxy_pass http://$upstream_nzbhydra:5076; +} + +location /nzbhydra/torznab/api { + include /config/nginx/proxy.conf; + resolver 127.0.0.11 valid=30s; + set $upstream_nzbhydra hydra2; + proxy_pass http://$upstream_nzbhydra:5076; +}