Skip to content

Commit 65296f0

Browse files
authored
Merge pull request #695 from leoperegrino/master
2 parents b04af46 + 7efa252 commit 65296f0

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

jellyfin.subdomain.conf.sample

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2024/07/16
1+
## Version 2024/08/22
22
# make sure that your jellyfin container is named jellyfin
33
# make sure that your dns has a cname set for jellyfin
44
# if jellyfin is running in bridge mode and the container is named "jellyfin", the below config should work as is
@@ -37,4 +37,22 @@ server {
3737
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
3838

3939
}
40+
41+
# Restrict access to /metrics
42+
# https://jellyfin.org/docs/general/networking/monitoring/#prometheus-metrics
43+
location /metrics {
44+
allow 192.168.0.0/16;
45+
allow 10.0.0.0/8;
46+
allow 172.16.0.0/12;
47+
allow 127.0.0.0/8;
48+
49+
deny all;
50+
51+
include /config/nginx/proxy.conf;
52+
include /config/nginx/resolver.conf;
53+
set $upstream_app jellyfin;
54+
set $upstream_port 8096;
55+
set $upstream_proto http;
56+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
57+
}
4058
}

0 commit comments

Comments
 (0)