Unverified Commit 3191e450 authored by Fernando Rodrigues's avatar Fernando Rodrigues
Browse files

nixos/pangolin: update module to the new Traefik module interface

parent 9c757ba6
Loading
Loading
Loading
Loading
+7 −10
Original line number Diff line number Diff line
@@ -201,14 +201,11 @@ in
          isSystemUser = true;
        };
      };
      groups.fossorial = {
        members = [
      groups.fossorial.members = [
        "pangolin"
        "gerbil"
          "traefik"
      ];
    };
    };
    # order is as follows
    # "pangolin.service"
    # "gerbil.service"
@@ -431,9 +428,9 @@ in

    services.traefik = {
      enable = true;
      group = "fossorial";
      supplementaryGroups = [ "fossorial" ];
      dataDir = "${cfg.dataDir}/config/traefik";
      staticConfigOptions = {
      static.settings = {
        providers.http = {
          endpoint = "http://localhost:${toString finalSettings.server.internal_port}/api/v1/traefik-config";
          pollInterval = "5s";
@@ -471,7 +468,7 @@ in
          };
        };
      };
      dynamicConfigOptions = {
      dynamic.files."pangolin".settings = {
        http = {
          middlewares.redirect-to-https.redirectScheme.scheme = "https";
          routers = {