Server
Server Configuration
Real CookieFarm server configuration using `.env` and `config.yml`.
Server Configuration
CookieFarm uses two configuration sources:
.env(server runtime settings)config.yml(A/D and shared runtime settings)
.env
Minimal example:
PORT=8080
PASSWORD=SuperSecret
CONFIG_FILE=true
DEBUG=falseFields:
PORT: server HTTP portPASSWORD: dashboard/client login passwordCONFIG_FILE: iftrue, load config from file at bootDEBUG: verbose logging
config.yml
Example:
configured: true
server:
url_flag_checker: "http://127.0.0.1:5001/flags"
team_token: "team-token"
submit_flag_checker_time: 120
max_flag_batch_size: 500
protocol: "cc_http"
tick_time: 120
start_time: "00:00:00"
end_time: "23:59:59"
flag_ttl: 5
shared:
configured: true
services:
CookieService: 8081
regex_flag: "[A-Z0-9]{31}="
format_ip_teams: "10.10.{}.1"
my_team_id: 1
nop_team: 0
range_ip_teams: 20
url_flag_ids: "http://127.0.0.1:5002/flagids"Most important competition fields
server.submit_flag_checker_time: checker submit frequencyserver.max_flag_batch_size: checker batch sizeserver.protocol: submit protocol pluginshared.regex_flag: regex used by exploit runtimeshared.services: service-to-port mapshared.url_flag_ids: flag IDs endpoint
Operational notes
- If
url_flag_checkeris empty, server stores flags but cannot forward them. flag_ttlis in ticks (flag_ttl * tick_timeseconds).
How is this guide?