diff options
author | Adrian Kummerlaender | 2018-10-01 22:41:04 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2018-10-01 22:41:04 +0200 |
commit | 824db7ca03d3d6b026bfbb4e74aa5d0d3205a3c1 (patch) | |
tree | 1c75a60292185f965c52dd920ac0260a19a8595e | |
parent | 55daf8a35f4f1761f5f4c4ebe4a6dcb4b0ace514 (diff) | |
download | nixos_system-824db7ca03d3d6b026bfbb4e74aa5d0d3205a3c1.tar nixos_system-824db7ca03d3d6b026bfbb4e74aa5d0d3205a3c1.tar.gz nixos_system-824db7ca03d3d6b026bfbb4e74aa5d0d3205a3c1.tar.bz2 nixos_system-824db7ca03d3d6b026bfbb4e74aa5d0d3205a3c1.tar.lz nixos_system-824db7ca03d3d6b026bfbb4e74aa5d0d3205a3c1.tar.xz nixos_system-824db7ca03d3d6b026bfbb4e74aa5d0d3205a3c1.tar.zst nixos_system-824db7ca03d3d6b026bfbb4e74aa5d0d3205a3c1.zip |
Allow cross-origin requests to static.kummerlaender.eu
-rw-r--r-- | host/software/server/website.nix | 7 |
1 files changed, 6 insertions, 1 deletions
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"; |