-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running neuroglancer behind nginx with another server #501
Comments
It looks like your nginx config is serving the wrong thing for the main.bundle.js file, probably html. Note that neuroglancer doesn't need a custom server except for the Python integration. The dev-server is just for development purposes and just adds auto-reload functionality. Instead you can just configure nginx to serve the neuroglancer client files directly. |
@jbms I tried serving the built neuroglancer files, and it does the same thing |
@jbms it works if i make it at the root
|
if my nginx foo is still up to date, you will need to use a rewrite directive i.e.
The current configuration (IIRC) will serve static files at which does not exist, and thus will return 404 |
@xgui3783 if I refresh the browser it takes me to the location / path, is there something i can do there? |
Just so I understand the situation, can you confirm this is what's happening: 1/ http://localhost:{PORT}/neuroglancer/ works as expected (you can add layers etc) ? |
Hello all i am trying to run 2 servers behind nginx, one is neuroglancer and one is a custom server that we made.
here is the config
`server {
listen 443 ssl;
server_name localhost;
}
![Screenshot 2023-11-02 at 10 20 11 PM](https://private-user-images.githubusercontent.com/6181334/280171872-3466903f-5db1-4cbf-a64b-d533576e4f28.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3MTQwNjUsIm5iZiI6MTcyMTcxMzc2NSwicGF0aCI6Ii82MTgxMzM0LzI4MDE3MTg3Mi0zNDY2OTAzZi01ZGIxLTRjYmYtYTY0Yi1kNTMzNTc2ZTRmMjgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjNUMDU0OTI1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmFlMWUyOTUyOTI2NDViNGRlOWRiODkyNjdkNDRiNzVhYWZiZGY1MjUwOWM4YWMyZDcyMWFkOWVhNzgzZmNlYSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.kBrDX4-ngwByfw1TIw4d9TM3NSfUhUhzq1XgsrrLMmw)
`
the location of /neuroglancer/ does not seem to work,
this is what i get in the console
and it is just a white screen. Is it possible to proxy to neuroglancer along with another server?
The text was updated successfully, but these errors were encountered: