Skip to content

Commit e923048

Browse files
author
ltp
committed
1 parent 3f5dd87 commit e923048

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

jellyfin.subdomain.conf.sample

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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 /jellyfin/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)