From c4b7c68170bd259c203a7cd32cdc7fff549d4a48 Mon Sep 17 00:00:00 2001 From: polsevev Date: Sat, 29 Mar 2025 21:12:00 +0100 Subject: [PATCH] Add nginx config for stortissvatnet.no --- nixos/hephaestus/nginx.nix | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/nixos/hephaestus/nginx.nix b/nixos/hephaestus/nginx.nix index f5e5076..4f38034 100644 --- a/nixos/hephaestus/nginx.nix +++ b/nixos/hephaestus/nginx.nix @@ -1,12 +1,20 @@ { config, pkgs, ... }: { environment.systemPackages = with pkgs; [ nginx ]; services.nginx.enable = true; - services.nginx.virtualHosts."polsevev.dev" = { - useACMEHost = "polsevev.dev"; - forceSSL = true; - root = "/var/www/polsevev/dist"; + services.nginx.virtualHosts = { + "polsevev.dev" = { + useACMEHost = "polsevev.dev"; + forceSSL = true; + root = "/var/www/polsevev/dist"; + }; + "stortissvatnet.no" = { + useACMEHost = "stortissvatnet.no"; + forceSSL = true; + root = "/var/www/stortissvatnet"; + }; }; + security.acme = { acceptTerms = true; defaults.email = "rolf.martin@glomsrud.no"; @@ -17,6 +25,12 @@ environmentFile = /cloudflare.env; group = config.services.nginx.group; }; + "stortissvatnet.no" = { + domain = "stortissvatnet.no"; + dnsProvider = "cloudflare"; + environmentFile = /cloudflare.env; + group = config.services.nginx.group; + }; }; };