-
Notifications
You must be signed in to change notification settings - Fork 2
/
zone_settings.tf
61 lines (54 loc) · 1.56 KB
/
zone_settings.tf
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Custom Setting Overrides for the tarkov.dev cloudflare zone
# Settings include:
# - Compression
# - Cache Level
# - Security Level
# - TTLs
# - TLS configuration
# - HSTS
# - Minify
# - etc...
# see all values here: https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/zone_settings_override
resource "cloudflare_zone_settings_override" "tarkov_dev" {
zone_id = var.CLOUDFLARE_ZONE_ID
settings {
# Toggles
always_online = "on"
always_use_https = "on"
automatic_https_rewrites = "on"
brotli = "on"
browser_check = "on"
http3 = "on"
ip_geolocation = "on"
ipv6 = "on"
opportunistic_encryption = "on"
privacy_pass = "on"
rocket_loader = "on"
opportunistic_onion = "on"
websockets = "on"
zero_rtt = "on"
webp = "on"
# String Values
security_level = "medium"
cache_level = "aggressive"
min_tls_version = "1.0"
ssl = "flexible" # needed for S3 backend assets
polish = "lossy"
# Integer Values
browser_cache_ttl = 691200
challenge_ttl = 1800
max_upload = 100
minify {
css = "on"
js = "on"
html = "on"
}
security_header {
enabled = true
preload = true
max_age = 15552000 # 6 months
include_subdomains = true
nosniff = true
}
}
}