linde: remove searchix goatcounter integration
1 file changed, 4 insertions(+), 54 deletions(-)
changed files
M system/hosts/linde.nix → system/hosts/linde.nix
@@ -1049,39 +1049,10 @@ environment = { GOMEMLIMIT = "2000MiB"; }; settings = { - web = - let - baseURL = "https://searchix.ovh"; - in - { - inherit baseURL; - searchTimeout = "2s"; - contentSecurityPolicy = - let - self = "'self'"; - in - { - script-src = [ - (baseURL + "/static/") - "'unsafe-inline'" - "https://searchix.stats.${domain}" - ]; - img-src = [ - self - "https://searchix.stats.${domain}" - ]; - connect-src = [ - self - "https://searchix.stats.${domain}/count" - ]; - }; - extraHeadHTML = '' - <script data-goatcounter="https://searchix.stats.${domain}/count" - async src="//searchix.stats.${domain}/count.v4.js" - crossorigin="anonymous" - integrity="sha384-nRw6qfbWyJha9LhsOtSb2YJDyZdKvvCFh0fJYlkquSFjUxp9FVNugbfy8q1jdxI+"></script> - ''; - }; + web = { + baseURL = "https://searchix.ovh"; + searchTimeout = "2s"; + }; importer.timeout = "2h"; importer.sources = {@@ -1302,27 +1273,6 @@ settings = { web = { baseURL = "https://stable.searchix.ovh"; port = 51314; - contentSecurityPolicy = { - script-src = [ - (config.services.searchix.settings.web.baseURL + "/static/") - "'unsafe-inline'" - "https://searchix-stable.stats.${domain}" - ]; - img-src = [ - "'self'" - "https://searchix-stable.stats.${domain}" - ]; - connect-src = [ - "'self'" - "https://searchix-stable.stats.${domain}/count" - ]; - }; - extraHeadHTML = '' - <script data-goatcounter="https://searchix-stable.stats.${domain}/count" - async src="//searchix-stable.stats.${domain}/count.v4.js" - crossorigin="anonymous" - integrity="sha384-nRw6qfbWyJha9LhsOtSb2YJDyZdKvvCFh0fJYlkquSFjUxp9FVNugbfy8q1jdxI+"></script> - ''; }; importer = {