diff options
| author | Alexander Kassouni <alex@kassouni.net> | 2026-11-03 00:10:54 -0800 |
|---|---|---|
| committer | Alexander Kassouni <alex@kassouni.net> | 2026-11-03 00:10:54 -0800 |
| commit | 3571e62d04e92542bdcaac83d340eebee14ea902 (patch) | |
| tree | d785dcc06c9a7482bac8c7510ef3bcb2de4a878a | |
| parent | d8a10263103cde311b58bb041464e15ecbc86de5 (diff) | |
setup static site
| -rw-r--r-- | nix/web.nix | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/nix/web.nix b/nix/web.nix index 3f85d84..8ccad04 100644 --- a/nix/web.nix +++ b/nix/web.nix @@ -11,14 +11,9 @@ in recommendedTlsSettings = true; virtualHosts = { - # dont serve kassouni.net traffic to other subdomains - "_" = { - default = true; - rejectSSL = true; - locations."/".return = 444; - }; - ${domain} = { + default = true; + serverAliases = [ "www.${domain}" ]; forceSSL = true; enableACME = true; root = inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.website; |