-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
70 lines (61 loc) · 3.61 KB
/
Copy path.env.example
File metadata and controls
70 lines (61 loc) · 3.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Almost nothing belongs here.
#
# Only SM_DATABASE_URL is required. Everything else is configured in the app:
# host settings (logging, trusted proxy, auth provider, DB pool) and every
# module's settings (SMTP, storage, Celery, Keycloak) live in the database and
# are edited at /admin/settings.
#
# Leave the bootstrap admin below unset and the first boot serves a setup
# wizard at /setup — it tests the Postgres and Redis connections, applies
# migrations, and creates the first administrator.
# Database (required). Default is local SQLite. To use the shared
# ../dev-services Postgres, uncomment the line below (db simple_module_python,
# user postgres/postgres):
SM_DATABASE_URL=sqlite+aiosqlite:///./app.db
# SM_DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/simple_module_python
# Redis for Celery (optional; defaults to localhost). One URL seeds both the
# broker and the result backend — Celery namespaces result keys, so sharing a
# database is safe. The worker process never sees app.state, so this is the one
# service that genuinely needs an env var rather than a DB setting.
# This project owns Redis logical DBs 4 and 5 in ../dev-services.
# SM_REDIS_URL=redis://localhost:6379/4
# First-boot admin seed (optional). Only applied when the users table is empty.
# Leave both unset to get the setup wizard instead, or use
# `uv run smpy users create-admin`.
# SM_USERS_BOOTSTRAP_EMAIL=admin@example.com
# SM_USERS_BOOTSTRAP_PASSWORD=changeme
# Optional second non-admin seed user (handy in dev):
# SM_USERS_BOOTSTRAP_USER_EMAIL=user@example.com
# SM_USERS_BOOTSTRAP_USER_PASSWORD=changeme
# Locales this install ships (optional). `make doctor` checks the locale files
# on disk against one another either way — SM014/SM015 catch a translation that
# has drifted from the default catalog with no configuration at all. Declaring
# the set here additionally turns on SM013, which reports a module that never
# shipped one of the named locales. Like every SM_ variable it takes precedence
# over the value edited at /admin/settings, so leave it commented unless you
# mean to pin the list for this process.
# SM_I18N_SUPPORTED_LOCALES=["en","es"]
# SM_I18N_DEFAULT_LOCALE=en
# ── Process identity ────────────────────────────────────────────────────
# These describe how this process was launched rather than how the app is
# configured, so they stay in the environment.
SM_ENVIRONMENT=development
# Optional. Unset generates a strong key on first boot and stores it, so
# sessions survive restarts. Set it explicitly to pin the key across replicas
# that do not share a database.
# SM_SECRET_KEY=
# Dev-only: Vite asset URL (ignored in production builds)
SM_VITE_DEV_URL=http://localhost:5050
# ── Deprecated ──────────────────────────────────────────────────────────
# Still honoured, and they take precedence over SM_REDIS_URL, but they log a
# warning. Prefer the single SM_REDIS_URL above.
# SM_BG_TASKS_BROKER_URL=redis://localhost:6379/4
# SM_BG_TASKS_RESULT_BACKEND=redis://localhost:6379/5
#
# These moved to DB-backed host settings and are now edited at
# /admin/settings. An env value still wins if set, so existing deployments
# keep working unchanged:
# SM_TRUSTED_PROXY, SM_LOG_LEVEL, SM_LOG_FORMAT, SM_AUTH_PROVIDER,
# SM_AUTH_PUBLIC_PATHS, SM_DB_POOL_SIZE, SM_DB_MAX_OVERFLOW,
# SM_DB_POOL_PRE_PING, SM_DB_POOL_RECYCLE
# Import any you already have set with: uv run smpy settings import-from-env