diff --git a/deploy.sh b/deploy.sh index bdea971..3ec1994 100644 --- a/deploy.sh +++ b/deploy.sh @@ -378,10 +378,10 @@ services_generation() { cp templates/nix-config/podman/${service}.nix final-nix-config/etc/nixos/podman/${service}.nix PODMAN_NETWORKS+=" \${pkgs.podman}/bin/podman network create --driver=bridge --subnet=172.16.${j}.0/24 --ip-range=172.16.${j}.0/24 --gateway=172.16.${j}.254 ${service}_backend"$'\n' PODMAN_NETWORKS+=" \${pkgs.podman}/bin/podman network create --driver=bridge --subnet=172.16.${j}0.0/24 --ip-range=172.16.${j}0.0/24 --gateway=172.16.${j}0.254 ${service}_frontend"$'\n' - TRAEFIK_NETWORKS+=" ${service}_frontend:"$'\n' - TRAEFIK_NETWORKS+=" ipv4_address: 172.16.${j}0.253"$'\n' - TRAEFIK_REF_NETWORKS+=" ${service}_frontend:"$'\n' - TRAEFIK_REF_NETWORKS+=" external: true"$'\n' + TRAEFIK_NETWORKS+=" ${service}_frontend:"$'\n' + TRAEFIK_NETWORKS+=" ipv4_address: 172.16.${j}0.253"$'\n' + TRAEFIK_REF_NETWORKS+=" ${service}_frontend:"$'\n' + TRAEFIK_REF_NETWORKS+=" external: true"$'\n' fi if [[ "${service}" == "frigate" ]]; then local FRIGATE_DEVICES_BLOCK="" diff --git a/templates/nix-config/podman/traefik.nix b/templates/nix-config/podman/traefik.nix index 44c6c31..d89826e 100644 --- a/templates/nix-config/podman/traefik.nix +++ b/templates/nix-config/podman/traefik.nix @@ -18,7 +18,7 @@ in image: docker.io/library/traefik:latest container_name: traefik networks: -TRAEFIK_NETWORKS + TRAEFIK_NETWORKS ports: - 8080:80 - 8443:443 @@ -39,7 +39,7 @@ TRAEFIK_NETWORKS - traefik.http.routers.traefik-https.tls.certresolver=cloudflare restart: always networks: -TRAEFIK_REF_NETWORKS + TRAEFIK_REF_NETWORKS ''; systemd.services.traefik = {