Jellyfin 502 Bad Gateway (Docker compose, using Swag)

I had this working fine, but accidentally filled my available disk space and messed up a few containers. Figured out how to expand the filesystem, got everything else working again except jellyfin. both are on the same bridge network, docker_default.

relevant part of the docker-compose.yml

services:
  swag:
    image: lscr.io/linuxserver/swag:latest
    container_name: swag
    cap_add:
      - NET_ADMIN
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
      - URL=********.com
      - VALIDATION=dns
      - SUBDOMAINS=wildcard
#      - CERTPROVIDER= #optional
      - DNSPLUGIN=cloudflare #optional
      - PROPAGATION= #optional
#      - EMAIL= #optional
      - ONLY_SUBDOMAINS=false #optional
#      - EXTRA_DOMAINS= #optional
      - STAGING=false #optional
    volumes:
      - /bw/docker/swag:/config
    ports:
      - 443:443
      - 80:80 #optional
    restart: unless-stopped
  jellyfin:
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin
    environment:
      - PUID=1000
      - PGID=1000
      - UMASK=022
      - TZ=America/New_York
#      - JELLYFIN_PublishedServerUrl=192.168.0.5 #optional
    volumes:
      - /bw/docker/jellyfin:/config
      - /bw/media/library/tvshows:/data/tvshows
      - /bw/media/library/movies:/data/movies
    ports:
      - 8096:8096
      - 8920:8920 #optional
      - 7359:7359/udp #optional
      - 1900:1900/udp #optional
    restart: unless-stopped

jellyfin.subdomain.conf from the swag proxy-confs, which I haven’t messed with at all besides renaming the provided sample.

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;

server_name jellyfin.*;

include /config/nginx/ssl.conf;

client_max_body_size 0;

location / {
    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;

    proxy_set_header Range $http_range;
    proxy_set_header If-Range $http_if_range;
}

location ~ (/jellyfin)?/socket {
    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;

}

}

Any help would be greatly appreciated, thanks

Got it working. I just deleted the jellyfin directory and started fresh since I didn’t have much metadata or anything to lose