diff --git a/modules/website.nix b/modules/website.nix index 2b87302..0b810fb 100644 --- a/modules/website.nix +++ b/modules/website.nix @@ -12,15 +12,16 @@ with lib; "/" = { proxyPass = "http://localhost:4242"; proxyWebsockets = true; - extraConfig = '' - add_header X-Frame-Options "SAMEORIGIN"; - add_header Access-Control-Allow-Origin * - add_header Access-Control-Allow-Origin https://api.tfcconnection.org - ''; }; "tfcconnection.com".return = "301 http://tfcconnection.org$request_uri"; "www.tfcconnection.com".return = "301 http://tfcconnection.org$request_uri"; "www.tfcconnection.org".return = "301 http://tfcconnection.org$request_uri"; + + extraConfig = '' + add_header X-Frame-Options "SAMEORIGIN"; + add_header Access-Control-Allow-Origin * + add_header Access-Control-Allow-Origin https://api.tfcconnection.org + ''; }; }; # systemd.services = {