Separete container and proxy config
This commit is contained in:
parent
84d2323250
commit
782b3ef4bf
9 changed files with 579 additions and 543 deletions
7
hosts/nixos/vps/containers.nix
Normal file
7
hosts/nixos/vps/containers.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
# Container definitions for vps host
|
||||
virtualisation.oci-containers.containers = {
|
||||
};
|
||||
}
|
||||
13
hosts/nixos/vps/proxy.nix
Normal file
13
hosts/nixos/vps/proxy.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
# Traefik dynamic configuration for vps host
|
||||
services.traefik.dynamicConfigOptions = {
|
||||
http = {
|
||||
routers = {
|
||||
};
|
||||
services = {
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -2,7 +2,11 @@
|
|||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./disk-config.nix
|
||||
./containers.nix # Host-specific container definitions
|
||||
./proxy.nix # Host-specific Traefik dynamic configuration
|
||||
../../../modules/tailscale.nix
|
||||
../../../modules/podman.nix
|
||||
../../../modules/traefik.nix
|
||||
../../../modules/borg.nix
|
||||
];
|
||||
|
||||
|
|
@ -22,7 +26,7 @@
|
|||
useDHCP = true; # VPS typically use DHCP
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 22 ]; # Only SSH by default
|
||||
allowedTCPPorts = [ 22 80 443 ]; # Only SSH by default
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue