"timezone" parameter appended infinitely with CDN (OD-2695)
Davide Beatrici opened 16 hours ago

I'm trying out a CDN to serve the pages generated by OneDev.

Unfortunately I'm encountering a critical issue: the timezone parameter (e.g. https://code.onedev.io/?timezone=Europe/Rome) is appended (&timezone=Europe/Rome) infinitely, resulting in an infinite redirect.

See: https://git.houseof.software

  • Robin Shen commented 16 hours ago

    Accessing https://code.onedev.io/~projects?timezone=Europe/Rome is fine. Please tell me how to reproduce.

  • Davide Beatrici commented 16 hours ago

    I left the link to my instance of OneDev that is exhibiting the issue. The CDN is KeyCDN, for reference.

  • Robin Shen commented 13 hours ago

    Never worked with CDN before. I tried to set up a simple pull zone in KeyCDN with original url set to https://code.onedev.io, leaving all others default. After deployed, accessing the CDN url always reports a websocket connection error, and timezone param is not added to url.

  • Davide Beatrici commented 7 hours ago

    Ah, interesting. Let me show you my settings:

    Screenshots

    Nginx configuration:

            location /wicket/websocket {
                    proxy_pass http://localhost:6610/wicket/websocket;
                    proxy_http_version 1.1;
                    proxy_set_header Upgrade $http_upgrade;
                    proxy_set_header Connection "upgrade";
            }
    
            location /~server {
                    proxy_pass http://localhost:6610/~server;
                    proxy_http_version 1.1;
                    proxy_set_header Upgrade $http_upgrade;
                    proxy_set_header Connection "upgrade";
            }
    
            location /~api/streaming {
                    proxy_pass http://localhost:6610/~api/streaming;
                    proxy_buffering off;
            }
    
            location / {
                    proxy_pass http://localhost:6610;
            }
    
issue 1/1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-2695
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover