etherpad-lite icon indicating copy to clipboard operation
etherpad-lite copied to clipboard

Admin interface not loading

Open rmattes opened this issue 8 months ago • 2 comments

Describe the bug We installed Etherpad-Lite behind an Apache reverse proxy in a subpath (/etherpad). The admin interface (/etherpad/admin) does not load because it references JavaScript and CSS from the wrong path (/admin/assets/... instead of /etherpad/admin/assets/...)

Server (please complete the following information):

  • Etherpad version: Github / develop branch
  • OS: Debain Bookworm
  • Node.js version: v18.19.0
  • npm version: 10.8.0
  • Is the server free of plugins: yes

rmattes avatar Apr 24 '25 13:04 rmattes

You need to use the correct headers like X-Forwarded for. We have this in our nginx configuration

location /pad/admin {
    rewrite         /pad/admin/(.*) /admin/$1 break;
    proxy_redirect  / /pad/;
proxy_set_header   X-Proxy-Path /pad;
    proxy_pass         http://127.0.0.1:9001;

    proxy_buffering    off; # be careful, this line doesn't override any proxy_buffering on set in a conf.d/file.conf
    proxy_set_header   Host $host;
    proxy_pass_header  Server;

    # Note you might want to pass more headers etc too. See above configs.
}

SamTV12345 avatar Apr 26 '25 20:04 SamTV12345

Thank you, yes this resolved my initial problem - assets load fine. Admin interface still doesn't work, the browser can't establish a websocket connection.

rmattes avatar Apr 26 '25 21:04 rmattes

Did you build with NODE_ENV=dev ? In that case, the WS_URL variable is set to localhost, which prevents the loading of the admin interface.

nono-lqdn avatar Jul 07 '25 15:07 nono-lqdn