2024-11-10 17:54:08 -05:00
|
|
|
{ pkgs, ... }:
|
|
|
|
let
|
|
|
|
domain = "mealie.tdback.net";
|
|
|
|
port = 9000;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
services.mealie = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.mealie;
|
|
|
|
listenAddress = "0.0.0.0";
|
|
|
|
port = port;
|
|
|
|
settings = {
|
|
|
|
BASE_URL = domain;
|
|
|
|
TZ = "America/Detroit";
|
|
|
|
ALLOW_SIGNUP = "false";
|
|
|
|
SECURITY_MAX_LOGIN_ATTEMPTS = 3;
|
|
|
|
DB_ENGINE = "sqlite";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-11-23 15:47:04 -05:00
|
|
|
services.caddy.virtualHosts.${domain}.extraConfig = ''
|
2024-11-10 17:54:08 -05:00
|
|
|
encode zstd gzip
|
|
|
|
reverse_proxy http://localhost:${builtins.toString port}
|
|
|
|
'';
|
|
|
|
}
|