added .env bootstrap and fallback
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -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
BIN
Screenshots/AgentMgmt.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 76 KiB |
BIN
Screenshots/RedFlagIntro.jpg
Normal file
BIN
Screenshots/RedFlagIntro.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 41 KiB |
26
config/.env.bootstrap.example
Normal file
26
config/.env.bootstrap.example
Normal 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
|
||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user