db provisioning
This commit is contained in:
parent
af8bbf536f
commit
1293ef678e
8 changed files with 151 additions and 38 deletions
|
|
@ -36,6 +36,8 @@ Important:
|
|||
- `DEV_MODE=false` expects auth headers from your reverse proxy:
|
||||
- `X-authentik-username`
|
||||
- `X-authentik-email`
|
||||
- `DB_PROVISION_ENABLED=true` provisions a dedicated PostgreSQL role/database per app.
|
||||
- `DB_PROVISION_ADMIN_URL` is the admin DSN used for provisioning (defaults to `DATABASE_URL`).
|
||||
- `FORGEJO_BASE_URL` + `FORGEJO_TOKEN` enable repository creation.
|
||||
- `FORGEJO_ORG` switches creation from personal repos to org repos.
|
||||
- `UNIX_SOCKET_PATH` enables unix socket listener in addition to `LISTEN_ADDR`.
|
||||
|
|
@ -112,5 +114,6 @@ Then it attempts as that unix user:
|
|||
The generated `.env` is synced from the project env-var configuration and always includes:
|
||||
- `LISTEN_NETWORK=unix`
|
||||
- `LISTEN_ADDRESS=<unix-user-home>/projects/<app>/app.sock`
|
||||
- `DATABASE_URL=postgres://<app_db_user>:<generated_password>@.../<app_db_name>`
|
||||
|
||||
If user systemd is not available in the runtime environment, project creation still succeeds and unit files are still generated.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue