mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add hosts
This commit is contained in:
parent
47bf3e923d
commit
8cd67b9c46
2 changed files with 28 additions and 16 deletions
22
flake.nix
22
flake.nix
|
|
@ -85,18 +85,18 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
"muho" = { name, nodes, ... }: {
|
# "muho" = { name, nodes, ... }: {
|
||||||
deployment.targetHost = "muho"; # SSH IP
|
# deployment.targetHost = "muho"; # SSH IP
|
||||||
deployment.targetUser = "muon"; # SSH username
|
# deployment.targetUser = "muon"; # SSH username
|
||||||
|
|
||||||
# modules
|
# # modules
|
||||||
imports = [
|
# imports = [
|
||||||
./hosts/muho/configuration.nix
|
# ./hosts/muho/configuration.nix
|
||||||
./modules/nixos
|
# ./modules/nixos
|
||||||
inputs.home-manager.nixosModules.default
|
# inputs.home-manager.nixosModules.default
|
||||||
inputs.stylix.nixosModules.stylix
|
# inputs.stylix.nixosModules.stylix
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -48,12 +48,24 @@ in {
|
||||||
root = "/var/www";
|
root = "/var/www";
|
||||||
configuration = { general = { directory-listing = true; }; };
|
configuration = { general = { directory-listing = true; }; };
|
||||||
};
|
};
|
||||||
services.nginx.virtualHosts."muon.host" = {
|
services.nginx.virtualHosts = {
|
||||||
|
"muon.host" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
default = true;
|
default = true;
|
||||||
locations."/" = { proxyPass = "http://localhost:8008"; };
|
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.
|
# Enable the OpenSSH daemon.
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue