Admin interface not loading
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
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.
}
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.
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.