SB_SPACE_IGNORE with two instances

I’m using a setup where silverbullet (tried edge and v2) is hosted in docker and nginx is used to route the web traffic. Two instances are running, an admin and a public, and they both share the same space folder. My base url example.com routes to the public instance. The path example.com/admin routes to the admin instance. For the public instance, I set SB_SPACE_IGNORE="private/*". I was hoping that all files under space/private would thus not show up under example.com. However, if I create a page with the admin url (e.g. example.com/admin/private/stuff) and I navigate to (or search the space) example.com/private/stuff the page still shows up anyway. Any ideas why this could be? Is sharing a space like this even supported?

I don‘t know if i can fully follow your structure? Does the admin instance have same space folder set as the public instance? If so you’d probably want to use SB_URL_PREFIX

yes, exactly. The admin instance has SB_URL_PREFIX=/admin and uses the same mapped volume for space.

I didn’t build the prefix stuff so it’s a little hard to anticipate how this all interacts, but I’d assume you really need to pick two separate SB_URL_PREFIX values for each of these (e.g. /private for one and /public for another) you cannot have them overlap. Then you can configure different SB_SPACE_IGNORE values for each.

OK, but sharing the space shouldn’t be an issue? The idea for me is that i can edit my public website with an admin instance and hide some of the content.

tried the public/private approach, doesn’t seem to work in my setup. Can I see in the logs what’s being ignored during indexing?