The catalog in server/containers had drifted from the VPS. Eleven compose
files and twelve units no longer matched what runs, and two running
services, Gbrown_Agent and BillTracker, were missing. server/vps is now a
copy of the live files, and panama-server reads from it.
server/home holds the home server's services in the same shape. They still
run under Docker, so the podman units there are drafts for a later move, and
nothing installs from that tree. PostHog, Sentry and Plausible are checkouts
of upstream repositories. Only their local files are kept, next to an
UPSTREAM file naming the repository and the exact commit.
Every secret in both trees is a ${VAR} reference named in .env.example, or
CHANGE_ME in files that are not compose files. The live servers still hold
some of those values inline, so a live file can differ from its copy on
those lines alone. Existing .env.example files keep their comments, with new
keys appended at the end.
The ignore rules and the secrets contract now cover both trees, plus the
volume/ and volumes/ directories the home server uses.
65 lines
2.4 KiB
Bash
65 lines
2.4 KiB
Bash
# Since .env is gitignored, you can use .env.example to build a new `.env` file when you clone the repo.
|
|
# Keep this file up-to-date when you add new variables to \`.env\`.
|
|
# This file will be committed to version control, so make sure not to have any secrets in it.
|
|
# If you are cloning this repo, create a copy of this file named `.env` and populate it with your secrets.
|
|
|
|
## Next App ##
|
|
NODE_ENV=production
|
|
SENTRY_AUTH_TOKEN=CHANGE_ME
|
|
PAYLOAD_SECRET=CHANGE_ME
|
|
PAYLOAD_DB_URL=CHANGE_ME
|
|
NEXT_PUBLIC_SITE_URL=https://convexmonorepo.gbrown.org
|
|
NEXT_PUBLIC_CONVEX_URL=https://api.convexmonorepo.gbrown.org # convex-backend:3210
|
|
NEXT_PUBLIC_PLAUSIBLE_URL=https://plausible.gbrown.org
|
|
NEXT_PUBLIC_SENTRY_DSN=https://[email protected]/3
|
|
NEXT_PUBLIC_SENTRY_URL=https://sentry.gbrown.org
|
|
NEXT_PUBLIC_SENTRY_ORG=sentry
|
|
NEXT_PUBLIC_SENTRY_PROJECT_NAME=convexmonorepo-nextjs
|
|
|
|
## Convex ##
|
|
CONVEX_SELF_HOSTED_URL=https://api.convexmonorepo.gbrown.org # convex-backend:3210
|
|
CONVEX_SELF_HOSTED_ADMIN_KEY=CHANGE_ME
|
|
# Convex Auth
|
|
CONVEX_SITE_URL=https://convexmonorepo.gbrown.org # convex-backend:3211
|
|
#CONVEX_SITE_URL=https://convexmonorepo.gbrown.org # convex-backend:3211
|
|
USESEND_API_KEY=CHANGE_ME
|
|
USESEND_URL=https://usesend.example.com
|
|
USESEND_FROM_EMAIL='Convex Admin <[email protected]>'
|
|
AUTH_AUTHENTIK_ID=CHANGE_ME
|
|
AUTH_AUTHENTIK_SECRET=CHANGE_ME
|
|
AUTH_AUTHENTIK_ISSUER=https://auth.gbrown.org/application/o/convexmonorepo/
|
|
|
|
## Docker Compose Variables for Next App ##
|
|
NETWORK=nginx-bridge
|
|
NEXT_CONTAINER_NAME=convexmonorepo-next
|
|
NEXT_DOMAIN=convexmonorepo.gbrown.org
|
|
NEXT_PORT=3000
|
|
|
|
## Docker Compose Variables for Self hosted Convex ##
|
|
BACKEND_TAG=latest
|
|
DASHBOARD_TAG=latest
|
|
BACKEND_CONTAINER_NAME=convexmonorepo-backend
|
|
DASHBOARD_CONTAINER_NAME=convexmonorepo-dashboard
|
|
BACKEND_DOMAIN=convex.convexmonorepo.gbrown.org
|
|
DASHBOARD_DOMAIN=dashboard.convexmonorepo.gbrown.org
|
|
INSTANCE_NAME=convex
|
|
#INSTANCE_SECRET=
|
|
CONVEX_CLOUD_ORIGIN=https://api.convexmonorepo.gbrown.org
|
|
CONVEX_SITE_ORIGIN=https://convex.convexmonorepo.gbrown.org
|
|
NEXT_PUBLIC_DEPLOYMENT_URL=https://api.convexmonorepo.gbrown.org
|
|
DISABLE_BEACON=true
|
|
REDACT_LOGS_TO_CLIENT=true
|
|
DO_NOT_REQUIRE_SSL=true
|
|
#POSTGRES_URL= #postgresql://user:password@host:5432/db_name
|
|
#BACKEND_PORT=
|
|
#DASHBOARD_PORT
|
|
#SITE_PROXY_PORT=
|
|
#ACTIONS_USER_TIMEOUT_SECS=
|
|
#RUST_LOG=
|
|
#RUST_BACKTRACE=
|
|
|
|
# Also set on the live machine
|
|
BACKEND_PORT=CHANGE_ME
|
|
PORT=CHANGE_ME
|
|
SITE_PROXY_PORT=CHANGE_ME
|