File tree Expand file tree Collapse file tree 4 files changed +27
-1
lines changed
terraform/domains/environment_domains Expand file tree Collapse file tree 4 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -28,3 +28,4 @@ bin/konduit.sh
28
28
.terraform
29
29
terraform /* token *
30
30
terraform /* /vendor
31
+ terraform /domains /* /vendor /
Original file line number Diff line number Diff line change 2
2
"domains" : [" www" , " apex" ],
3
3
"environment_short" : " pd" ,
4
4
"environment_tag" : " Prod" ,
5
- "origin_hostname" : " apply-for-qts-production-web.teacherservices.cloud"
5
+ "origin_hostname" : " apply-for-qts-production-web.teacherservices.cloud" ,
6
+ "rate_limit" : [
7
+ {
8
+ "agent" : " all" ,
9
+ "priority" : 100 ,
10
+ "duration" : 5 ,
11
+ "limit" : 300 ,
12
+ "selector" : " Host" ,
13
+ "operator" : " GreaterThanOrEqual" ,
14
+ "match_values" : " 0"
15
+ }
16
+ ]
6
17
}
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ module "domains" {
6
6
domains = var. domains
7
7
environment = var. environment_short
8
8
host_name = var. origin_hostname
9
+ rate_limit = try (var. rate_limit , null )
9
10
}
10
11
11
12
data "azurerm_cdn_frontdoor_profile" "main" {
Original file line number Diff line number Diff line change @@ -35,6 +35,19 @@ variable "origin_hostname" {
35
35
description = " Origin endpoint url"
36
36
}
37
37
38
+ variable "rate_limit" {
39
+ type = list (object ({
40
+ agent = optional (string )
41
+ priority = optional (number )
42
+ duration = optional (number )
43
+ limit = optional (number )
44
+ selector = optional (string )
45
+ operator = optional (string )
46
+ match_values = optional (string )
47
+ }))
48
+ default = null
49
+ }
50
+
38
51
locals {
39
52
hostname = " ${ var . domains [0 ]} .${ var . zone } "
40
53
}
You can’t perform that action at this time.
0 commit comments