From 3e8fefdf0a34d254b70fea7496bda5865e47c2b1 Mon Sep 17 00:00:00 2001 From: geekau Date: Sun, 4 Aug 2024 11:23:04 +1000 Subject: [PATCH 1/5] Add sample configs for whisparr and ddns-updater --- ddns-updater.subdomain.conf.sample | 55 ++++++++++++++++++++++++++++++ ddns-updater.subfolder.conf.sample | 35 +++++++++++++++++++ whisparr.subdomain.conf.sample | 55 ++++++++++++++++++++++++++++++ whisparr.subfolder.conf.sample | 35 +++++++++++++++++++ 4 files changed, 180 insertions(+) create mode 100644 ddns-updater.subdomain.conf.sample create mode 100644 ddns-updater.subfolder.conf.sample create mode 100644 whisparr.subdomain.conf.sample create mode 100644 whisparr.subfolder.conf.sample diff --git a/ddns-updater.subdomain.conf.sample b/ddns-updater.subdomain.conf.sample new file mode 100644 index 0000000..a3e2f2e --- /dev/null +++ b/ddns-updater.subdomain.conf.sample @@ -0,0 +1,55 @@ +# make sure that your ddns-updater container is named ddns-updater +# make sure that your dns has a cname set for ddns-updater + +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name ddns-updater.*; + + include /config/nginx/ssl.conf; + + client_max_body_size 0; + + # enable for ldap auth (requires ldap-location.conf in the location block) + #include /config/nginx/ldap-server.conf; + + # enable for Authelia (requires authelia-location.conf in the location block) + #include /config/nginx/authelia-server.conf; + + # enable for Authentik (requires authentik-location.conf in the location block) + #include /config/nginx/authentik-server.conf; + + location / { + # enable the next two lines for http auth + #auth_basic "Restricted"; + #auth_basic_user_file /config/nginx/.htpasswd; + + # enable for ldap auth (requires ldap-server.conf in the server block) + #include /config/nginx/ldap-location.conf; + + # enable for Authelia (requires authelia-server.conf in the server block) + #include /config/nginx/authelia-location.conf; + + # enable for Authentik (requires authentik-server.conf in the server block) + #include /config/nginx/authentik-location.conf; + + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app ddns-updater; + set $upstream_port 8000; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + } + + location ~ (/ddns-updater)?/api { + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app ddns-updater; + set $upstream_port 8000; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + } +} \ No newline at end of file diff --git a/ddns-updater.subfolder.conf.sample b/ddns-updater.subfolder.conf.sample new file mode 100644 index 0000000..e4cdf9f --- /dev/null +++ b/ddns-updater.subfolder.conf.sample @@ -0,0 +1,35 @@ +# make sure that your ddns-updater container is named ddns-updater +# make sure that ddns-updater is set to work with the base url /ddns-updater/ + +location ^~ /ddns-updater { + # enable the next two lines for http auth + #auth_basic "Restricted"; + #auth_basic_user_file /config/nginx/.htpasswd; + + # enable for ldap auth (requires ldap-server.conf in the server block) + #include /config/nginx/ldap-location.conf; + + # enable for Authelia (requires authelia-server.conf in the server block) + #include /config/nginx/authelia-location.conf; + + # enable for Authentik (requires authentik-server.conf in the server block) + #include /config/nginx/authentik-location.conf; + + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app ddns-updater; + set $upstream_port 8000; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + +} + +location ^~ /ddns-updater/api { + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app ddns-updater; + set $upstream_port 8000; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + +} \ No newline at end of file diff --git a/whisparr.subdomain.conf.sample b/whisparr.subdomain.conf.sample new file mode 100644 index 0000000..5a70b7e --- /dev/null +++ b/whisparr.subdomain.conf.sample @@ -0,0 +1,55 @@ +# make sure that your whisparr container is named whisparr +# make sure that your dns has a cname set for whisparr + +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name whisparr.*; + + include /config/nginx/ssl.conf; + + client_max_body_size 0; + + # enable for ldap auth (requires ldap-location.conf in the location block) + #include /config/nginx/ldap-server.conf; + + # enable for Authelia (requires authelia-location.conf in the location block) + #include /config/nginx/authelia-server.conf; + + # enable for Authentik (requires authentik-location.conf in the location block) + #include /config/nginx/authentik-server.conf; + + location / { + # enable the next two lines for http auth + #auth_basic "Restricted"; + #auth_basic_user_file /config/nginx/.htpasswd; + + # enable for ldap auth (requires ldap-server.conf in the server block) + #include /config/nginx/ldap-location.conf; + + # enable for Authelia (requires authelia-server.conf in the server block) + #include /config/nginx/authelia-location.conf; + + # enable for Authentik (requires authentik-server.conf in the server block) + #include /config/nginx/authentik-location.conf; + + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app whisparr; + set $upstream_port 6969; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + } + + location ~ (/whisparr)?/api { + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app whisparr; + set $upstream_port 6969; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + } +} \ No newline at end of file diff --git a/whisparr.subfolder.conf.sample b/whisparr.subfolder.conf.sample new file mode 100644 index 0000000..0b61066 --- /dev/null +++ b/whisparr.subfolder.conf.sample @@ -0,0 +1,35 @@ +# make sure that your whisparr container is named whisparr +# make sure that whisparr is set to work with the base url /whisparr/ + +location ^~ /whisparr { + # enable the next two lines for http auth + #auth_basic "Restricted"; + #auth_basic_user_file /config/nginx/.htpasswd; + + # enable for ldap auth (requires ldap-server.conf in the server block) + #include /config/nginx/ldap-location.conf; + + # enable for Authelia (requires authelia-server.conf in the server block) + #include /config/nginx/authelia-location.conf; + + # enable for Authentik (requires authentik-server.conf in the server block) + #include /config/nginx/authentik-location.conf; + + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app whisparr; + set $upstream_port 6969; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + +} + +location ^~ /whisparr/api { + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app whisparr; + set $upstream_port 6969; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + +} \ No newline at end of file From e07e26c755b9c84cd8807f7d97d634290807f226 Mon Sep 17 00:00:00 2001 From: geekau Date: Sun, 4 Aug 2024 12:15:43 +1000 Subject: [PATCH 2/5] Update ddns-updater.subdomain.conf.sample Added version date --- ddns-updater.subdomain.conf.sample | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ddns-updater.subdomain.conf.sample b/ddns-updater.subdomain.conf.sample index a3e2f2e..e02a809 100644 --- a/ddns-updater.subdomain.conf.sample +++ b/ddns-updater.subdomain.conf.sample @@ -1,3 +1,4 @@ +## Version 2024/08/04 # make sure that your ddns-updater container is named ddns-updater # make sure that your dns has a cname set for ddns-updater @@ -52,4 +53,4 @@ server { proxy_pass $upstream_proto://$upstream_app:$upstream_port; } -} \ No newline at end of file +} From 670eec1795bae8fc6c2f4d6d569ae815f3eaa115 Mon Sep 17 00:00:00 2001 From: geekau Date: Sun, 4 Aug 2024 12:16:14 +1000 Subject: [PATCH 3/5] Update ddns-updater.subfolder.conf.sample added version date --- ddns-updater.subfolder.conf.sample | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ddns-updater.subfolder.conf.sample b/ddns-updater.subfolder.conf.sample index e4cdf9f..f4ad7e9 100644 --- a/ddns-updater.subfolder.conf.sample +++ b/ddns-updater.subfolder.conf.sample @@ -1,3 +1,4 @@ +## Version 2024/08/04 # make sure that your ddns-updater container is named ddns-updater # make sure that ddns-updater is set to work with the base url /ddns-updater/ @@ -32,4 +33,4 @@ location ^~ /ddns-updater/api { set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; -} \ No newline at end of file +} From c94f57fb1ff313a228a4aa5c827db80ef4b5b341 Mon Sep 17 00:00:00 2001 From: geekau Date: Sun, 4 Aug 2024 12:16:43 +1000 Subject: [PATCH 4/5] Update whisparr.subdomain.conf.sample added version date --- whisparr.subdomain.conf.sample | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/whisparr.subdomain.conf.sample b/whisparr.subdomain.conf.sample index 5a70b7e..a900e3b 100644 --- a/whisparr.subdomain.conf.sample +++ b/whisparr.subdomain.conf.sample @@ -1,3 +1,4 @@ +## Version 2024/08/04 # make sure that your whisparr container is named whisparr # make sure that your dns has a cname set for whisparr @@ -52,4 +53,4 @@ server { proxy_pass $upstream_proto://$upstream_app:$upstream_port; } -} \ No newline at end of file +} From fc36461bb663366708f25e28b4bb4d01376cb6fb Mon Sep 17 00:00:00 2001 From: geekau Date: Sun, 4 Aug 2024 12:17:05 +1000 Subject: [PATCH 5/5] Update whisparr.subfolder.conf.sample added version date --- whisparr.subfolder.conf.sample | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/whisparr.subfolder.conf.sample b/whisparr.subfolder.conf.sample index 0b61066..13d3693 100644 --- a/whisparr.subfolder.conf.sample +++ b/whisparr.subfolder.conf.sample @@ -1,3 +1,4 @@ +## Version 2024/08/04 # make sure that your whisparr container is named whisparr # make sure that whisparr is set to work with the base url /whisparr/ @@ -32,4 +33,4 @@ location ^~ /whisparr/api { set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; -} \ No newline at end of file +}