mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2025-06-22 10:23:35 +02:00
29
nginx-conf-cert/jellyfin.conf
Normal file
29
nginx-conf-cert/jellyfin.conf
Normal file
@ -0,0 +1,29 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name jellyfin.bensuperpc.org www.jellyfin.bensuperpc.org;
|
||||
|
||||
root /var/www/jellyfin;
|
||||
|
||||
location ~ /.well-known/acme-challenge {
|
||||
allow all;
|
||||
root /var/www/jellyfin;
|
||||
}
|
||||
|
||||
location / {
|
||||
# Proxy main Jellyfin traffic
|
||||
proxy_pass http://jellyfin:8096;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Protocol $scheme;
|
||||
proxy_set_header X-Forwarded-Host $http_host;
|
||||
|
||||
# Disable buffering when the nginx proxy gets very resource heavy upon streaming
|
||||
proxy_buffering off;
|
||||
}
|
||||
|
||||
resolver 8.8.8.8;
|
||||
}
|
@ -2,7 +2,7 @@ server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name your_domain www.your_domain;
|
||||
server_name bensuperpc.org www.bensuperpc.org;
|
||||
|
||||
index index.php index.html index.htm;
|
||||
|
||||
@ -41,4 +41,6 @@ server {
|
||||
expires max;
|
||||
log_not_found off;
|
||||
}
|
||||
|
||||
resolver 8.8.8.8;
|
||||
}
|
Reference in New Issue
Block a user