all repos — website @ eaeb9bc26a696cc00888e4a7fbcb9dd6ab638c7a

My website

switch to self-hosted goatcounter

Alan Pearce
commit

eaeb9bc26a696cc00888e4a7fbcb9dd6ab638c7a

parent

b3ebf0776138bfb76b5304736a09c752fa0515f9

2 files changed, 5 insertions(+), 5 deletions(-)

changed files
M config.tomlconfig.toml
@@ -19,7 +19,7 @@ ]
oidc_host = "https://id.alanpearce.eu/" -goatcounter = "https://alanpearce-eu.goatcounter.com/count" +goatcounter = "https://stats.alanpearce.eu/count" [[taxonomies]] name = "tags"
@@ -40,11 +40,11 @@ "'none'",
] image-src = [ "'self'", - "https://gc.zgo.at", + "https://stats.alanpearce.eu", ] script-src = [ "'self'", - "https://gc.zgo.at", + "https://stats.alanpearce.eu", ] style-src = [ ## index.html style
@@ -56,7 +56,7 @@ frame-ancestors = [
"https://kagi.com", ] connect-src = [ - "https://alanpearce-eu.goatcounter.com/count", + "https://stats.alanpearce.eu/count", ] require-trusted-types-for = [ "'script'",
M templates/page.templtemplates/page.templ
@@ -96,7 +96,7 @@ return u.String()
} templ counter(config *config.Config, path string, title string) { - <script data-goatcounter={ config.GoatCounter.String() } async src="https://gc.zgo.at/count.v4.js" crossorigin="anonymous" integrity="sha384-nRw6qfbWyJha9LhsOtSb2YJDyZdKvvCFh0fJYlkquSFjUxp9FVNugbfy8q1jdxI+"></script> + <script data-goatcounter={ config.GoatCounter.String() } async src="https://stats.alanpearce.eu/count.v4.js" crossorigin="anonymous" integrity="sha384-nRw6qfbWyJha9LhsOtSb2YJDyZdKvvCFh0fJYlkquSFjUxp9FVNugbfy8q1jdxI+"></script> <noscript> <img src={ string(templ.URL(mkURL(config.GoatCounter, path, title))) }/> </noscript>