a year ago
Hi! I have used two templates:
https://quay.io/repository/jupyter/scipy-notebook?tab=tags&tag=latest
https://hub.docker.com/r/jlesage/nginx-proxy-manager
How can i properly add jupyterlab as a proxy host so i am able to access it via nginx? I am sure I am misconfiguring something. sorry for the dumb question
9 Replies
a year ago
is there a reason why you’re not using Railway’s template? I believe it deploys the same image. https://railway.com/template/WpjhAn
I've read here (https://station.railway.com/questions/reverse-proxy-in-railway-to-access-plank-2eaae7cd) that nginx is not optimal so I have deployed https://github.com/railwayapp-templates/caddy-reverse-proxy
Now I am able to reach jupyter frontend via caddy but seems like something is not going through : Directory not found
Directory not found: ""

I am still struggling. I am sorry but is this the support? I am a pro customer.
a year ago
can we go back to square 1, why do you need to use a proxy here to begin with
Right.
My original goal was to deploy/use my reflex based program on railway. Reflex uses port 3000 for frontend & 8000 for backend.
I deployed it and I could reach the frontend but it didn't work properly. It was unable to reach its /_event endpoint on its own 8000 port.
I have found a reflex template https://github.com/brody192/reflex-template (it uses a caddy proxy in its nixpacks config file) in the library but since it was quite outdated I decided to use the reverse proxy as a standalone service. I tried traefik, nginx and now caddy.
I could tunnel the frontend 3000 via the reverse proxy but it never worked properly.
So I decided to change the reflex app to something more simple, a jupyter notebook but it seems like I am facing a similar issue.. Frontend loads on jupyter via the caddy proxy, I am able to log in and that's about it. 😅
a year ago
have you tried the template?
a year ago
configuring nginx proxy manager and jupyterlab