Run Solstice Sync
Solstice Sync keeps your workspaces in step across devices. It is a single server that you run, and it keeps your notes on disk as ordinary Markdown files. It also serves the Solstice web app.
The server is published as a container image, ghcr.io/sunstead/solstice-sync, built for x86-64
Linux.
Try it on your computer
Section titled “Try it on your computer”This starts a server with a built-in user, so you can look around without setting up sign-in:
docker run -p 8080:8080 \ -e SOLSTICE_DEV_USER=me \ -v solstice-notes:/notes \ -v solstice-state:/state \ ghcr.io/sunstead/solstice-syncOpen http://localhost:8080 for the web app. On an Apple silicon Mac, add
--platform linux/amd64 after docker run.
Run it on a server
Section titled “Run it on a server”On a server, sign-in goes through your OpenID Connect identity provider, such as Authentik or Keycloak. Put the server behind a reverse proxy that serves HTTPS, and keep the notes and state folders on persistent storage.
services: solstice-sync: image: ghcr.io/sunstead/solstice-sync restart: unless-stopped ports: - '8080:8080' environment: SOLSTICE_PUBLIC_URL: https://notes.example.com SOLSTICE_OIDC_ISSUER: https://auth.example.com/application/o/solstice/ volumes: - ./notes:/notes - solstice-state:/state
volumes: solstice-state:The image runs as user 1000, so a notes folder you mount from the host must be writable by that user.
Settings
Section titled “Settings”| Variable | Default | What it does |
|---|---|---|
SOLSTICE_PUBLIC_URL |
The address people use to reach the server. Needed for web sign-in. | |
SOLSTICE_OIDC_ISSUER |
Your identity provider’s issuer URL. Turns on sign-in. | |
SOLSTICE_OIDC_CLIENT_ID |
solstice |
The client ID registered with your provider. |
SOLSTICE_OIDC_SCOPES |
openid profile email offline_access |
Scopes to request. |
SOLSTICE_OIDC_ALLOWED_GROUPS |
everyone | Comma-separated groups allowed to sign in. |
SOLSTICE_OIDC_DISCOVERY_URL |
Where to fetch the provider’s settings, if the server reaches it at a different address. | |
SOLSTICE_BIND |
0.0.0.0:8080 |
The address and port the server listens on. |
SOLSTICE_NOTES_DIR |
/notes in the image |
Where notes are stored. |
SOLSTICE_STATE_DIR |
/state in the image |
Where sync state and sessions are stored. |
Your identity provider
Section titled “Your identity provider”Register Solstice Sync as a public client (no client secret) that uses the authorization code flow with PKCE. Allow these redirect URIs:
https://notes.example.com/auth/callback, using yourSOLSTICE_PUBLIC_URL, for the web app.http://127.0.0.1/callbackon any port, for the desktop app, which signs in through your browser.
If you set SOLSTICE_OIDC_ALLOWED_GROUPS, make sure the provider includes a groups claim.
Connect Solstice
Section titled “Connect Solstice”In Solstice, open Settings and enter your server’s address in Sync server.
Where your notes are
Section titled “Where your notes are”Each person’s workspaces are folders in the notes directory: /notes/<username>/<workspace>/.
The files are plain Markdown, so you can read them, search them or back them up like any other
files.
Backups
Section titled “Backups”Back up both folders. The notes folder holds your notes. The state folder holds sync history and sign-in sessions; without it, the server rebuilds from the notes and each device needs to link its workspace again.