aboutsummaryrefslogtreecommitdiff
path: root/nix/web.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/web.nix')
-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;