サーバー

設定

valkyr.toml のすべてのオプションの型、既定値、意味。Rust のソースから生成しているので、常にバイナリと一致します。

valkyr init はコメント付きの valkyr.toml を書き出します。省略したフィールドは既定値のままで、未知のフィールドは拒否されるので、タイプミスは無視されずに起動時にはっきりと失敗します。このページの表は、ビルド時に Rust のソースから生成しています。

秘密情報

API キー、Webhook のシークレット、データベースのパスワードはバージョン管理に含めないでください。データベースの URL は、ファイルの代わりに VALKYR_DATABASE_URL から読み込めます。

サーバー

リスナー、上限、永続化。

オプション型既定値説明
server.bindString"127.0.0.1:7420"Listen address.
server.workersusize4HTTP worker threads.
server.max_body_bytesusize4194304Largest accepted request body in bytes.
server.max_events_per_batchusize5000Largest number of events in one telemetry batch.
server.max_matchesusize1000Largest number of live matches.
server.match_idle_secsu643600Matches without traffic for this long are dropped (trust stays).
server.max_sessionsusize10000Largest number of live client sessions.
server.session_idle_secsu64600Sessions without a heartbeat for this long are dropped.
server.verdict_historyusize100Verdicts kept per player.
server.action_queueusize10000Entries kept in the enforcement action queue.
server.min_poll_actionAction"kick"Lowest action that is put on the polling queue.
server.action_cooldown_msu6460000The same action for the same player is queued again only after this many milliseconds (a stronger action is queued at once).
server.state_dirOption<PathBuf>未設定Directory for the trust ledger, population baselines and review board. No persistence when unset.
server.save_interval_secsu6460Seconds between periodic state saves.
server.audit_logOption<PathBuf>未設定Append only audit log (JSON lines). Defaults to <state_dir>/audit.jsonl when state_dir is set.
server.audit_tailusize1000Audit entries kept in memory for /v1/audit.
server.metrics_tokenOption<String>未設定When set, /metrics requires Authorization: Bearer <token>.
server.rate_per_secf641000.0Requests per second each API key may make on average (token bucket refill rate). 0 disables rate limiting.
server.rate_burstf642000.0Token bucket size: the burst a key may send at once.
server.idempotency_ttl_secsu6486400How long a response is kept for replay under its Idempotency-Key.
server.idempotency_maxusize100000Idempotency entries kept at most (oldest are dropped first).

ビルド時に crates/valkyr-server/src/config.rs (ServerSection) から生成しています。

API キー

呼び出し元ごとに [[keys]] のエントリを 1 つ作ります。ロールは ingest (テレメトリーの送信、クライアントセッション、アクションのポーリング)、read (信頼度、判定、証拠)、review (陪審のエンドポイント)、moderator (BAN、警告、キック、異議申し立て、アカウントのリンク)、admin (すべて) です。

オプション型既定値説明
keys.nameString必須Name shown in the audit log (never the key itself).
keys.keyString必須The secret bearer key. At least 16 characters.
keys.roleOption<Role>未設定Single role (shorthand for roles = [role]).
keys.rolesVec<Role>[]Roles granted to the key.
keys.jurorOption<u64>未設定Juror id bound to a review key. A bound key can only act as that juror.
keys.rate_per_secOption<f64>未設定Rate limit of this key (overrides server.rate_per_sec).
keys.rate_burstOption<f64>未設定Burst of this key (overrides server.rate_burst).

ビルド時に crates/valkyr-server/src/config.rs (KeyConfig) から生成しています。

Webhook

受信先ごとに [[webhooks]] のエントリを 1 つ作ります。署名については Webhook をご覧ください。

オプション型既定値説明
webhooks.nameOption<String>未設定Name used in logs and metrics.
webhooks.urlString必須Receiver URL. Only http:// is delivered natively; put an HTTPS relay or reverse proxy in front of https:// receivers.
webhooks.secretString必須Shared secret for the Valkyr-Signature header.
webhooks.eventsVec<String>see belowEvent types: verdict, action, review.closed.
webhooks.min_actionAction"review"Lowest action that triggers verdict and action events.
webhooks.formatWebhookFormatsectionBody format.
webhooks.max_attemptsu326Delivery attempts before giving up.
webhooks.retry_base_msu641000First retry delay; doubles after each failure.
webhooks.timeout_msu645000Connect, write and read timeout per attempt.

