diff --git a/host/corp/configuration.nix b/host/corp/configuration.nix index cd75dff..9c190ab 100644 --- a/host/corp/configuration.nix +++ b/host/corp/configuration.nix @@ -25,6 +25,7 @@ glitchtip.enable = true; element-web.enable = true; librechat.enable = true; + static-websites.enable = true; synapse.enable = true; timecardbot.enable = true; vikunja.enable = true; diff --git a/modules/system/default.nix b/modules/system/default.nix index 6de3c96..112a4c6 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -16,6 +16,7 @@ ./openssh.nix ./podman.nix ./sillytavern.nix + ./static-websites.nix ./sudo.nix ./synapse.nix ./timecardbot.nix diff --git a/modules/system/static-websites.nix b/modules/system/static-websites.nix index d2d0f80..e9ee6f4 100644 --- a/modules/system/static-websites.nix +++ b/modules/system/static-websites.nix @@ -4,14 +4,27 @@ with lib; options.myModules.static-websites.enable = mkEnableOption "custom static-websites configuration"; config = mkIf config.myModules.static-websites.enable { - services.caddy.virtualHosts."blog.tealok.tech".extraConfig = '' - root * /var/www/blog.tealok.tech - file_server - ''; - users.groups.www-data = {}; - users.users.www-data = { - group = "www-data"; - isSystemUser = true; + services.caddy.virtualHosts = { + "blog.tealok.tech".extraConfig = '' + root * /var/www/html/blog.tealok.tech + file_server + ''; + "gleipnir.technology".extraConfig = '' + root * /var/www/html/gleipnir.technology + file_server + ''; + "tealok.tech".extraConfig = '' + root * /var/www/html/tealok.tech + file_server + ''; + "www.gleipnir.technology".extraConfig = '' + root * /var/www/html/gleipnir.technology + file_server + ''; + "www.tealok.tech".extraConfig = '' + root * /var/www/html/tealok.tech + file_server + ''; }; }; }