Files
coreapp-dev/templates/postgres/env.in
T
davidandClaude Opus 5.5 74bdc13f0f coreapp new --postgres: apps with their own database
A template overlay (templates/postgres) adds DEPENDS="postgresql", DB_*
settings with a random password, an install that creates the user and
database on the Core's PostgreSQL (safe to re-run), an uninstall that
drops them, and a Python example that counts visits. Tested with a
throwaway app: deploy, redeploy and a reboot of the Core keep the data,
remove drops the database and user.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 12:06:55 -07:00

12 lines
442 B
Plaintext

# Filled in once, when the app is installed (see README.md). Redeploying
# keeps the result, so secrets don't change.
IMAGE_VERSION=@VERSION@
APP_URL=https://{{NAME}}.@DOMAIN@
APP_SECRET=@APP_SECRET:RANDOM:LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL@
# Its database on the Core's PostgreSQL, made by install
DB_HOST=postgresql.@DOMAIN@
DB_PORT=5432
DB_NAME={{DBNAME}}
DB_USER={{DBNAME}}
DB_PASSWORD=@DB_PASSWORD:RANDOM:LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL@