Replace Quartz with a read-only SilverBullet for public /notes/
/notes/ is now served by silverbullet-public: the same SilverBullet 2.11.0 image as the /sb/ editor, run with SB_READ_ONLY over a read-only mount of the vault. Quartz is retired (quartz/ kept with a STATUS header). Keeping private/ off the public site needs nginx, not just SilverBullet: SB_SPACE_IGNORE only filters the file listing. Verified with curl that 2.11.0 still serves ignored paths via /.fs/<path>, via server-rendered page URLs, and exposes the vault's .git through /.fs/.git/. nginx now 404s any private/ or templates/ segment at any depth and any nested dot-folder under /notes/. SB_REVISIONS=disabled stops /.revisions serving git history, and nginx blocks it as a second layer. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
+12
-10
@@ -7,7 +7,7 @@
|
||||
# it parses the file, before any container exists. This is how container
|
||||
# names, published ports and the Hasura database URL are built.
|
||||
# 2. `env_file: ./.env` on a service. Injects the WHOLE file as environment
|
||||
# variables inside that container. nginx, backend, db, icecast2, quartz,
|
||||
# variables inside that container. nginx, backend, db, icecast2,
|
||||
# certbot and gitea all do this.
|
||||
# The `python` service deliberately does neither wholesale — it uses an
|
||||
# explicit `environment:` allow-list of three variables, so it never sees the
|
||||
@@ -91,14 +91,15 @@ EMAIL_SYNC_ENABLED=
|
||||
# Kept because nginx/entrypoint.sh lists them in its envsubst allow-list; no
|
||||
# compose service uses them today. Harmless if blank.
|
||||
|
||||
# --- Quartz (notes site at /notes/) ------------------------------------------
|
||||
QUARTZ_HOST=quartz
|
||||
QUARTZ_PORT=8080
|
||||
|
||||
# SilverBullet, the notes editor at /sb/. Both default in nginx/entrypoint.sh,
|
||||
# so they can be left blank.
|
||||
# --- SilverBullet (notes) ---------------------------------------------------
|
||||
# Two instances over the same vault: the admin-only editor at /sb/, and the
|
||||
# public read-only notes site at /notes/ (which replaced Quartz). All four
|
||||
# default in nginx/entrypoint.sh and docker-compose.yml, so they can be left
|
||||
# blank.
|
||||
SILVERBULLET_HOST=silverbullet
|
||||
SILVERBULLET_PORT=3000
|
||||
SILVERBULLET_PUBLIC_HOST=silverbullet-public
|
||||
SILVERBULLET_PUBLIC_PORT=3000
|
||||
# Seconds between notes commit/push cycles (default 300).
|
||||
SILVERBULLET_GIT_INTERVAL=
|
||||
|
||||
@@ -114,9 +115,10 @@ BACKEND_SECRET=
|
||||
BACKEND_ENDPOINT=/api
|
||||
|
||||
# --- Obsidian vault ----------------------------------------------------------
|
||||
# HOST path, interpolated straight into two bind mounts: read-write into the
|
||||
# backend, read-only into quartz. Must be an absolute path that exists on the
|
||||
# host or the stack will not start.
|
||||
# HOST path, interpolated straight into the bind mounts: read-write into the
|
||||
# backend, silverbullet and silverbullet-git, read-only into
|
||||
# silverbullet-public. Must be an absolute path that exists on the host or the
|
||||
# stack will not start.
|
||||
OBSIDIAN_DIR=
|
||||
|
||||
# --- Spotify -----------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user