From 722b964bc904a995dd420e95c76a8b8b3ac20c5d Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 13 Feb 2022 16:43:09 +0000 Subject: [PATCH] Add Google Search Console integration to Plausible --- .../roles/plausible/files/docker-compose.yml | 2 + ansible/roles/plausible/vars/main.yml | 2 + ansible/roles/plausible/vars/vault.yml | 40 ++++++++++++------- terraform/theorangeone.net.tf | 10 ++++- 4 files changed, 38 insertions(+), 16 deletions(-) diff --git a/ansible/roles/plausible/files/docker-compose.yml b/ansible/roles/plausible/files/docker-compose.yml index e992103..0dee2bf 100644 --- a/ansible/roles/plausible/files/docker-compose.yml +++ b/ansible/roles/plausible/files/docker-compose.yml @@ -32,6 +32,8 @@ services: - DISABLE_SUBSCRIPTION=true - CLICKHOUSE_DATABASE_URL=http://clickhouse:8123/plausible - BASE_URL=https://elbisualp.theorangeone.net + - GOOGLE_CLIENT_ID={{ plausible_google_client_id }} + - GOOGLE_CLIENT_SECRET={{ plausible_google_client_secret }} clickhouse: image: clickhouse/clickhouse-server:21.12-alpine diff --git a/ansible/roles/plausible/vars/main.yml b/ansible/roles/plausible/vars/main.yml index aff74af..34c080a 100644 --- a/ansible/roles/plausible/vars/main.yml +++ b/ansible/roles/plausible/vars/main.yml @@ -1,2 +1,4 @@ plausible_secret_key: "{{ vault_plausible_secret_key }}" plausible_signing_salt: "{{ vault_plausible_signing_salt }}" +plausible_google_client_id: "{{ vault_plausible_google_client_id }}" +plausible_google_client_secret: "{{ vault_plausible_google_client_secret }}" diff --git a/ansible/roles/plausible/vars/vault.yml b/ansible/roles/plausible/vars/vault.yml index caf934d..6f76661 100644 --- a/ansible/roles/plausible/vars/vault.yml +++ b/ansible/roles/plausible/vars/vault.yml @@ -1,16 +1,26 @@ $ANSIBLE_VAULT;1.1;AES256 -31656261333332323730306162626265323432313264663230303264623662353065393362616635 -6131376236383233646366663264653663363930653937650a373264623632633130626330343264 -66633064303765323666323162376262636461626563626134613230326635616636386463393931 -6633373864666139310a636137346161333738396335346239623334663061353231326337343436 -63313338336535356538316132393066343965646466633864666263356139363934316161363062 -65646236663464626335636661623063626166633363336237303738393739346232623132386432 -39663561313139636261323238373163333432643237333334393364323831636266636132316261 -32396235663364353439386430653765663063343761323832323332383538323934656131373034 -31356665623632646163626361353462396531323263346162626236396333396564306631613766 -31313136613938383661643263373064366566616432306263643235626461653465613134623738 -62323630613533316138363837303366373835653661626332656638646265356538383535636436 -64356332363662356630613839373039323463306362313937313364613736363832323830656163 -64356537363935613362386436656434333338313565613464346534616634653532343566643739 -33303037636633623163363465663630366333323464666231333432643133646636643130383034 -326237356631656161376530303139633032 +31656661613230326431396337643933383263633639376230636236333031653566306465366438 +3131663665396638333364613661333435613138623736640a636234363832343430353262653464 +64653131376639306163343235633565393635393231643230396463363563646265356535313839 +3931313064666630640a613433616261343033613863633865393266363438373163343362356235 +38306438623830613364333363646665643437656238323262653066336437386534386563313166 +35653261636534366230303363353263616137306230303832646630353439346561326464323330 +37386366306332393734623734316231613631626364393839653830353636323034633662646535 +31306632643962353766333934303538326663386436323466393363656266666336336361663339 +31323834373563343130353732666334356137356432636363633239333130393662356166643332 +32393837313033333934373362656466633863303732353765313931663330613532613035303466 +63646265333730363561386538623663353735323139333465363761316362326464396330383062 +61366665306166386337323630613861343465363339343531613934636139643136336132613038 +32396235363531336562306262633035313035653432376466303665326331666365393465656631 +38373238313637636434313135353862366264316138366261613634326161326437643238383730 +35313039333462626162343733363031386136396139386434366334366237353465366363333936 +34316662623864383539636166616432346533346338633865306565386638353666333733616164 +65316364633534303231313163623236333662636137313564653537396630306532663830323033 +33303232303037613433316538303364356435366161613662303639323361363561633964313434 +39343139613139396334646538313364343038376464316161346431646438313636356239356135 +32393937623435306335636133643365343537656463343232323164323333376264353935306230 +66313137663739373834333235653433313330616632346664616134343532613063616435343832 +38396536626234353437613631356434393331373366633764326564346366316365383363363932 +61646563663565323737393536366331646635326239613565316432376337363430396236303837 +37623337366261636661316563633661333065643164363265626132633036343033306161386364 +6538 diff --git a/terraform/theorangeone.net.tf b/terraform/theorangeone.net.tf index 3463679..aded068 100644 --- a/terraform/theorangeone.net.tf +++ b/terraform/theorangeone.net.tf @@ -36,7 +36,7 @@ resource "cloudflare_record" "theorangeonenet_mx2" { ttl = 1 } -resource "cloudflare_record" "theorangeonenet_txt" { +resource "cloudflare_record" "theorangeonenet_spf" { zone_id = cloudflare_zone.theorangeonenet.id name = "@" value = "v=spf1 include:spf.messagingengine.com ~all" @@ -188,3 +188,11 @@ resource "cloudflare_record" "theorangeonenet_status" { type = "A" ttl = 1 } + +resource "cloudflare_record" "theorangeonenet_google_site_verification" { + zone_id = cloudflare_zone.theorangeonenet.id + name = "@" + value = "google-site-verification=IXY4iSBN_vOcM3cp_f-BgVvEI_shz1GzXuY_8dqY61o" + type = "TXT" + ttl = 1 +}