Skip to content

Commit

Permalink
daemon/defer: add price-factor to config schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukáš Ondráček committed Jan 15, 2025
1 parent 3efdc9d commit c604f76
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
13 changes: 10 additions & 3 deletions doc/_static/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@
}
},
"default": {
"files_watchdog": true,
"files_watchdog": false,
"cert_file": null,
"key_file": null,
"sticket_secret": null,
Expand Down Expand Up @@ -533,7 +533,7 @@
},
"address_renumbering": null,
"tls": {
"files_watchdog": true,
"files_watchdog": false,
"cert_file": null,
"key_file": null,
"sticket_secret": null,
Expand Down Expand Up @@ -644,11 +644,18 @@
"type": "boolean",
"description": "Enable/disable DNS64.",
"default": true
},
"price-factor": {
"type": "number",
"minimum": 0.0,
"description": "Multiplies rate-limiting and defer prices of operations, use 0 to whitelist.",
"default": 1.0
}
},
"default": {
"minimize": true,
"dns64": true
"dns64": true,
"price_factor": 1.0
}
}
}
Expand Down
1 change: 1 addition & 0 deletions python/knot_resolver/datamodel/view_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class ViewOptionsSchema(ConfigSchema):
---
minimize: Send minimum amount of information in recursive queries to enhance privacy.
dns64: Enable/disable DNS64.
price_factor: Multiplies rate-limiting and defer prices of operations, use 0 to whitelist.
"""

minimize: bool = True
Expand Down

0 comments on commit c604f76

Please sign in to comment.