staging.toml RawHistoryFolder
1# Gordon v2 - Staging Configuration Example
2# For testing and preview environments
3
4[server]
5port = 8080
6registry_port = 5000
7registry_domain = "staging-registry.company.com"
8runtime = "auto" # auto-detects Docker/Podman
9ssl_email = "devops@company.com"
10data_dir = "./data"
11
12[registry_auth]
13enabled = true
14username = "staging-user"
15password = "staging-pass-123"
16
17# Staging logging configuration
18[logging]
19enabled = true # Enable logging for staging debugging
20level = "debug" # Verbose logging for troubleshooting
21dir = "./staging-logs" # Staging-specific log directory
22main_log_file = "gordon.log" # Main application logs
23proxy_log_file = "proxy.log" # HTTP proxy traffic logs
24container_log_dir = "containers" # Container logs subdirectory
25
26# Staging log rotation settings
27max_size = 50 # Moderate file sizes for staging
28max_backups = 5 # Keep reasonable history
29max_age = 30 # Keep logs for 1 month
30compress = true # Compress to save space
31
32# Staging environment routes - using branch-based deployments
33[routes]
34"staging.company.com" = "company-app:staging" # Main staging branch
35"staging-api.company.com" = "company-api:staging" # API staging
36
37# Feature branch testing
38"feature-auth.company.com" = "company-app:feature-auth" # Feature branch: auth improvements
39"feature-ui.company.com" = "company-app:feature-ui-redesign" # Feature branch: UI updates
40"hotfix-123.company.com" = "company-app:hotfix-user-login" # Hotfix branch
41
42# PR preview environments
43"pr-42.company.com" = "company-app:pr-42" # Pull request #42 preview
44"pr-55.company.com" = "company-app:pr-55" # Pull request #55 preview
45
46# Development tools
47"staging-admin.company.com" = "admin-panel:develop" # Admin panel dev version
48
49# Staging workflow:
50# 1. Developer pushes feature branch
51# 2. CI builds and tags: company-app:feature-auth
52# 3. CI pushes: docker push staging-registry.company.com/company-app:feature-auth
53# 4. Gordon auto-deploys to feature-auth.company.com
54# 5. Team tests at https://feature-auth.company.com
55# 6. Merge to staging → auto-deploy to staging.company.com