mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-09 05:24:49 +09:00
Introduces backend/app/paths.py to centralize all key directory paths, allowing overrides via environment variables for local development. Updates all backend services and APIs to use these centralized paths instead of hardcoded values. Adds dev path override examples to backend/.env.example and updates .gitignore to exclude dev-data. Also changes frontend dev server port to 5274 and updates related scripts and CORS settings for consistency.
40 lines
1.5 KiB
Bash
40 lines
1.5 KiB
Bash
# Flask Configuration
|
|
FLASK_ENV=development
|
|
|
|
# IMPORTANT: Generate secure keys for production!
|
|
# Run: python -c "import secrets; print(secrets.token_hex(32))"
|
|
SECRET_KEY=change-this-to-a-secure-random-string
|
|
|
|
# Database
|
|
DATABASE_URL=sqlite:///serverkit.db
|
|
|
|
# JWT Configuration
|
|
# IMPORTANT: Generate a unique key for production!
|
|
# Run: python -c "import secrets; print(secrets.token_hex(32))"
|
|
JWT_SECRET_KEY=change-this-to-another-secure-random-string
|
|
|
|
# CORS - comma-separated list of allowed origins
|
|
CORS_ORIGINS=http://localhost:5173,http://localhost:3000
|
|
|
|
# Server
|
|
PORT=5000
|
|
|
|
# Security - Agent API Secret Encryption
|
|
# IMPORTANT: Generate a unique key for production!
|
|
# Run: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
|
|
# Or: python -c "import base64; import os; print(base64.urlsafe_b64encode(os.urandom(32)).decode())"
|
|
SERVERKIT_ENCRYPTION_KEY=dSenbMzCii4PMYP3Bb_N9jdqm6pa_TOD4l9yAwhhSBA=
|
|
|
|
# GitHub Repository for agent releases (owner/repo format)
|
|
# This is used to fetch the latest agent version for the downloads page
|
|
SERVERKIT_GITHUB_REPO=jhd3197/ServerKit
|
|
|
|
# Dev path overrides (uncomment for local development)
|
|
# Production defaults are absolute Linux paths (/var/serverkit, /etc/serverkit, etc.)
|
|
# SERVERKIT_DIR=./dev-data
|
|
# SERVERKIT_CONFIG_DIR=./dev-data/config
|
|
# SERVERKIT_LOG_DIR=./dev-data/logs
|
|
# SERVERKIT_BACKUP_DIR=./dev-data/backups
|
|
# SERVERKIT_CACHE_DIR=./dev-data/cache
|
|
# SERVERKIT_QUARANTINE_DIR=./dev-data/quarantine
|