-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzone-settings.tf
More file actions
44 lines (37 loc) · 1.32 KB
/
zone-settings.tf
File metadata and controls
44 lines (37 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Standard zone configuration settings
resource "cloudflare_zone_settings_override" "this" {
zone_id = data.cloudflare_zones.this.zones[0].id
settings {
# Security
security_level = var.security_level
email_obfuscation = var.email_obfuscation
challenge_ttl = var.challenge_ttl
hotlink_protection = var.hotlink_protection
# Modernization
http3 = var.http3
# Caching
cache_level = var.cache_level
# Performance
brotli = var.brotli
early_hints = var.early_hints
minify {
css = var.minify.css
js = var.minify.js
html = var.minify.html
}
# SSL/TLS
ssl = var.tls_settings.ssl
tls_1_3 = var.tls_settings.tls_1_3
min_tls_version = var.tls_settings.min_tls_version
opportunistic_encryption = var.tls_settings.opportunistic_encryption
automatic_https_rewrites = var.tls_settings.automatic_https_rewrites
always_use_https = var.tls_settings.always_use_https
security_header {
enabled = var.security_header.enabled
preload = var.security_header.preload
include_subdomains = var.security_header.include_subdomains
nosniff = var.security_header.nosniff
max_age = var.security_header.max_age
}
}
}