Without it a site installed from a staging Hub (or the VM test's Hub) can't check its licence. Blank in production, so it isn't written. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
115 lines
2.8 KiB
JSON
115 lines
2.8 KiB
JSON
{
|
|
"schema": "crosscode.env-template/1",
|
|
"product": "events",
|
|
"files": {
|
|
"backend/.env": [
|
|
{
|
|
"name": "NODE_ENV",
|
|
"layer": "generated",
|
|
"required": true,
|
|
"description": "production"
|
|
},
|
|
{
|
|
"name": "PORT",
|
|
"layer": "install",
|
|
"from": "{apiPort}",
|
|
"required": true,
|
|
"description": "The backend's port (from the Hub's port list)"
|
|
},
|
|
{
|
|
"name": "DATABASE_URL",
|
|
"layer": "generated",
|
|
"required": true,
|
|
"description": "Made on the server with a new password; never leaves it"
|
|
},
|
|
{
|
|
"name": "JWT_SECRET",
|
|
"layer": "generated",
|
|
"required": true,
|
|
"description": "Also encrypts stored secrets: never change it"
|
|
},
|
|
{
|
|
"name": "FRONTEND_URL",
|
|
"layer": "install",
|
|
"from": "https://{domain}",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "APP_BASE_URL",
|
|
"layer": "install",
|
|
"from": "https://{domain}",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "BACKEND_URL",
|
|
"layer": "install",
|
|
"from": "https://{domain}",
|
|
"required": true,
|
|
"description": "The same address: the backend is under /api (2.2.0+)"
|
|
},
|
|
{
|
|
"name": "TRUST_PROXY",
|
|
"layer": "server",
|
|
"required": true,
|
|
"description": "Behind frp: loopback"
|
|
},
|
|
{
|
|
"name": "APP_TIMEZONE",
|
|
"layer": "install",
|
|
"default": "Africa/Johannesburg"
|
|
},
|
|
{
|
|
"name": "HUB_URL",
|
|
"layer": "defaults",
|
|
"default": "https://hub.crosscode.co.za"
|
|
},
|
|
{
|
|
"name": "HUB_HEARTBEAT_ENABLED",
|
|
"layer": "defaults",
|
|
"default": "true"
|
|
},
|
|
{
|
|
"name": "HUB_PUBLIC_KEY",
|
|
"layer": "defaults",
|
|
"description": "Only for a Hub other than hub.crosscode.co.za (staging, a test VM): its licence public key"
|
|
},
|
|
{
|
|
"name": "HUB_LICENCE_KEY",
|
|
"layer": "install",
|
|
"description": "With it the site registers with the Hub by itself when it first starts"
|
|
},
|
|
{
|
|
"name": "HUB_ADMIN_NAME",
|
|
"layer": "install",
|
|
"description": "The site admin, sent to the Hub on registering"
|
|
},
|
|
{
|
|
"name": "HUB_ADMIN_EMAIL",
|
|
"layer": "install"
|
|
},
|
|
{
|
|
"name": "BACKUP_ENABLED",
|
|
"layer": "defaults",
|
|
"default": "true"
|
|
},
|
|
{
|
|
"name": "DAILY_SUMMARY_ENABLED",
|
|
"layer": "defaults",
|
|
"default": "true"
|
|
},
|
|
{
|
|
"name": "SENTRY_DSN",
|
|
"layer": "defaults"
|
|
}
|
|
],
|
|
"frontend/.env.production": [
|
|
{
|
|
"name": "NEXT_PUBLIC_API_URL",
|
|
"layer": "install",
|
|
"from": "https://{domain}",
|
|
"required": true
|
|
}
|
|
]
|
|
}
|
|
}
|