2024-06-19, 06:33 PM
(This post was last modified: 2024-06-19, 06:34 PM by Linseed9747. Edited 1 time in total.)
Okay, so when I nano the file referenced in your link, it contains a couple dozen server blocks, each service using reverse proxy has it's own block. Here is the jellyfin block.
Code:
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name jellyfin.<redacted>.com ;
if ( $host !~ "(^jellyfin.<redacted>.com$)" ) { return 404; }
include /usr/syno/etc/www/certificate/ReverseProxy_71437579-6014-46a7-9c46-<redacted>/cert.conf*;
include /usr/syno/etc/security-profile/tls-profile/config/ReverseProxy_71437579-6014-46a7-9c46-<redacted>.conf*;
add_header Strict-Transport-Security "max-age=15768000; includeSubdomains; preload" always;
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
location / {
proxy_connect_timeout 60;
proxy_read_timeout 60;
proxy_send_timeout 60;
proxy_intercept_errors off;
proxy_http_version 1.1;
proxy_set_header Host $http_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_pass http://<redacted>:8096;
}
error_page 403 404 500 502 503 504 /dsm_error_page;
location /dsm_error_page {
internal;
root /usr/syno/share/nginx;
rewrite (.*) /error.html break;
allow all;
}
}