aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kassouni <alex@kassouni.net>2026-11-03 00:10:54 -0800
committerAlexander Kassouni <alex@kassouni.net>2026-11-03 00:10:54 -0800
commit3571e62d04e92542bdcaac83d340eebee14ea902 (patch)
treed785dcc06c9a7482bac8c7510ef3bcb2de4a878a
parentd8a10263103cde311b58bb041464e15ecbc86de5 (diff)
setup static site
-rw-r--r--nix/web.nix9
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;