From 25e32abf4e2c0358328790ee024c000ead82152f Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 2 Mar 2026 12:24:00 -0500 Subject: docs: clean up doc references for sqlite-based self-hosting (#3216) ## Checks - [x] I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle - [x] I have checked that there are no existing pull requests for the same thing --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- docs/docs/self-hosting/server-setup.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/docs/self-hosting/server-setup.md b/docs/docs/self-hosting/server-setup.md index e983fa0b..11237c70 100644 --- a/docs/docs/self-hosting/server-setup.md +++ b/docs/docs/self-hosting/server-setup.md @@ -44,15 +44,19 @@ ATUIN_DB_URI="postgres://user:password@hostname/database" | `db_uri` | A valid PostgreSQL URI, for saving history (default: false) | | `path` | A path to prepend to all routes of the server (default: false) | -For sqlite, substitute the following: +For sqlite, use the following in your server.toml: +```toml db_uri="sqlite:///config/atuin.db" +``` -ATUIN_DB_URI="sqlite:///config/atuin.db" +Alternatively, provide the Database URI via an environment variable -These will create the database in the /config directory. +```sh +ATUIN_DB_URI="sqlite:///config/atuin.db" +``` -You will need to map some sort of persistent volume for the /config directory and it should be writable by the atuin server. +These will create the database in the `/config` directory. Be sure to map a persistent volume to the `/config` directory that is writable by the atuin server. ### TLS -- cgit v1.3.1