Cloudflare + nginx proxy manager session timeout when deleting anything

I use immich through a cloudflair domain name and nginx proxy manager and have a strange issue that whenever i do any action that involves deleting something (photo, api key, device) 9/10 times everything stops working and the webpage wont come back until i clear cookies and cache or relaunch the app. This happens on the web and iOS app. I am assuming it's something with my proxy setup or nginx config that I am missing. I have tried several different combinations of configs for nginx proxy manager but so far nothing has fixed it. I have attached photos from nginx proxy manager and immich logs

This does not happen locally only through the proxy



Here is my current nginx config:

    # SSL Optimization
    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_prefer_server_ciphers on;
    ssl_ciphers "<TLS Cypher>";
    ssl_session_cache shared:SSL:10m;
    ssl_session_timeout 10m;
    
    # HSTS (HTTP Strict Transport Security)
    add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;


    # General Headers for Proxying
    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-Host $http_host;
    proxy_pass_request_headers on;


    # Performance Optimization
    proxy_read_timeout 600s;
    proxy_send_timeout 600s;
    send_timeout 600s;
    client_max_body_size 50000M;
    proxy_cache off;          # Disable proxy cache for dynamic content
    proxy_buffering off;      # Disable buffering for WebSockets and real-time apps  # Use HTTP/1.1 for WebSocket compatibility
    proxy_redirect off;       # Prevent NGINX from altering redirects


    # WebSocket Specific Headers
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
proxy_set_header Transfer-Encoding "";
add_header Transfer-Encoding chunked;
Was this page helpful?