From a3e584ea5ab852312110a54bd26e08d32514c321 Mon Sep 17 00:00:00 2001 From: revol-xut Date: Mon, 26 Sep 2022 00:55:23 +0200 Subject: [PATCH] add cors allow all --- flake.nix | 7 +++++++ hosts/traffic-stop-box/radio-config.nix | 1 + modules/data-hoarder/website.nix | 1 + 3 files changed, 9 insertions(+) diff --git a/flake.nix b/flake.nix index 331d767..408cdc2 100644 --- a/flake.nix +++ b/flake.nix @@ -139,6 +139,13 @@ ./hardware/dell-wyse-3040.nix ]; } + { + id = 7; + arch = "x86_64-linux"; + extraModules = [ + ./hardware/dell-wyse-3040.nix + ]; + } ]; # attribute set of all traffic stop boxes diff --git a/hosts/traffic-stop-box/radio-config.nix b/hosts/traffic-stop-box/radio-config.nix index c0a7d5d..c9203c5 100644 --- a/hosts/traffic-stop-box/radio-config.nix +++ b/hosts/traffic-stop-box/radio-config.nix @@ -9,6 +9,7 @@ let { frequency = 170795000; offset = 19400; device = ""; RF = 14; IF = 32; BB = 42; } # dresden unused { frequency = 170790000; offset = 20000; device = ""; RF = 14; IF = 32; BB = 42; } # dresden Wundstr. 9 { frequency = 150827500; offset = 19550; device = ""; RF = 14; IF = 32; BB = 42; } # warpzone münster + { frequency = 150827500; offset = 19550; device = ""; RF = 14; IF = 32; BB = 42; } # drehturm aachen ]; receiver_config = lib.elemAt receiver_configs config.dump-dvb.systemNumber; diff --git a/modules/data-hoarder/website.nix b/modules/data-hoarder/website.nix index 81b9956..f4ebfe6 100644 --- a/modules/data-hoarder/website.nix +++ b/modules/data-hoarder/website.nix @@ -9,6 +9,7 @@ "/" = { extraConfig = '' return 307 https://docs.dvb.solutions; + add_header Access-Control-Allow-Origin *; ''; }; };