I’ve been successfully using a custom OAuth provider for my panel app. However I’m now working on a new production environment where my app is behind a reverse proxy so that users can access the app on standard ports.
I followed the bokeh docs on setting up a reverse proxy with apache and it works well. But now I’m stuck when it comes to adding authentication. When typing http://address/myapp, the url becomes http://address/login?next=%2Fmyapp and yields a Not Found page. I’ve tried various ProxyPassMatch patterns to try to pass the url parameters correctly, to no avail.
Does anyone have any experience on this, be it with apache or nginx?
I also use would like to use azure oauth and then reverse proxy with nginx. Trying to follow along with what you are adding on your nginx config. Where do i need to plug the above into?
http {
upstream frontends {
least_conn;
keepalive_timeout 180s;
keepalive_requests 100; #keepalive 10;
server 127.0.0.1:5100;
server 127.0.0.1:5101;
server 127.0.0.1:5102;
server 127.0.0.1:5103;
server 127.0.0.1:5104;
}
sendfile on;
tcp_nopush on;
tcp_nodelay on; #keepalive_timeout 900;
types_hash_max_size 2048; #include C:/Users/smaurice/AppData/Local/Programs/Python/Python35/Lib/site-packages/bokeh/server/static/;
include C:/Users/myuser/AppData/Local/ESRI/conda/envs/arcgispro-py3-pyviz/lib/site-packages/bokeh/server/static;