ビルド時に crates/valkyr-server/src/config.rs (WebhookConfig) から生成しています。

ストレージ

オプション型既定値説明
storage.backendStorageBackend"sqlite"sqlite (default), postgres or files.
storage.urlOption<String>未設定Database URL. VALKYR_DATABASE_URL takes precedence when it names the same kind of database; keep passwords in the environment. sqlite: a path or sqlite://path (default <state_dir>/valkyr.db); postgres: postgres://user:password@host:5432/db.
storage.schemaOption<String>未設定PostgreSQL schema to use (created when missing). Default: the connection's search path, normally public.

ビルド時に crates/valkyr-server/src/config.rs (StorageSection) から生成しています。

レビュー陪審

オプション型既定値説明
review.jurors_per_caseusize7Target jury size.
review.min_votesusize5Votes needed before a case can close.
review.supermajorityf640.7Share of decisive weight needed for a verdict.
review.min_juror_accuracyf640.55Accuracy floor once past the grace period.
review.accuracy_graceu3210Reviewed cases before the accuracy floor applies.
review.max_open_cases_per_jurorusize3Open unvoted cases a juror can hold.
review.seedu640x7a1c_e5ee_d000_0001Seed of the deterministic jury draw.
review.collusion_min_sharedu323Shared cases before a juror pair appears in the collusion report.

ビルド時に crates/valkyr-server/src/config.rs (ReviewSection) から生成しています。

BAN

オプション型既定値説明
bans.autoAutoBan"temporary"Strongest ban the trust policy may create automatically. A policy ban decision is downgraded to this level.
bans.auto_shadowboolfalseAlso shadow ban players the policy puts in the shadow queue.
bans.auto_scopeString"global"Scope of automatic bans.
bans.auto_duration_secsu640Length of automatic temporary bans. 0 uses the engine policy's restrict_minutes.
bans.wave_modeWaveMode"off"Ban wave mode. Automatic bans always go through the wave when it is on; manual bans only with "wave": true.
bans.wave_interval_secsu6421600Interval mode: time between waves.
bans.wave_jitter_secsu643600Random extra delay added to each wave or delayed ban.
bans.wave_delay_secsu6486400Delay mode: time between a ban being queued and taking effect.
bans.appeal_juryboolfalseOpen a review jury case for every appeal (needs jurors).
bans.max_statement_charsusize4000Longest accepted appeal statement in characters.

ビルド時に crates/valkyr-server/src/config.rs (BansSection) から生成しています。

オプション型既定値説明
links.enabledboolfalseOpt in. Off by default; nothing is stored while off.
links.saltOption<Hex32>未設定Secret salt (64 hex characters) mixed into every stored hash. Keep it private and never reuse it across deployments.
links.retention_daysu64180Accounts not seen for this many days are forgotten.
links.kindsVec<String>""Identifier kinds the game may submit (empty accepts any kind).
links.evasion_flagbooltrueRecord an account.ban_evasion hint in the trust ledger when a player linked to a banned account asks for its standing.

ビルド時に crates/valkyr-server/src/config.rs (LinksSection) から生成しています。

Guard の信号

オプション型既定値説明
guard.enabledboolfalseAccept POST /v1/guard/signals.
guard.keysVec<GuardKey>[]Pinned signing keys.
guard.max_skew_secsu64300Envelopes whose sent_ms is further than this from the server clock are rejected.
guard.strongVec<String>""Signal types that may lead to enforcement on their own. Every other signal is a hint: a verdict made of client evidence only is capped at review.
guard.weightsstd::collections::BTreeMap<String, f64>std::collections::BTreeMap::new()Severity (0..1) per signal type, overriding the defaults.
guard.max_signalsusize64Signals accepted in one envelope.

ビルド時に crates/valkyr-server/src/config.rs (GuardSection) から生成しています。

ライブストリーム

オプション型既定値説明
stream.max_clientsusize16Concurrent streams (one thread each).
stream.bufferusize256Events buffered per stream; a slow client loses the oldest overflow and gets a stream.dropped event.
stream.heartbeat_secsu6415Seconds between keepalive comments.

ビルド時に crates/valkyr-server/src/config.rs (StreamSection) から生成しています。

クライアントセッション

