Compose-Examples/examples/gzctf/appsettings.json
LRVT 86579fb58d
All checks were successful
CI / validateComposeSyntax (push) Successful in 18s
chore: adjust trusted ip ranges
2025-05-28 16:14:31 +02:00

47 lines
1.2 KiB
JSON

{
"AllowedHosts": "*",
"ConnectionStrings": {
"Database": "Host=db:5432;Database=gzctf;Username=postgres;Password=secure-gzctf-db-password",
"RedisCache": "cache:6379,abortConnect=false"
},
"EmailConfig": {
"SenderAddress": "",
"SenderName": "",
"UserName": "",
"Password": "",
"Smtp": {
"Host": "localhost",
"Port": 587
}
},
"XorKey": "<YOUR-RANDOM-XOR-KEY>",
"ContainerProvider": {
"Type": "Docker", // or "Kubernetes"
"PortMappingType": "Default", // or "PlatformProxy"
"EnableTrafficCapture": false,
"PublicEntry": "ctf.example.com", // or "xxx.xxx.xxx.xxx"
// optional
"DockerConfig": {
"SwarmMode": false,
"Uri": "unix:///var/run/docker.sock"
}
},
"CaptchaConfig": {
"Provider": "None", // or "CloudflareTurnstile" or "HashPow"
"SiteKey": "<Your SITE_KEY>",
"SecretKey": "<Your SECRET_KEY>"
},
"Registries": {
"ghcr.io": {
"UserName": "your-username",
"Password": "ghp_..."
}
},
"ForwardedOptions": {
"ForwardedHeaders": 7,
"ForwardLimit": 1,
"TrustedNetworks": ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
}
}