nix-config/modules/mealie/default.nix

23 lines
498 B
Nix
Raw Normal View History

{ config, pkgs, ... }:
2024-11-10 17:54:08 -05:00
let
2024-11-26 21:43:36 -05:00
domain = "toasted.brownbread.net";
2024-11-10 17:54:08 -05:00
in
{
services.mealie = {
enable = true;
package = pkgs.unstable.mealie;
2024-11-10 17:54:08 -05:00
settings = {
BASE_URL = domain;
DB_ENGINE = "sqlite";
2024-11-10 17:54:08 -05:00
ALLOW_SIGNUP = "false";
SECURITY_MAX_LOGIN_ATTEMPTS = 3;
TZ = "America/Detroit";
2024-11-10 17:54:08 -05:00
};
};
services.caddy.virtualHosts.${domain}.extraConfig = ''
2024-11-10 17:54:08 -05:00
encode zstd gzip
2024-11-25 20:16:40 -05:00
reverse_proxy http://localhost:${builtins.toString config.services.mealie.port}
2024-11-10 17:54:08 -05:00
'';
}