オプション型既定値説明
client.allowed_buildsVec<Hex32>[]Allowed build hashes (hex). Empty accepts any build.
client.expected_manifest_rootOption<Hex32>未設定Expected manifest root (hex).
client.max_gap_msu6430000Maximum time between two heartbeats.
client.rotate_afteru640Required key rotation period in heartbeats (0: none).
client.clock_tolerance_msu642000Allowed wall against monotonic clock drift between heartbeats.
client.speed_window_msu6430000Server time span before the clock speed ratio is judged.
client.speed_tolerance_ppmu64100000Allowed speed ratio deviation, parts per million.
client.max_outstanding_noncesusize4Outstanding nonces per session.
client.nonce_ttl_msu6460000Maximum nonce age.

ビルド時に crates/valkyr-server/src/config.rs (ClientSection) から生成しています。

エンジン

[engine] の下にあるものはすべて valkyr-core の設定です。

オプション型既定値説明
engine.flag_cooldown_msu642000The same rule does not fire twice for one player within this many ms.

ビルド時に crates/valkyr-core/src/config.rs (Config) から生成しています。

信頼度とポリシー

オプション型既定値説明
engine.trust.priorf640.02Prior probability that a random player cheats.
engine.trust.half_life_msu641800000Half life of evidence in ms.
engine.trust.default_llrf641.0Log likelihood ratio for rules without an entry in rule_llr.
engine.trust.rule_llrBTreeMap<String, f64>see belowLog likelihood ratio per rule id.
engine.trust.rule_capf643.0Evidence of one rule saturates at this many times its ratio.
engine.trust.evidence_capacityusize256Flags kept per player for evidence bundles.
engine.trust.groupsVec<EvidenceGroup>see belowGroups of correlated rules whose evidence is combined and capped. A rule belongs to the first group that lists it.

ビルド時に crates/valkyr-core/src/trust.rs (TrustConfig) から生成しています。

オプション型既定値説明
engine.trust.policy.logOption<f64>0.1Keep evidence.
engine.trust.policy.reviewOption<f64>0.6Send to review.
engine.trust.policy.shadow_queueOption<f64>0.85Shadow queue.
engine.trust.policy.kickOption<f64>0.97Kick from the match.
engine.trust.policy.restrictOption<f64>0.995Temporary restriction.
engine.trust.policy.restrict_minutesu641440Length of a restriction in minutes.
engine.trust.policy.banOption<f64>未設定Permanent ban. Off by default and discouraged without human review.
engine.trust.policy.min_rules_for_enforcementusize2Distinct rules needed before kick, restrict or ban.

ビルド時に crates/valkyr-core/src/trust.rs (Policy) から生成しています。

移動

オプション型既定値説明
engine.movement.enabledbooltrueMaster switch.
engine.movement.max_speedf647.0Fastest legitimate horizontal speed in m/s.
engine.movement.speed_tolerancef640.1Fraction above max_speed tolerated (jitter, float error).
engine.movement.speed_window_msu641000Length of the sliding window used for speed, in ms.
engine.movement.latency_allowance_msu641000The window is measured on the client clock (exact even when packets arrive in bursts after a lag spike). It may exceed the server span by at most this much; a client clock that runs fast for longer is caught by network.timescale.
engine.movement.min_window_msu64500Speed is only judged once the window covers at least this span.
engine.movement.speed_bufferf643.0Violation level at which movement.speed fires.
engine.movement.gravityf6420.0Gravity in m/s^2.
engine.movement.max_jump_heightf641.3Highest legitimate jump in meters.
engine.movement.height_tolerancef640.25Extra height tolerated above max_jump_height.
engine.movement.hover_grace_msu64250Time after the expected apex before hovering counts, in ms.
engine.movement.hover_limit_msu64450Airborne time without descending that fires movement.fly, in ms.
engine.movement.teleport_distancef6410.0A single step longer than this (meters) without a spawn is a teleport.
engine.movement.collider_skinf640.05Colliders are shrunk by this skin before noclip tests.
engine.movement.noclip_probe_heightf640.6Noclip is tested on a segment this far above the feet, so stepping onto low ledges is not a violation.
engine.movement.ground_tolerancef640.15Feet within this distance above a surface count as supported.
engine.movement.ground_spoof_framesu3220Consecutive unsupported frames claiming ground that fire movement.ground_spoof.
engine.movement.bhop_min_hopsu328Hops needed before bunny hop timing is judged.
engine.movement.bhop_perfect_ratiof640.9Share of frame perfect, spam free jumps that fires movement.bhop.
engine.movement.max_pitchf6490.0Highest legitimate absolute pitch in degrees.
engine.movement.spin_degreesf641800.0Total rotation in degrees within spin_window_ms that fires view.spin.
engine.movement.spin_window_msu64600Window for spin detection in ms.

