Make the deploy panel-friendly: zero-config compose, env vars with defaults
- compose.yaml runs only the app by default; Caddy moved to the
'standalone' profile (the panel brings its own Caddy and routes).
- No env_file: every setting is ${VAR:-default} in compose.yaml, so it
can be set from the panel's Environment tab (or .env standalone).
- VAPID keys are generated on first start and kept in the data volume;
the push subject defaults to https://<site domain>. gen-vapid.ts removed.
- PUSH_DISABLED=1 turns push off.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
This commit is contained in:
parent
1382e53359
commit
04d952872d
11 changed files with 191 additions and 152 deletions
|
|
@ -23,6 +23,7 @@ export interface Config {
|
|||
vapidPublicKey: string;
|
||||
vapidPrivateKey: string;
|
||||
vapidSubject: string;
|
||||
pushEnabled: boolean;
|
||||
ratesEnabled: boolean;
|
||||
ratesBaseUrl: string;
|
||||
}
|
||||
|
|
@ -41,6 +42,7 @@ export function loadConfig(env = process.env): Config {
|
|||
vapidPublicKey: env.VAPID_PUBLIC_KEY || '',
|
||||
vapidPrivateKey: env.VAPID_PRIVATE_KEY || '',
|
||||
vapidSubject: env.VAPID_SUBJECT || '',
|
||||
pushEnabled: env.PUSH_DISABLED !== '1',
|
||||
ratesEnabled: env.RATES_DISABLED !== '1',
|
||||
ratesBaseUrl: env.RATES_BASE_URL || 'https://www.ecb.europa.eu/stats/eurofxref',
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue