Nginx issue config file for jellyfin

#1

this is the error, kind of out of my element and has taken me days to get to here lol anyone have an idea of what is wrong?
thanks in advance
using lates ver of letsencypt docker
error:
nginx: [emerg] unknown directive “Uncomment” in /config/nginx/proxy-confs/jellyfin.subdomain.conf:12

this is my nginx config. for jellyfin
server {
listen 80;
server_name xx.xx.xx;
return 301 https://$host$request_uri;
}

Uncomment this section after you have acquired a SSL Certificate
If you are not using a SSL certificate, replace the ‘return 301’
line above with the location blocks from the section below
server {
listen 443 ssl http2;
server_name xx.xx.xx;
ssl_certificate /etc/letsencrypt/live/xx.xx.xx/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/XX.XX.xx/privkey.pem;

location / {
    # Proxy main Jellyfin traffic
    proxy_pass http://xx.xx.xx.xx: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;
}
location /embywebsocket {
    # Proxy Jellyfin Websockets traffic
    proxy_pass http://xx.xx.xx.xx:8096;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    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;
}

}

#2

Sorry if it’s not the answer you’re looking for, but i’ve sorted all this out by doing it with Caddy server as reverse proxy.
There’s an article in the forum from @TravisBickle explaining.

Bye for now and good luck!

Regards.-

#3

Thanks will have a look