blob: 2d869ce889b125e376c804aabb1669224e86705a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ config, pkgs, ... }:
let
domain = "toasted.brownbread.net";
in
{
services.mealie = {
enable = true;
package = pkgs.unstable.mealie;
settings = {
BASE_URL = domain;
DB_ENGINE = "sqlite";
ALLOW_SIGNUP = "false";
SECURITY_MAX_LOGIN_ATTEMPTS = 3;
TZ = "America/Detroit";
};
};
services.caddy.virtualHosts.${domain}.extraConfig = ''
encode zstd gzip
reverse_proxy http://localhost:${builtins.toString config.services.mealie.port}
'';
}
|