Skip to content

Loading of projects is disrupted when running behind a reverse proxy #78

@rvollgraf

Description

@rvollgraf

Steps to Reproduce

  1. Running the overleaf docker listening on 127.0.0.1:8080 and exposing it via an Apache 2.4 reverse proxy at https://overleaf.my-own-server.com.
  2. Opening a project on the main landing page via the reverse proxy, (like https://overleaf.my-own-server.com/project/6165d8edd4574600848adecc

Expected Behaviour

Project should load without interruptions or significant delay, when using the reverse proxy.

Observed Behaviour

Loading any project hangs for about 20s showing
image
Then, all of a sudden, that the project continues loading normally and everything seems to work fine.
Via 127.0.0.1:8080 directly, the project loads immediately not having any delays.

Technical Info

The virtual host config file looks like this:

<VirtualHost *:443>
  ServerName overleaf.my-own-server.com
   ProxyRequests off
   ProxyPass / http://localhost:8080/
   ProxyPassReverse / http://localhost:8080/
   SSLCertificateFile /path/to/fullchain.pem
   SSLCertificateKeyFile /path/to/privkey.pem
</VirtualHost>

Analysis

The delay happens between loading

wss://overleaf.my-own-server.com/socket.io/1/websocket/a8xcva-aOsA4d_AE1r_v

and

https://overleaf.my-own-server.com/socket.io/1/xhr-polling/a8xcva-aOsA4d_AE1r_v?t=1634110147712

Apart from that, the DOM loading cascade shows no abnormalities (no other return codes than 200 and 206)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions