File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments