From a81e2793f8e880e9e2a61f3783fe36badacadd0b Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 25 Nov 2020 11:11:29 +0000 Subject: [PATCH] Add a secondary domain for plausible less likely to match blockers Might change things, might not. But it's a fun experiment to try anyway. Using a custom middleware to override the path due to https://github.com/plausible/analytics/pull/340 --- ansible/roles/plausible/files/docker-compose.yml | 6 ++++++ terraform/theorangeone.net.tf | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/ansible/roles/plausible/files/docker-compose.yml b/ansible/roles/plausible/files/docker-compose.yml index b050d20..ec98196 100644 --- a/ansible/roles/plausible/files/docker-compose.yml +++ b/ansible/roles/plausible/files/docker-compose.yml @@ -17,6 +17,12 @@ services: - traefik.http.services.plausible-plausible.loadbalancer.server.port=8000 # https://github.com/plausible/analytics/pull/237 - traefik.http.routers.plausible.tls.certresolver=le - traefik.http.routers.plausible.middlewares=compress@file + + - traefik.http.routers.plausible-bare.rule=Host(`elbisualp.theorangeone.net`) + - traefik.http.routers.plausible-bare.tls.certresolver=le + - traefik.http.routers.plausible-bare.service=plausible-plausible + - traefik.http.middlewares.plausible-bare.replacepath.path=/js/plausible.js # https://github.com/plausible/analytics/pull/340 + - traefik.http.routers.plausible-bare.middlewares=compress@file,plausible-bare environment: - SECRET_KEY_BASE={{ secret_key }} - SIGNING_SALT={{ signing_salt }} diff --git a/terraform/theorangeone.net.tf b/terraform/theorangeone.net.tf index 58da28e..7094391 100644 --- a/terraform/theorangeone.net.tf +++ b/terraform/theorangeone.net.tf @@ -141,6 +141,14 @@ resource "cloudflare_record" "theorangeonenet_plausible" { ttl = 1 } +resource "cloudflare_record" "theorangeonenet_plausible_bare" { + zone_id = cloudflare_zone.theorangeonenet.id + name = "elbisualp" + value = vultr_server.casey.main_ip + type = "A" + ttl = 1 +} + resource "cloudflare_record" "theorangeonenet_gitlab_pages" { zone_id = cloudflare_zone.theorangeonenet.id name = "pages"