prod preps

This commit is contained in:
overcuriousity
2025-07-26 10:41:50 +02:00
parent 10331b9ece
commit a9c15eb9c6
3 changed files with 392 additions and 487 deletions

View File

@@ -1,43 +1,36 @@
# AI Configuration
AI_API_ENDPOINT=https://aiendpoint.org
AI_API_KEY=your_apikey_here
AI_MODEL='ai_model_name_here'
AI_RATE_LIMIT_DELAY_MS=2000
# ===========================================
# CC24-Hub Environment Configuration
# ===========================================
# Git Repository
GIT_REPO_URL=https://git.cc24.dev/mstoeck3/cc24-hub.git
GIT_API_ENDPOINT=https://git.cc24.dev/api/v1
GIT_API_TOKEN=
LOCAL_REPO_PATH=/var/git/cc24-hub
# Authentication & OIDC (Required)
AUTH_SECRET=change-this-to-a-strong-secret-key-in-production
OIDC_ENDPOINT=https://your-oidc-provider.com
OIDC_CLIENT_ID=your-oidc-client-id
OIDC_CLIENT_SECRET=your-oidc-client-secret
AUTHENTICATION_NECESSARY=true
# Application Configuration (Required)
PUBLIC_BASE_URL=https://your-domain.com
NODE_ENV=production
# AI Service Configuration (Required for AI features)
AI_MODEL=mistral-large-latest
AI_API_ENDPOINT=https://api.mistral.ai
AI_API_KEY=your-mistral-api-key
AI_RATE_LIMIT_DELAY_MS=1000
# Git Integration (Required for contributions)
GIT_REPO_URL=https://git.cc24.dev/mstoeck3/cc24-hub
GIT_PROVIDER=gitea
GIT_API_ENDPOINT=https://git.cc24.dev/api/v1
GIT_API_TOKEN=your-git-api-token
# OIDC Configuration
OIDC_ENDPOINT=https://oidc-provider.org
OIDC_CLIENT_ID=your_oidc_client_id
OIDC_CLIENT_SECRET=your_oidc_client_secret
AUTH_SECRET=your_super_secret_jwt_key_that_should_be_at_least_32_characters_long_for_security
AUTHENTICATION_NECESSARY=false # Always set this to true in prod
# Application
PUBLIC_BASE_URL=http://localhost:4321
# Media Storage
# File Upload Configuration (Optional)
LOCAL_UPLOAD_PATH=./public/uploads
# Nextcloud integration (optional)
NEXTCLOUD_ENDPOINT=
NEXTCLOUD_USERNAME=
NEXTCLOUD_PASSWORD=
# Nextcloud Integration (Optional)
NEXTCLOUD_ENDPOINT=https://your-nextcloud.com
NEXTCLOUD_USERNAME=your-username
NEXTCLOUD_PASSWORD=your-password
NEXTCLOUD_UPLOAD_PATH=/kb-media
NEXTCLOUD_PUBLIC_URL=
# Custom upload limits (optional)
MAX_FILE_SIZE=52428800 # 50MB in bytes
MAX_UPLOADS_PER_HOUR=100
# Development/Production mode
NODE_ENV=development
# Logging level
LOG_LEVEL=info
NEXTCLOUD_PUBLIC_URL=https://your-nextcloud.com/s/