increase mealie login session

This commit is contained in:
Noah Masur
2026-02-16 22:32:41 +00:00
parent 5fd6593a92
commit 0a4a28d06a
4 changed files with 9 additions and 6 deletions
@@ -15,6 +15,9 @@ in
port = 9099;
database.createLocally = true;
listenAddress = "127.0.0.1";
settings = {
TOKEN_TIME = 7200; # Hours for login to last (300 days)
};
};
nmasur.presets.services.caddy.routes = [
@@ -23,7 +26,7 @@ in
handle = [
{
handler = "reverse_proxy";
upstreams = [ { dial = "localhost:${builtins.toString config.services.mealie.port}"; } ];
upstreams = [ { dial = "localhost:${toString config.services.mealie.port}"; } ];
}
];
}
@@ -5,12 +5,12 @@
let
inherit (config.nmasur.settings) hostnames;
cfg = config.nmasur.presets.services.stalwart-mail;
cfg = config.nmasur.presets.services.stalwart;
in
{
options.nmasur.presets.services.stalwart-mail = {
options.nmasur.presets.services.stalwart = {
enable = lib.mkEnableOption "Stalwart mail and contacts server";
port = lib.mkOption {
type = lib.types.port;
@@ -21,7 +21,7 @@ in
config = lib.mkIf cfg.enable {
services.stalwart-mail = {
services.stalwart = {
enable = true;
settings = {
server.listener.http = {