ビルド時に crates/valkyr-core/src/movement.rs (MovementConfig) から生成しています。

戦闘

オプション型既定値説明
engine.combat.enabledbooltrueMaster switch.
engine.combat.weaponsVec<WeaponSpec>see belowDeclared weapons. Shots with unknown ids use the first entry.
engine.combat.abilitiesVec<AbilitySpec>[]Declared abilities.
engine.combat.fire_rate_tolerance_msu648Shots may come this much earlier than the weapon allows (timer rounding) without counting as a violation, in ms.
engine.combat.fire_rate_violationsusize3Violations within the last 10 shots that fire combat.fire_rate.
engine.combat.cooldown_tolerance_msu6450Cooldown slack in ms.
engine.combat.max_rewind_msu64400Longest latency the server rewinds for, in ms.
engine.combat.interp_delay_msu6450Client side interpolation delay added to the rewind, in ms.
engine.combat.rewind_slack_msu6460Hit validation also accepts the target position this many ms before and after the rewind time.
engine.combat.hitbox_half_widthf640.35Half width of a player hitbox in meters.
engine.combat.hitbox_heightf641.85Height of a player hitbox in meters.
engine.combat.hitbox_paddingf640.2Padding added to the hitbox during validation, in meters.
engine.combat.eye_heightf641.6Eye height above the feet in meters.
engine.combat.silent_aim_degf648.0Largest angle between the shot direction and the latest view, in deg.
engine.combat.invalid_hitsusize3Invalid hits among the last 10 claimed hits that fire combat.hit_invalid.

ビルド時に crates/valkyr-core/src/combat.rs (CombatConfig) から生成しています。

エイム

オプション型既定値説明
engine.aim.enabledbooltrueMaster switch.
engine.aim.move_start_dpsf6440.0Angular speed (deg/s) that starts a movement segment.
engine.aim.move_end_dpsf6415.0Angular speed (deg/s) below which a segment ends.
engine.aim.snap_min_degf6412.0A one frame rotation at least this large (deg) is a snap candidate.
engine.aim.snap_max_msu6440Longest movement (ms) that still counts as a single frame snap.
engine.aim.snap_shot_window_msu64200A shot within this many ms after a snap completes it.
engine.aim.snap_countusize3Snaps followed by shots within snap_window_ms that fire aim.snap.
engine.aim.snap_window_msu6460000Window for counting snaps, in ms.
engine.aim.trigger_min_samplesusize8Samples needed before trigger timing is judged.
engine.aim.trigger_median_msf6445.0Median crosshair on target to shot delay (ms) that fires aim.trigger.
engine.aim.reaction_min_samplesusize8Samples needed before reaction time is judged.
engine.aim.reaction_median_msf64120.0Median time from first sight to a hit (ms) that fires aim.reaction.
engine.aim.model_thresholdf640.97Model probability that fires aim.model.
engine.aim.model_min_acquisitionsu3212Target acquisitions needed before the model is consulted.
engine.aim.target_padding_degf640.5Extra angular padding on the target radius, in degrees.
engine.aim.target_aspectf642.6Height of the body box over its width. The crosshair is on target when it is over that box (head and legs included), not only inside the circle of the body width around the center.
engine.aim.view_half_angle_degf6455.0Half angle (deg) of the view cone. Reaction time is measured from the moment an enemy is both in line of sight and inside this cone, not from when it was visible behind the player's back.

ビルド時に crates/valkyr-core/src/aim.rs (AimConfig) から生成しています。

情報

オプション型既定値説明
engine.info.enabledbooltrueMaster switch.
engine.info.max_distancef6460.0Enemies further than this (meters) are ignored.
engine.info.track_degf6410.0The crosshair within this angle (deg) of a hidden point is tracking it.
engine.info.memory_msu642500An enemy seen within this window (ms) is still known.
engine.info.audio_memory_msu641500An enemy heard within this window (ms) is still known.
engine.info.preaim_degf644.0Crosshair error (deg) at the moment an unknown enemy appears that counts as a pre aim.
engine.info.min_hidden_framesu32600Frames with hidden enemies needed before scoring.
engine.info.min_appearancesu326Appearances needed before scoring.
engine.info.score_thresholdf640.75Weighted score that fires info.wallhack.
engine.info.w_trackf641.0Weight of hidden tracking.
engine.info.w_preaimf641.0Weight of pre aiming.
engine.info.w_pathf640.6Weight of pathing toward hidden enemies.
engine.info.w_corrf640.8Weight of the visible versus hidden error correlation.
engine.info.decoy_degf642.5Crosshair within this angle (deg) of a decoy's body is tracking it.
engine.info.decoy_framesu328Consecutive frames on a decoy that make one episode.
engine.info.decoy_episodesu322Episodes that fire info.decoy.
engine.info.displaced_mf643.0A hidden enemy counts only once it is at least this far (meters) from where the player last saw or heard it.
engine.info.phantom_min_msu646000Shortest time shift of the phantom, in ms.
engine.info.phantom_max_msu6412000Longest time shift of the phantom, in ms.
engine.info.view_half_angle_degf6455.0Half angle (deg) of the view cone: visible enemies outside it do not count toward the visible aim error.
engine.info.body_half_heightf640.9Half height of a body (meters); pre aim is judged against the whole body, not only its center.

ビルド時に crates/valkyr-core/src/info.rs (InfoConfig) から生成しています。

ネットワーク

オプション型既定値説明
engine.network.enabledbooltrueMaster switch.
engine.network.replay_windowu6464Width of the anti replay window in packets (at most 64).
engine.network.max_rate_hzf6490.0Highest legitimate input rate in packets per second.
engine.network.rate_window_msu641000Window for the rate check in ms.
engine.network.drift_window_msu648000Window for clock drift estimation in ms.
engine.network.drift_min_span_msu645000Drift is only judged once the window spans this much server time.
engine.network.drift_tolerancef640.04Relative clock speed above which network.timescale fires (0.04 means the client clock runs 4 percent fast).
engine.network.lag_gap_msu64250A delivery gap at least this long starts a lag episode, in ms.
engine.network.burst_window_msu6440Packets arriving within this window after a gap count as a burst.
engine.network.burst_min_packetsu324Packets needed in that window to call it a burst.
engine.network.advantage_window_msu64400Hits within this many ms after a burst count as advantage.
engine.network.fake_lag_min_burstsu324Bursts needed before fake lag is judged.
engine.network.fake_lag_ratiof640.65Share of bursts that end in an advantage that fires network.fake_lag.
engine.network.macro_min_shotsusize16Semi automatic shots needed before timing entropy is judged.
engine.network.macro_entropy_bitsf641.2Entropy in bits (5 ms buckets) below which shot timing looks scripted.

ビルド時に crates/valkyr-core/src/network.rs (NetworkConfig) から生成しています。

経済

オプション型既定値説明
engine.economy.resourcesVec<ResourceRule>[]Declared resources. Undeclared resources only get the balance check.
engine.economy.check_balance_chainboolfalseCheck that each balance equals the previous balance plus the delta.

ビルド時に crates/valkyr-core/src/economy.rs (EconomyConfig) から生成しています。

可視性

オプション型既定値説明
engine.visibility.fov_degf64106.0Horizontal field of view of the client in degrees.
engine.visibility.fov_margin_degf6425.0Margin added to the field of view so fast turns do not show pop in.
engine.visibility.max_distancef64200.0Entities beyond this distance are never sent.
engine.visibility.near_radiusf644.0Entities this close are sent regardless of the view direction.
engine.visibility.lead_msf64120.0Both viewer and entity are extrapolated this far ahead (ms) along their velocity, so models appear one round trip before they peek.
engine.visibility.peek_marginf640.45Sideways offset (meters) of extra sample points, for peeking edges.
engine.visibility.eye_heightf641.6Eye height above the feet.
engine.visibility.entity_heightf641.85Height of an entity.

ビルド時に crates/valkyr-core/src/visibility.rs (CullConfig) から生成しています。

サーバー側の事実

