Skip to content

Commit 77c443c

Browse files
committed
infra: add github verification TXT record
1 parent ccb5b26 commit 77c443c

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

modules/roles/matrix-homeserver.nix

+1-11
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,8 @@ in {
4343
private_key = "$CREDENTIALS_DIRECTORY/private_key";
4444
};
4545

46-
client_api = {
47-
registration_shared_secret = "$REGISTRATION_SHARED_SECRET";
48-
49-
# registration_disabled = false;
50-
# recaptcha_public_key = "PUBLIC_KEY_HERE"
51-
# recaptcha_private_key = "PRIVATE_KEY_HERE"
52-
# enable_registration_captcha = true
53-
# captcha_bypass_secret = ""
54-
# recaptcha_siteverify_api = "https://www.google.com/recaptcha/api/siteverify"
55-
};
56-
5746
sync_api.search.enabled = true;
47+
client_api.registration_shared_secret = "$REGISTRATION_SHARED_SECRET";
5848
};
5949
};
6050

terraform/cloudflare.tf

+21
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ resource "cloudflare_record" "golang_tunnel_cname" {
3535
proxied = true
3636
}
3737

38+
resource "cloudflare_record" "golang_github_verification" {
39+
zone_id = local.golang.zone_id
40+
name = "_gh-GoUAE-o"
41+
content = "16511f1c86"
42+
type = "TXT"
43+
}
44+
3845
resource "cloudflare_record" "golang_mx_1" {
3946
zone_id = local.golang.zone_id
4047
name = "@"
@@ -83,3 +90,17 @@ resource "cloudflare_email_routing_rule" "cm-golang-ae" {
8390
value = ["[email protected]"]
8491
}
8592
}
93+
94+
# resource "cloudflare_pages_project" "golang_ae_site" {
95+
# account_id = local.account_id
96+
# name = "this-is-my-project-01"
97+
# production_branch = "main"
98+
# source = [{
99+
# type = "github"
100+
# config = {
101+
# owner = "gouae"
102+
# repo_name = "golang.ae"
103+
# production_branch = "main"
104+
# }
105+
# }]
106+
# }

0 commit comments

Comments
 (0)