proxy_fastly: get max number of backends from config
This commit is contained in:
parent
fad0c79e23
commit
8d949caa1a
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
|
from flask import current_app
|
||||||
|
|
||||||
from app.extensions import db
|
from app.extensions import db
|
||||||
from app.models.mirrors import Proxy
|
from app.models.mirrors import Proxy
|
||||||
from app.terraform.proxy import ProxyAutomation
|
from app.terraform.proxy import ProxyAutomation
|
||||||
|
@ -9,7 +11,7 @@ class ProxyFastlyAutomation(ProxyAutomation):
|
||||||
short_name = "proxy_fastly"
|
short_name = "proxy_fastly"
|
||||||
description = "Deploy proxies to Fastly"
|
description = "Deploy proxies to Fastly"
|
||||||
provider = "fastly"
|
provider = "fastly"
|
||||||
subgroup_max = 5
|
subgroup_max = max(current_app.config.get("FASTLY_MAX_BACKENDS", 5), 20)
|
||||||
|
|
||||||
template_parameters = [
|
template_parameters = [
|
||||||
"aws_access_key",
|
"aws_access_key",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue