I am trying to host neuron through rib. Hosting it on the base url works fine however I would like to have it at https://<domain>/neuron. This does not currently work yielding "File not Found" in Firefox. I assume it has something to do with setting the proper context path to either rib or shake however by knowledge of Haskell is very limited. Can you help?
If requests are directly sent to / and not /neuron, it works fine. From my experience with airsonic, this is usually solved by giving a context path to the application. I'm wondering if there is such a thing for rib.
Just run neuron rib -w on your home pc. And then have nginx or something serve the generated files at .neuron/output. At whatever relative path you want like /neuron.
I know, but using rib seemed like the easiest way to host my zettelkasten. Host it on my own machine and use a reverse proxy to access it from anywhere in the world.
FWIW, I use nginx to serve some zettelkastens. But nginx refers directly to the generated directory (instead of talking to rib server). Something like: image.png
I am trying to host neuron through rib. Hosting it on the base url works fine however I would like to have it at https://<domain>/neuron. This does not currently work yielding "File not Found" in Firefox. I assume it has something to do with setting the proper context path to either rib or shake however by knowledge of Haskell is very limited. Can you help?
Do you have an URL to share ?
https://hiddenaway.xyz/neuron
neuron is on my home pc which connects to a proxy. The proxy forwards all requests to the local port
If requests are directly sent to / and not /neuron, it works fine. From my experience with airsonic, this is usually solved by giving a context path to the application. I'm wondering if there is such a thing for rib.
@Sergiu Are you trying to access the rib server? (neuron's
rib -s
command)rib server always services neuron notes at /
But you don't need to be using the rib server
Yes. Server is generated with "neuron rib -wS"
How can I tell it to serve from /neuron?
Just run
neuron rib -w
on your home pc. And then have nginx or something serve the generated files at.neuron/output
. At whatever relative path you want like /neuron.I know, but using rib seemed like the easiest way to host my zettelkasten. Host it on my own machine and use a reverse proxy to access it from anywhere in the world.
Tip: you can open .neuron/output/index.html directly in your browser. All the URLs in it are relative.
Are you on Windows?
Linux
Okay. the rib server is mainly for local/development use.
If you really want to expose it at /neuron, you should try the nginx middleman.
https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/
I see. I will just use nginx then to serve the static files in .neuron/output
Thanks!
FWIW, I use nginx to serve some zettelkastens. But nginx refers directly to the generated directory (instead of talking to rib server). Something like: image.png
So you can bypass rib, and just use .neuron/output/ in your nginx config