From 7797f026f3a4d61584d599495b7266cbcfa28c85 Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Wed, 23 Dec 2020 16:16:26 -0600 Subject: [PATCH] update bytes.zone to embed the goatcounter counter --- gitea/configuration.nix | 2 +- nix/sources.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gitea/configuration.nix b/gitea/configuration.nix index f892568..8cc3065 100644 --- a/gitea/configuration.nix +++ b/gitea/configuration.nix @@ -205,7 +205,7 @@ in { extraConfig = '' add_header Strict-Transport-Security max-age=15768000 always; - add_header Content-Security-Policy "default-src 'none'; child-src https:; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:" always; + add_header Content-Security-Policy "default-src 'none'; child-src https:; script-src 'self' https://stats.bytes.zone; style-src 'self' 'unsafe-inline'; img-src 'self' data: https://stats.bytes.zone/count" always; add_header X-Frame-Options "SAMEORIGIN" always; add_header X-Content-Type-Options "nosniff" always; add_header X-XSS-Protection "1; mode=block" always; diff --git a/nix/sources.json b/nix/sources.json index 65903ae..404bcf5 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -8,7 +8,7 @@ "bytes.zone": { "branch": "main", "repo": "ssh://git@git.bytes.zone:2222/bytes.zone/bytes.zone.git", - "rev": "bce167d2a8ad19273776b50f40ad33fe3f30fabd", + "rev": "155ab9a72fdd8999321a6edd18334b97971203c7", "type": "git" }, "comma": {