2024-11-25 20:14:51 -05:00
|
|
|
{ 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;
|
2024-11-25 20:14:51 -05:00
|
|
|
package = pkgs.unstable.mealie;
|
2024-11-10 17:54:08 -05:00
|
|
|
settings = {
|
|
|
|
BASE_URL = domain;
|
2024-11-25 20:14:51 -05:00
|
|
|
DB_ENGINE = "sqlite";
|
2024-11-10 17:54:08 -05:00
|
|
|
ALLOW_SIGNUP = "false";
|
|
|
|
SECURITY_MAX_LOGIN_ATTEMPTS = 3;
|
2024-11-25 20:14:51 -05:00
|
|
|
TZ = "America/Detroit";
|
2024-11-10 17:54:08 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-11-23 15:47:04 -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
|
|
|
'';
|
|
|
|
}
|