Skip to content

Commit 52d746e

Browse files
gbendyRoxedus
authored andcommitted
Add configurations for Sonarr to RSS
https://github.com/gbendy/sonarrToRSS/ https://registry.hub.docker.com/r/gbendy/sonarrtorss/ Container name matches that used by the published image above. Sonarr to RSS app supports both domain and subfolder reverse proxies and both configurations have been tested. API related and feed paths are exempt from nginx auth
1 parent e2a28c0 commit 52d746e

File tree

2 files changed

+92
-0
lines changed

2 files changed

+92
-0
lines changed

sonarrtorss.subdomain.conf.sample

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
## Version 2024/06/21
2+
# make sure that your sonarrtorss container is named sonarrtorss
3+
# make sure that your dns has a cname set for sonarrtorss
4+
5+
server {
6+
listen 443 ssl http2;
7+
listen [::]:443 ssl http2;
8+
9+
server_name sonarrtorss.*;
10+
11+
include /config/nginx/ssl.conf;
12+
13+
client_max_body_size 0;
14+
15+
# enable for ldap auth (requires ldap-location.conf in the location block)
16+
#include /config/nginx/ldap-server.conf;
17+
18+
# enable for Authelia (requires authelia-location.conf in the location block)
19+
#include /config/nginx/authelia-server.conf;
20+
21+
# enable for Authentik (requires authentik-location.conf in the location block)
22+
#include /config/nginx/authentik-server.conf;
23+
24+
location / {
25+
# enable the next two lines for http auth
26+
#auth_basic "Restricted";
27+
#auth_basic_user_file /config/nginx/.htpasswd;
28+
29+
# enable for ldap auth (requires ldap-server.conf in the server block)
30+
#include /config/nginx/ldap-location.conf;
31+
32+
# enable for Authelia (requires authelia-server.conf in the server block)
33+
#include /config/nginx/authelia-location.conf;
34+
35+
# enable for Authentik (requires authentik-server.conf in the server block)
36+
#include /config/nginx/authentik-location.conf;
37+
38+
include /config/nginx/proxy.conf;
39+
include /config/nginx/resolver.conf;
40+
set $upstream_app sonarrtorss;
41+
set $upstream_port 18989;
42+
set $upstream_proto http;
43+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
44+
}
45+
46+
location ~ ^/(api/|sonarr$|rss$|atom$|json$) {
47+
include /config/nginx/proxy.conf;
48+
include /config/nginx/resolver.conf;
49+
set $upstream_app sonarrtorss;
50+
set $upstream_port 18989;
51+
set $upstream_proto http;
52+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
53+
}
54+
}

sonarrtorss.subfolder.conf.sample

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## Version 2024/06/21
2+
# make sure that your sonarrtorss container is named sonarrtorss
3+
# sonarrtorss does not require a base url setting
4+
5+
location ^~ /sonarrtorss {
6+
# enable the next two lines for http auth
7+
#auth_basic "Restricted";
8+
#auth_basic_user_file /config/nginx/.htpasswd;
9+
10+
# enable for ldap auth (requires ldap-server.conf in the server block)
11+
#include /config/nginx/ldap-location.conf;
12+
13+
# enable for Authelia (requires authelia-server.conf in the server block)
14+
#include /config/nginx/authelia-location.conf;
15+
16+
# enable for Authentik (requires authentik-server.conf in the server block)
17+
#include /config/nginx/authentik-location.conf;
18+
19+
include /config/nginx/proxy.conf;
20+
include /config/nginx/resolver.conf;
21+
set $upstream_app sonarrtorss;
22+
set $upstream_port 18989;
23+
set $upstream_proto http;
24+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
25+
26+
rewrite /sonarrtorss(.*) $1 break;
27+
}
28+
29+
location ~ ^/sonarrtorss/(api/|sonarr$|rss$|atom$|json$) {
30+
include /config/nginx/proxy.conf;
31+
include /config/nginx/resolver.conf;
32+
set $upstream_app sonarrtorss;
33+
set $upstream_port 18989;
34+
set $upstream_proto http;
35+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
36+
37+
rewrite /sonarrtorss(.*) $1 break;
38+
}

0 commit comments

Comments
 (0)