nixos/mealie: add extraOptions to allow setting trusted proxies (#408843)

h7x4 4910b0b7 414226f6

Changed files
+13 -1
nixos
modules
services
web-apps
+13 -1
nixos/modules/services/web-apps/mealie.nix
···
};
};
+
extraOptions = lib.mkOption {
+
type = lib.types.listOf lib.types.str;
+
default = [ ];
+
example = [
+
"--log-level"
+
"debug"
+
];
+
description = ''
+
Specifies extra command line arguments to pass to mealie (Gunicorn).
+
'';
+
};
+
credentialsFile = lib.mkOption {
type = with lib.types; nullOr path;
default = null;
···
DynamicUser = true;
User = "mealie";
ExecStartPre = "${pkg}/libexec/init_db";
-
ExecStart = "${lib.getExe pkg} -b ${cfg.listenAddress}:${builtins.toString cfg.port}";
+
ExecStart = "${lib.getExe pkg} -b ${cfg.listenAddress}:${builtins.toString cfg.port} ${lib.escapeShellArgs cfg.extraOptions}";
EnvironmentFile = lib.mkIf (cfg.credentialsFile != null) cfg.credentialsFile;
StateDirectory = "mealie";
StandardOutput = "journal";