feat: increase cloudflare auth token ttl to 7 days

This commit is contained in:
2025-10-02 23:12:51 +03:00
parent cdd0c1d7fd
commit 25d0da34be

View File

@@ -13,9 +13,10 @@ resource "cloudflare_zero_trust_list" "family_emails" {
}
resource "cloudflare_zero_trust_access_policy" "allow_myself" {
account_id = var.cloudflare_account_id
name = "Allow myself, by OTP via email"
decision = "allow"
account_id = var.cloudflare_account_id
name = "Allow myself, by OTP via email"
decision = "allow"
session_duration = "168h" # 7d
include = [
{
email = {
@@ -29,6 +30,7 @@ resource "cloudflare_zero_trust_access_policy" "allow_myself_and_family" {
account_id = var.cloudflare_account_id
name = "Allow myself & Olena by OTP via email"
decision = "allow"
session_duration = "168h" # 7d
include = [
{
email_list = cloudflare_zero_trust_list.family_emails