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"