Skip to content

Commit 064ade5

Browse files
stackptrclaude
andcommitted
feat: migrate Open WebUI to PostgreSQL on glyph
Configure Open WebUI to use the local PostgreSQL instance instead of SQLite for improved reliability and backup support. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0224ac0 commit 064ade5

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎hosts/glyph/services/db.nix‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@
1212
port = 5432;
1313
max_connections = 150;
1414
};
15-
ensureDatabases = ["atticd" "pocketid"];
15+
ensureDatabases = ["atticd" "open-webui" "pocketid"];
1616
ensureUsers = [
1717
{
1818
name = "atticd";
1919
ensureDBOwnership = true;
2020
}
21+
{
22+
name = "open-webui";
23+
ensureDBOwnership = true;
24+
}
2125
{
2226
name = "pocketid";
2327
ensureDBOwnership = true;
@@ -27,6 +31,6 @@
2731

2832
services.postgresqlBackup = {
2933
enable = true;
30-
databases = ["atticd" "pocketid"];
34+
databases = ["atticd" "open-webui" "pocketid"];
3135
};
3236
}

‎hosts/glyph/services/open-webui.nix‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
OAUTH_ALLOWED_ROLES = "users, admins";
2828
OAUTH_ADMIN_ROLES = "admins";
2929
ENABLE_LOGIN_FORM = "false";
30+
DATABASE_URL = "postgresql:///open-webui?host=/run/postgresql";
3031
};
3132
};
3233
}

0 commit comments

Comments
 (0)