all repos — nixfiles @ d8164a05ae6c1e616bfc8dcee89f382d1804f3cb

System and user configuration, managed by nix and home-manager

linde: remove searchix goatcounter integration

Alan Pearce
commit

d8164a05ae6c1e616bfc8dcee89f382d1804f3cb

parent

68174b77bb3e5387c78d5273b695d507f5f95941

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 = {