From 824db7ca03d3d6b026bfbb4e74aa5d0d3205a3c1 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 1 Oct 2018 22:41:04 +0200 Subject: Allow cross-origin requests to static.kummerlaender.eu --- host/software/server/website.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'host') diff --git a/host/software/server/website.nix b/host/software/server/website.nix index 2e2b9e3..8f5662f 100644 --- a/host/software/server/website.nix +++ b/host/software/server/website.nix @@ -23,6 +23,7 @@ proxy = target: { proxyPass = target; extraConfig = '' + expires off; proxy_set_header Host code.kummerlaender.eu; ''; }; @@ -30,7 +31,11 @@ "kummerlaender.eu" = website "overview"; "blog.kummerlaender.eu" = website "blog"; "tree.kummerlaender.eu" = website "tree"; - "static.kummerlaender.eu" = website "static"; + "static.kummerlaender.eu" = website "static" // { + extraConfig = '' + add_header Access-Control-Allow-Origin *; + ''; + }; "pkgs.kummerlaender.eu" = default { "/".root = "/home/public/pkgs/result"; -- cgit v1.2.3