summary refs log tree commit diff
path: root/nixos/modules/services/web-servers
diff options
context:
space:
mode:
authorHamish <hamhut1066@users.noreply.github.com>2018-02-09 12:37:29 +0300
committerJörg Thalheim <Mic92@users.noreply.github.com>2018-02-09 09:37:29 +0000
commit3a2b0cdf5c9751fce19023f4e3948e19ac795b81 (patch)
tree9a3f0d4ea19f16d768a69ccb938c13c8dc6fb7d9 /nixos/modules/services/web-servers
parentabfac62df5c9424acab73bec7d02a886bd50915b (diff)
downloadnixlib-3a2b0cdf5c9751fce19023f4e3948e19ac795b81.tar
nixlib-3a2b0cdf5c9751fce19023f4e3948e19ac795b81.tar.gz
nixlib-3a2b0cdf5c9751fce19023f4e3948e19ac795b81.tar.bz2
nixlib-3a2b0cdf5c9751fce19023f4e3948e19ac795b81.tar.lz
nixlib-3a2b0cdf5c9751fce19023f4e3948e19ac795b81.tar.xz
nixlib-3a2b0cdf5c9751fce19023f4e3948e19ac795b81.tar.zst
nixlib-3a2b0cdf5c9751fce19023f4e3948e19ac795b81.zip
nixos/traefik: make group configurable for docker support (#34749)
Diffstat (limited to 'nixos/modules/services/web-servers')
-rw-r--r--nixos/modules/services/web-servers/traefik.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/nixos/modules/services/web-servers/traefik.nix b/nixos/modules/services/web-servers/traefik.nix
index 4ede4fc20967..b6c7fef21fb2 100644
--- a/nixos/modules/services/web-servers/traefik.nix
+++ b/nixos/modules/services/web-servers/traefik.nix
@@ -64,6 +64,16 @@ in {
       '';
     };
 
+    group = mkOption {
+      default = "traefik";
+      type = types.string;
+      example = "docker";
+      description = ''
+        Set the group that traefik runs under.
+        For the docker backend this needs to be set to <literal>docker</literal> instead.
+      '';
+    };
+
     package = mkOption {
       default = pkgs.traefik;
       defaultText = "pkgs.traefik";
@@ -87,7 +97,7 @@ in {
         ];
         Type = "simple";
         User = "traefik";
-        Group = "traefik";
+        Group = cfg.group;
         Restart = "on-failure";
         StartLimitInterval = 86400;
         StartLimitBurst = 5;