- Add SHARED_PROJECT_ID and SHARED_ENVIRONMENT_ID env vars - Add findApplicationByName to Dokploy client for app-based lookup - Update production-deployer to use shared project instead of creating new ones - Update name availability check to query apps in shared environment - Update delete endpoint to remove apps from shared project - Rollback no longer deletes shared project (only app/domain) - Backward compatible: falls back to per-project if env vars not set
34 lines
997 B
Plaintext
34 lines
997 B
Plaintext
# Server Configuration
|
|
PORT=3000
|
|
HOST=0.0.0.0
|
|
|
|
# Hetzner Cloud API (DNS Management)
|
|
# Get token from: https://console.hetzner.cloud/ -> API Tokens
|
|
# Or from BWS: bws-wrapper get <hetzner-token-id>
|
|
HETZNER_API_TOKEN=
|
|
|
|
# Hetzner DNS Zone ID for flexinit.nl
|
|
HETZNER_ZONE_ID=343733
|
|
|
|
# Dokploy API
|
|
# Internal URL (only accessible from within infrastructure)
|
|
DOKPLOY_URL=http://10.100.0.20:3000
|
|
# BWS ID: 6b3618fc-ba02-49bc-bdc8-b3c9004087bc
|
|
DOKPLOY_API_TOKEN=
|
|
|
|
# Stack Configuration
|
|
STACK_DOMAIN_SUFFIX=ai.flexinit.nl
|
|
STACK_IMAGE=git.app.flexinit.nl/flexinit/agent-stack:latest
|
|
STACK_REGISTRY_ID=
|
|
|
|
# Shared Project Deployment (all stacks deploy to one Dokploy project)
|
|
# Project: ai-stack-portal, Environment: deployments
|
|
SHARED_PROJECT_ID=2y2Glhz5Wy0dBNf6BOR_-
|
|
SHARED_ENVIRONMENT_ID=RqE9OFMdLwkzN7pif1xN8
|
|
|
|
# Traefik Public IP (where DNS records should point)
|
|
TRAEFIK_IP=144.76.116.169
|
|
|
|
# Reserved names (comma-separated, these cannot be used)
|
|
RESERVED_NAMES=admin,api,www,root,system,test,demo,portal
|