nix-config/modules/mealie/default.nix

23 lines
475 B
Nix
Raw Normal View History

{ config, pkgs, ... }:
2024-11-10 17:54:08 -05:00
let
domain = "mealie.tdback.net";
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
reverse_proxy http://localhost:${config.services.mealie.port}
2024-11-10 17:54:08 -05:00
'';
}