From 8cd67b9c46b5701321711797ee1b52afe07a2e71 Mon Sep 17 00:00:00 2001 From: muon Date: Thu, 9 Jan 2025 21:50:25 +0000 Subject: [PATCH] Add hosts --- flake.nix | 22 +++++++++++----------- hosts/mups/configuration.nix | 22 +++++++++++++++++----- 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/flake.nix b/flake.nix index 9c0a88f..7aa9a8f 100644 --- a/flake.nix +++ b/flake.nix @@ -85,18 +85,18 @@ ]; }; - "muho" = { name, nodes, ... }: { - deployment.targetHost = "muho"; # SSH IP - deployment.targetUser = "muon"; # SSH username + # "muho" = { name, nodes, ... }: { + # deployment.targetHost = "muho"; # SSH IP + # deployment.targetUser = "muon"; # SSH username - # modules - imports = [ - ./hosts/muho/configuration.nix - ./modules/nixos - inputs.home-manager.nixosModules.default - inputs.stylix.nixosModules.stylix - ]; - }; + # # modules + # imports = [ + # ./hosts/muho/configuration.nix + # ./modules/nixos + # inputs.home-manager.nixosModules.default + # inputs.stylix.nixosModules.stylix + # ]; + # }; }; }; } diff --git a/hosts/mups/configuration.nix b/hosts/mups/configuration.nix index 4011e83..7ae30c3 100644 --- a/hosts/mups/configuration.nix +++ b/hosts/mups/configuration.nix @@ -48,11 +48,23 @@ in { root = "/var/www"; configuration = { general = { directory-listing = true; }; }; }; - services.nginx.virtualHosts."muon.host" = { - enableACME = true; - forceSSL = true; - default = true; - locations."/" = { proxyPass = "http://localhost:8008"; }; + services.nginx.virtualHosts = { + "muon.host" = { + enableACME = true; + forceSSL = true; + default = true; + locations."/" = { proxyPass = "http://localhost:8008"; }; + }; + "tetterodesportcomplex.nl" = { + enableACME = true; + forceSSL = true; + locations."/" = { proxyPass = "http://10.0.0.3:5001"; }; + }; + "www.tetterodesportcomplex.nl" = { + enableACME = true; + forceSSL = true; + locations."/" = { proxyPass = "http://10.0.0.3:5001"; }; + }; }; # Enable the OpenSSH daemon.