You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: charts/codex-lb/README.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,28 @@ persistence:
53
53
enabled: false # no SQLite file needed
54
54
```
55
55
56
+
For secret-backed deployments, avoid putting the URL in `config.databaseUrl`, because that renders it into the Deployment manifest. Instead inject `CODEX_LB_DATABASE_URL` from a Secret:
57
+
58
+
```yaml
59
+
envFrom:
60
+
- secretRef:
61
+
name: codex-lb-env
62
+
63
+
persistence:
64
+
enabled: false
65
+
```
66
+
67
+
## Database Migrations
68
+
69
+
By default Codex LB runs Alembic migrations on startup (`config.databaseMigrateOnStartup: true`). On app startup it converts async URLs to a sync driver for Alembic, applies pending revisions, and fails startup if migrations fail.
70
+
71
+
For single-replica installs this is usually the simplest option. If you need an external migration workflow, disable it explicitly:
72
+
73
+
```yaml
74
+
config:
75
+
databaseMigrateOnStartup: false
76
+
```
77
+
56
78
## OAuth Callback via Ingress
57
79
58
80
To expose the OAuth callback through your ingress controller, enable both the OAuth Service and OAuth Ingress:
Copy file name to clipboardExpand all lines: charts/codex-lb/README.md.gotmpl
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,28 @@ persistence:
53
53
enabled: false # no SQLite file needed
54
54
```
55
55
56
+
For secret-backed deployments, avoid putting the URL in `config.databaseUrl`, because that renders it into the Deployment manifest. Instead inject `CODEX_LB_DATABASE_URL` from a Secret:
57
+
58
+
```yaml
59
+
envFrom:
60
+
- secretRef:
61
+
name: codex-lb-env
62
+
63
+
persistence:
64
+
enabled: false
65
+
```
66
+
67
+
## Database Migrations
68
+
69
+
By default Codex LB runs Alembic migrations on startup (`config.databaseMigrateOnStartup: true`). On app startup it converts async URLs to a sync driver for Alembic, applies pending revisions, and fails startup if migrations fail.
70
+
71
+
For single-replica installs this is usually the simplest option. If you need an external migration workflow, disable it explicitly:
72
+
73
+
```yaml
74
+
config:
75
+
databaseMigrateOnStartup: false
76
+
```
77
+
56
78
## OAuth Callback via Ingress
57
79
58
80
To expose the OAuth callback through your ingress controller, enable both the OAuth Service and OAuth Ingress:
0 commit comments