Update nginx vhosts to serve grafana LXC

This commit is contained in:
Théo Barnouin 2024-10-23 15:52:46 +02:00
parent fa1821798d
commit 3c56e923a4
2 changed files with 20 additions and 38 deletions

View file

@ -59,43 +59,6 @@
inherit system;
};
};
nixmox-perseverance = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./hosts/nixmox-perseverance/configuration.nix
{
networking.hostName = "nixmox-perseverance";
}
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.${username} = import ./hosts/nixmox-perseverance/home.nix;
}
microvm.nixosModules.host
{
microvm = {
autostart = [
"netbox"
];
vms = {
netbox = {
flake = self;
updateFlake = "git+file:///etc/nixos";
};
};
};
}
];
specialArgs = {
inherit inputs;
inherit username;
inherit proxy_host;
inherit pgsql_host;
inherit system;
};
};
nginx = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
@ -166,6 +129,25 @@
}
];
};
grafana-lxc = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
agenix.nixosModules.default
"${inputs.nixpkgs}/nixos/modules/virtualisation/proxmox-lxc.nix"
"${inputs.self}/services"
{
services.vm_grafana = {
enable = true;
vm_ip = "192.168.1.27";
proxy_ip = proxy_host;
pgsql_ip = pgsql_host;
};
services.ct = {
enable = true;
};
}
];
};
grafana = nixpkgs.lib.nixosSystem {
inherit system;
modules = [

View file

@ -87,7 +87,7 @@ in
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://192.168.1.20:3000";
proxyPass = "http://192.168.1.27:3000";
proxyWebsockets = true;
recommendedProxySettings = true;
};