nixos/traefik: make group configurable for docker support (#34749)
This commit is contained in:
parent
abfac62df5
commit
3a2b0cdf5c
@ -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 {
|
package = mkOption {
|
||||||
default = pkgs.traefik;
|
default = pkgs.traefik;
|
||||||
defaultText = "pkgs.traefik";
|
defaultText = "pkgs.traefik";
|
||||||
@ -87,7 +97,7 @@ in {
|
|||||||
];
|
];
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
User = "traefik";
|
User = "traefik";
|
||||||
Group = "traefik";
|
Group = cfg.group;
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
StartLimitInterval = 86400;
|
StartLimitInterval = 86400;
|
||||||
StartLimitBurst = 5;
|
StartLimitBurst = 5;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user