Skip to content

Commit 183e8f2

Browse files
authored
Add TrafficAnalytics import to main domain block (#148)
Analytics requests go to the main domain (separationofconcerns.dev), not the admin domain. The TrafficAnalytics snippet must be imported in the main domain block to proxy /.ghost/analytics/* to traffic-analytics.
1 parent 7fa3f67 commit 183e8f2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • opentofu/modules/vultr/instance/userdata/ghost-compose/caddy

opentofu/modules/vultr/instance/userdata/ghost-compose/caddy/Caddyfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
tls /certs/cloudflare-origin.crt /certs/cloudflare-origin.key
1010

11+
# Traffic Analytics service (proxies /.ghost/analytics/* to traffic-analytics container)
12+
import snippets/TrafficAnalytics
13+
1114
# Health check authentication via token header
1215
# Token is sourced from .env.secrets via Docker Compose env_file
1316
@health_check {

0 commit comments

Comments
 (0)