From 483833a678d9e3638b2b413aeba7c6ce124169dc Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 25 Jun 2024 08:36:55 +0100 Subject: [PATCH] Remove Plausible domain hack --- ansible/roles/plausible/files/docker-compose.yml | 2 +- ansible/roles/plausible/tasks/main.yml | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/ansible/roles/plausible/files/docker-compose.yml b/ansible/roles/plausible/files/docker-compose.yml index d677ad3..afb0b3a 100644 --- a/ansible/roles/plausible/files/docker-compose.yml +++ b/ansible/roles/plausible/files/docker-compose.yml @@ -19,7 +19,7 @@ services: - DISABLE_REGISTRATION=true - DISABLE_SUBSCRIPTION=true - CLICKHOUSE_DATABASE_URL=http://clickhouse:8123/plausible - - BASE_URL=https://elbisualp.theorangeone.net + - BASE_URL=https://plausible.theorangeone.net - GOOGLE_CLIENT_ID={{ vault_plausible_google_client_id }} - GOOGLE_CLIENT_SECRET={{ vault_plausible_google_client_secret }} - RELEASE_DISTRIBUTION=none diff --git a/ansible/roles/plausible/tasks/main.yml b/ansible/roles/plausible/tasks/main.yml index 0a85cb6..b1afd03 100644 --- a/ansible/roles/plausible/tasks/main.yml +++ b/ansible/roles/plausible/tasks/main.yml @@ -48,7 +48,3 @@ ssl_cert_path: /etc/letsencrypt/live/plausible.theorangeone.net location_extra: | rewrite ^/js/index.js$ /js/plausible.js last; - if ($host = "plausible.theorangeone.net") { - # HACK: https://github.com/plausible/analytics/discussions/4272 - rewrite ^/ https://elbisualp.theorangeone.net redirect; - }