first commit
This commit is contained in:
46
public_web/config/development.yaml
Normal file
46
public_web/config/development.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
# Development Configuration for Public Web Frontend
|
||||
|
||||
app:
|
||||
name: "Code of Conquest - Web UI"
|
||||
version: "0.1.0"
|
||||
environment: "development"
|
||||
debug: true
|
||||
|
||||
server:
|
||||
host: "0.0.0.0"
|
||||
port: 8000 # Different port from API (5000)
|
||||
debug: true
|
||||
workers: 1
|
||||
|
||||
api:
|
||||
# API backend base URL
|
||||
base_url: "http://localhost:5000"
|
||||
timeout: 30
|
||||
verify_ssl: false # Set to true in production
|
||||
|
||||
session:
|
||||
# Session lifetime in hours
|
||||
lifetime_hours: 24
|
||||
cookie_secure: false # Set to true in production (HTTPS only)
|
||||
cookie_httponly: true
|
||||
cookie_samesite: "Lax"
|
||||
|
||||
cors:
|
||||
enabled: true
|
||||
origins:
|
||||
- "http://localhost:8000"
|
||||
- "http://127.0.0.1:8000"
|
||||
|
||||
logging:
|
||||
level: "DEBUG"
|
||||
format: "json"
|
||||
handlers:
|
||||
- "console"
|
||||
- "file"
|
||||
file_path: "logs/app.log"
|
||||
|
||||
# UI Settings
|
||||
ui:
|
||||
theme: "dark"
|
||||
items_per_page: 20
|
||||
enable_animations: true
|
||||
43
public_web/config/production.yaml
Normal file
43
public_web/config/production.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
# Production Configuration for Public Web Frontend
|
||||
|
||||
app:
|
||||
name: "Code of Conquest - Web UI"
|
||||
version: "0.1.0"
|
||||
environment: "production"
|
||||
debug: false
|
||||
|
||||
server:
|
||||
host: "0.0.0.0"
|
||||
port: 8000
|
||||
workers: 4
|
||||
|
||||
api:
|
||||
# API backend base URL (set via environment variable in production)
|
||||
# Use: API_BASE_URL environment variable
|
||||
base_url: "https://api.codeofconquest.com"
|
||||
timeout: 30
|
||||
verify_ssl: true
|
||||
|
||||
session:
|
||||
# Session lifetime in hours
|
||||
lifetime_hours: 24
|
||||
cookie_secure: true # HTTPS only
|
||||
cookie_httponly: true
|
||||
cookie_samesite: "Strict"
|
||||
|
||||
cors:
|
||||
enabled: false # Not needed in production if same domain
|
||||
|
||||
logging:
|
||||
level: "INFO"
|
||||
format: "json"
|
||||
handlers:
|
||||
- "console"
|
||||
- "file"
|
||||
file_path: "/var/log/coc/web.log"
|
||||
|
||||
# UI Settings
|
||||
ui:
|
||||
theme: "dark"
|
||||
items_per_page: 20
|
||||
enable_animations: true
|
||||
Reference in New Issue
Block a user