mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-05 20:41:32 -07:00
Merge pull request #695 from leoperegrino/master
This commit is contained in:
commit
65296f0083
1 changed files with 19 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
## Version 2024/07/16
|
||||
## Version 2024/08/22
|
||||
# make sure that your jellyfin container is named jellyfin
|
||||
# make sure that your dns has a cname set for jellyfin
|
||||
# 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 {
|
|||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
}
|
||||
|
||||
# Restrict access to /metrics
|
||||
# https://jellyfin.org/docs/general/networking/monitoring/#prometheus-metrics
|
||||
location /metrics {
|
||||
allow 192.168.0.0/16;
|
||||
allow 10.0.0.0/8;
|
||||
allow 172.16.0.0/12;
|
||||
allow 127.0.0.0/8;
|
||||
|
||||
deny all;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
set $upstream_app jellyfin;
|
||||
set $upstream_port 8096;
|
||||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue