Skip to content

Commit 3e8fefd

Browse files
committed
Add sample configs for whisparr and ddns-updater
1 parent 3f5dd87 commit 3e8fefd

4 files changed

+180
-0
lines changed

ddns-updater.subdomain.conf.sample

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

ddns-updater.subfolder.conf.sample

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# make sure that your ddns-updater container is named ddns-updater
2+
# make sure that ddns-updater is set to work with the base url /ddns-updater/
3+
4+
location ^~ /ddns-updater {
5+
# enable the next two lines for http auth
6+
#auth_basic "Restricted";
7+
#auth_basic_user_file /config/nginx/.htpasswd;
8+
9+
# enable for ldap auth (requires ldap-server.conf in the server block)
10+
#include /config/nginx/ldap-location.conf;
11+
12+
# enable for Authelia (requires authelia-server.conf in the server block)
13+
#include /config/nginx/authelia-location.conf;
14+
15+
# enable for Authentik (requires authentik-server.conf in the server block)
16+
#include /config/nginx/authentik-location.conf;
17+
18+
include /config/nginx/proxy.conf;
19+
include /config/nginx/resolver.conf;
20+
set $upstream_app ddns-updater;
21+
set $upstream_port 8000;
22+
set $upstream_proto http;
23+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
24+
25+
}
26+
27+
location ^~ /ddns-updater/api {
28+
include /config/nginx/proxy.conf;
29+
include /config/nginx/resolver.conf;
30+
set $upstream_app ddns-updater;
31+
set $upstream_port 8000;
32+
set $upstream_proto http;
33+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
34+
35+
}

whisparr.subdomain.conf.sample

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

whisparr.subfolder.conf.sample

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# make sure that your whisparr container is named whisparr
2+
# make sure that whisparr is set to work with the base url /whisparr/
3+
4+
location ^~ /whisparr {
5+
# enable the next two lines for http auth
6+
#auth_basic "Restricted";
7+
#auth_basic_user_file /config/nginx/.htpasswd;
8+
9+
# enable for ldap auth (requires ldap-server.conf in the server block)
10+
#include /config/nginx/ldap-location.conf;
11+
12+
# enable for Authelia (requires authelia-server.conf in the server block)
13+
#include /config/nginx/authelia-location.conf;
14+
15+
# enable for Authentik (requires authentik-server.conf in the server block)
16+
#include /config/nginx/authentik-location.conf;
17+
18+
include /config/nginx/proxy.conf;
19+
include /config/nginx/resolver.conf;
20+
set $upstream_app whisparr;
21+
set $upstream_port 6969;
22+
set $upstream_proto http;
23+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
24+
25+
}
26+
27+
location ^~ /whisparr/api {
28+
include /config/nginx/proxy.conf;
29+
include /config/nginx/resolver.conf;
30+
set $upstream_app whisparr;
31+
set $upstream_port 6969;
32+
set $upstream_proto http;
33+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
34+
35+
}

0 commit comments

Comments
 (0)