Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit b26adcfe authored by Youssef BOUFNICHEL's avatar Youssef BOUFNICHEL
Browse files

:hammer: update netbox mappings schema in sid2netbox

parent cbbd1cda
No related branches found
No related tags found
1 merge request!20:hammer: update sid2netbox role
Pipeline #276999 passed
......@@ -36,6 +36,14 @@ class NetboxMapping(TypedDict):
client_max_body_size: int
http_headers: list[NetboxHeaderNested]
tags: list[NetboxTag]
proxy_buffer_size: int
proxy_buffer: int
proxy_busy_buffer: int
proxy_buffer_responses: bool
proxy_buffer_requests: bool
extra_protocols: list[str]
class NetboxMappingList(TypedDict):
......
......@@ -62,10 +62,17 @@ def convert_mapping_with_tag(
"keepalive_timeout": 300 if sid_mapping["has server persistence"] == "true" else 75,
"proxy_cache": sid_mapping["bypasses the cache"] != "true",
"proxy_read_timeout": proxy_read_timeout(sid_mapping["has as timeout"] or ""),
"client_max_body_size": 1,
"client_max_body_size": 128,
"tags": [
{"slug": tag}
],
"proxy_buffer_size": 4,
"proxy_buffer": 16,
"proxy_busy_buffer": 8,
"proxy_buffer_responses": "true",
"proxy_buffer_requests": "true",
"extra_protocols": [],
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment