Hi all!
I’m pretty new to this project and I’m very excited about it.
Right now my main obstacle is that I want to run SB on my existing server that serves other projects of mine using Nginx.
Setting up the reverse proxy was pretty easy, however I’m having trouble directing all of the subsequent requests to the same single endpoint. The server just looks for these files as static files and can’t find them an so I get 404 responses.
After examining these failing requests I notices they are directed either to /.client/...
or !silverbullet.md/...
. It’s pretty hacky but I tried adding these paths to my Nginx config and I saw partial success.
All requests resolved successfully except for one: https://my-domain.com/.client/client.js
. Does anyone have any idea about how I can make this work? Or is there a less hacky way to go about it?
For reference, this is the relevant chunk of Nginx config:
location /sb {
proxy_pass http://127.0.0.1:8080/;
add_header Cache-Control no-cache;
expires 0;
}
location /.client {
proxy_pass http://127.0.0.1:8080/;
add_header Cache-Control no-cache;
expires 0;
}
location /!silverbullet.md {
proxy_pass http://127.0.0.1:8080/;
add_header Cache-Control no-cache;
expires 0;
}
I’m serving it on https://my-domain.com/sb
.
Cache configuration on these might not be necessary.
Thanks in advance! Any help would be appreciated.