オプション型既定値説明
engine.state.enabledbooltrueRun the checks at all.
engine.state.tolerancef640.5Default absolute tolerance between a claim and the server truth.
engine.state.relative_tolerancef640.02Default relative tolerance (share of the server value). The larger of the absolute and relative tolerance applies.
engine.state.mismatches_to_flagu323Disagreements on one key within window_ms before state.mismatch fires.
engine.state.window_msu6410000Window for counting disagreements.
engine.state.rulesVec<StateRule>[]Per key limits and tolerances.

ビルド時に crates/valkyr-core/src/state.rs (StateConfig) から生成しています。

母集団とアカウント

オプション型既定値説明
engine.population.enabledbooltrueCompare players against their skill bracket at match end.
engine.population.bracket_widthf64250.0Rating width of one bracket.
engine.population.min_samplesu6440Samples a bracket needs before z scores are used.
engine.population.outlier_zf643.0Mean of the three most suspicious z scores that fires stats.outlier.
engine.population.max_probability_to_learnf640.3Players above this probability do not feed the baselines.

ビルド時に crates/valkyr-core/src/config.rs (PopulationConfig) から生成しています。

オプション型既定値説明
engine.accounts.smurfboolfalseSmurf detection on young accounts.
engine.accounts.altsboolfalseBehavior based alt account similarity.
engine.accounts.alt_similarityf640.97Cosine similarity that reports a possible alt.
engine.accounts.alt_min_matchesu325Matches an account needs before alt comparison.

ビルド時に crates/valkyr-core/src/config.rs (AccountConfig) から生成しています。

完全な設定例

これは docs/config.example.toml で、valkyr init が元にしているファイルです。

valkyr.tomlTOML
# valkyr-server configuration.## Values below are the defaults, except the keys, state_dir and the engine# policy comments. Keep this file private: it holds the API keys. Regenerate keys with `valkyr init --force`. [server]# Address to listen on. Keep it on localhost or a private network and put a# TLS reverse proxy in front of it for anything that crosses the internet.bind = "127.0.0.1:7420"# HTTP worker threads.workers = 4# Largest request body in bytes, and largest telemetry batch.max_body_bytes = 4194304max_events_per_batch = 5000# Live matches, and how long an idle match is kept (trust always persists).max_matches = 1000match_idle_secs = 3600# Live client heartbeat sessions, and how long an idle session is kept.max_sessions = 10000session_idle_secs = 600# Verdicts kept per player for GET /v1/players/{player}/verdicts.verdict_history = 100# Enforcement queue for game servers that poll GET /v1/actions.action_queue = 10000min_poll_action = "kick"# The same action for the same player is queued again only after this long.action_cooldown_ms = 60000# Where the trust ledger, population baselines and review board are saved# (periodically and on shutdown) by the sqlite and files storage backends.# Without it the sqlite backend keeps everything in memory.state_dir = "valkyr-state"save_interval_secs = 60# Append only audit log (JSON lines). Defaults to <state_dir>/audit.jsonl.# audit_log = "valkyr-state/audit.jsonl"audit_tail = 1000# Uncomment to require `Authorization: Bearer <token>` on /metrics.# metrics_token = "a-long-random-token"# Rate limit per API key (token bucket): average requests per second and# burst. Over the limit the server answers 429 with Retry-After. 0 disables.# A key may override both with rate_per_sec and rate_burst.rate_per_sec = 1000.0rate_burst = 2000.0# POST requests with an Idempotency-Key header are answered once and the# stored response is replayed for this long.idempotency_ttl_secs = 86400idempotency_max = 100000 # API keys. Roles: ingest (telemetry, sessions, action polling, guard signals,# player standing), read (trust, verdicts, evidence, live stream), review# (jury: list cases, read evidence, vote), moderator (bans, warnings, kicks,# appeals, account links), admin (everything, including ban waves, jurors and# closing cases).[[keys]]name = "game-server"key = "REPLACE_WITH_A_RANDOM_INGEST_KEY"roles = ["ingest"] [[keys]]name = "dashboard"key = "REPLACE_WITH_A_RANDOM_READ_KEY"roles = ["read"] [[keys]]name = "juror-1"key = "REPLACE_WITH_A_RANDOM_REVIEW_KEY"roles = ["review"]# A bound juror key can only vote as this juror id.juror = 1 [[keys]]name = "moderation"key = "REPLACE_WITH_A_RANDOM_MODERATOR_KEY"roles = ["moderator", "read"] [[keys]]name = "operator"key = "REPLACE_WITH_A_RANDOM_ADMIN_KEY"roles = ["admin"] # Webhooks. Every request is signed:#   Valkyr-Signature: t=<unix ms>,v1=<hex HMAC-SHA256(secret, "<t>.<raw body>")># Only http:// URLs are delivered natively. For https receivers (for example a# chat webhook) run a small local relay or reverse proxy and point url at it.# Uncomment to enable:# [[webhooks]]# name = "moderation"# url = "http://127.0.0.1:9000/valkyr"# secret = "REPLACE_WITH_A_RANDOM_WEBHOOK_SECRET"# Event types: verdict, action, review.closed, kick, warning, ban.created,# ban.activated, ban.updated, ban.revoked, ban.expired, wave.executed,# appeal.filed, appeal.decided, guard.signal. Default: all of them.# events = ["verdict", "action", "review.closed", "ban.created", "ban.activated"]# min_action = "review"# format = "json"        # or "discord"# max_attempts = 6# retry_base_ms = 1000   # 1 s, 2 s, 4 s, ...# timeout_ms = 5000 # Detection engine. Any field of valkyr_core::Config can be set here; missing# fields keep their defaults. Permanent bans stay off unless you set ban.[engine]flag_cooldown_ms = 2000 [engine.trust.policy]log = 0.1review = 0.6shadow_queue = 0.85kick = 0.97restrict = 0.995restrict_minutes = 1440# ban = 0.999min_rules_for_enforcement = 2 # Community review jury.[review]jurors_per_case = 7min_votes = 5supermajority = 0.7min_juror_accuracy = 0.55accuracy_grace = 10max_open_cases_per_juror = 3collusion_min_shared = 3 # Client heartbeat verification (valkyr-client sessions).[client]# Hex SHA-256 of the game builds you ship. Empty accepts any build (development).allowed_builds = []max_gap_ms = 30000rotate_after = 0clock_tolerance_ms = 2000speed_window_ms = 30000speed_tolerance_ppm = 100000max_outstanding_nonces = 4nonce_ttl_ms = 60000 # Bans. Automatic decisions of the trust policy create at most a temporary# ban unless you raise `auto`; permanent bans should come from a moderator.[bans]auto = "temporary"         # off, shadow, temporary or permanentauto_shadow = false        # also shadow ban players put in the shadow queueauto_scope = "global"      # global, game:<id>, server:<id> or league:<id>auto_duration_secs = 0     # 0 uses engine.trust.policy.restrict_minutes# Ban waves hide when a detection fired: queued bans take effect together.wave_mode = "off"          # off, interval or delaywave_interval_secs = 21600 # interval mode: every 6 hourswave_jitter_secs = 3600    # both modes: plus up to 1 hour of random delaywave_delay_secs = 86400    # delay mode: one day after the ban was queued# Open a review jury case for every appeal.appeal_jury = falsemax_statement_chars = 4000 # Account and device linking for ban evasion. Off by default. Only salted# hashes of identifiers the game already tokenized are stored, and accounts# not seen for retention_days are forgotten.[links]enabled = false# salt = "64 random hex characters, keep them secret"retention_days = 180kinds = []                 # for example ["device", "payment"]; empty accepts anyevasion_flag = true # Signed tier signals from valkyr-guard agents (POST /v1/guard/signals).# Signals are hints: a verdict made of client evidence only stays at review,# unless the signal type is listed in strong.[guard]enabled = falsemax_skew_secs = 300strong = []max_signals = 64# [guard.weights]# injected_code = 0.6# [[guard.keys]]# id = "studio-2026"# public_key = "64 hex characters of the Ed25519 public key" # Live push for dashboards: GET /v1/stream (Server-Sent Events).[stream]max_clients = 16buffer = 256heartbeat_secs = 15 # Where state lives: bans, appeals, trust and verdict history, the audit# log, API keys, webhooks, rule weights and linked accounts.#   sqlite   one file, <state_dir>/valkyr.db (zero config)#   postgres a shared database for production and networks of servers;#            the URL comes from VALKYR_DATABASE_URL (or url below), for#            example postgres://valkyr:password@db:5432/valkyr#   files    the JSON files of earlier versions in state_dir# Migrations are embedded and run on start or with `valkyr migrate`.[storage]backend = "sqlite"# url = "valkyr-state/valkyr.db"# schema = "valkyr"              # postgres only

GitHub でこのページを編集