added .env bootstrap and fallback

This commit is contained in:
Fimeg
2025-10-31 06:54:34 -04:00
parent a3e3ac33a7
commit 44bb05ca5d
5 changed files with 31 additions and 0 deletions

3
.gitignore vendored
View File

@@ -119,6 +119,9 @@ web_modules/
# Yarn Integrity file # Yarn Integrity file
.yarn-integrity .yarn-integrity
# Bootstrap template (but not the actual .env files)
!config/.env.bootstrap.example
# dotenv environment variable files # dotenv environment variable files
.env .env
.env.development.local .env.development.local

BIN
Screenshots/AgentMgmt.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

View File

@@ -0,0 +1,26 @@
# RedFlag Bootstrap Configuration
# Copy this to ./config/.env and edit the values below
# PostgreSQL Configuration
POSTGRES_DB=redflag
POSTGRES_USER=redflag
POSTGRES_PASSWORD=CHANGE_ME_SECURE_PASSWORD
# RedFlag Server Configuration
REDFLAG_SERVER_HOST=0.0.0.0
REDFLAG_SERVER_PORT=8080
REDFLAG_DB_HOST=postgres
REDFLAG_DB_PORT=5432
REDFLAG_DB_NAME=redflag
REDFLAG_DB_USER=redflag
REDFLAG_DB_PASSWORD=CHANGE_ME_SECURE_PASSWORD
# Admin Configuration
REDFLAG_ADMIN_USER=admin
REDFLAG_ADMIN_PASSWORD=CHANGE_ME_ADMIN_PASSWORD
REDFLAG_JWT_SECRET=CHANGE_ME_JWT_SECRET_AT_LEAST_32_CHARS_LONG
# Token Configuration
REDFLAG_TOKEN_EXPIRY=24h
REDFLAG_MAX_TOKENS=100
REDFLAG_MAX_SEATS=10

View File

@@ -19,6 +19,7 @@ services:
retries: 5 retries: 5
restart: unless-stopped restart: unless-stopped
env_file: env_file:
- ./config/.env.bootstrap.example
- ./config/.env - ./config/.env
server: server:
@@ -38,6 +39,7 @@ services:
command: ["./redflag-server"] command: ["./redflag-server"]
restart: unless-stopped restart: unless-stopped
env_file: env_file:
- ./config/.env.bootstrap.example
- ./config/.env - ./config/.env
web: web: