Authentication for an app behind reverse proxy

Here is a config that works. However, I also had to modify the auth.py module in Panel (see issue).

ProxyPass /myapp/ws ws://127.0.0.1:5006/myapp/ws
ProxyPassReverse /myapp/ws ws://127.0.0.1:5006/myapp/ws

ProxyPass /myapp/static http://127.0.0.1:5006/static
ProxyPassReverse /myapp/static http://127.0.0.1:5006/static

ProxyPassMatch /myapp/(.*)$ http://127.0.0.1:5006/myapp/$1
ProxyPassReverse /myapp/(.*)$ http://127.0.0.1:5006/myapp/$1

Redirect /myapp /myapp/

Require all granted Options -Indexes

Alias /static /path/to/bokeh/server/static
<Directory /path/to/bokeh/server/static>
Options +Indexes

1 Like