use newest version of mealie and cleanup the config
This commit is contained in:
parent
2ae02bd636
commit
91eb48cd74
1 changed files with 5 additions and 8 deletions
|
@ -1,25 +1,22 @@
|
||||||
{ pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
domain = "mealie.tdback.net";
|
domain = "mealie.tdback.net";
|
||||||
port = 9000;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.mealie = {
|
services.mealie = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.mealie;
|
package = pkgs.unstable.mealie;
|
||||||
listenAddress = "0.0.0.0";
|
|
||||||
port = port;
|
|
||||||
settings = {
|
settings = {
|
||||||
BASE_URL = domain;
|
BASE_URL = domain;
|
||||||
TZ = "America/Detroit";
|
DB_ENGINE = "sqlite";
|
||||||
ALLOW_SIGNUP = "false";
|
ALLOW_SIGNUP = "false";
|
||||||
SECURITY_MAX_LOGIN_ATTEMPTS = 3;
|
SECURITY_MAX_LOGIN_ATTEMPTS = 3;
|
||||||
DB_ENGINE = "sqlite";
|
TZ = "America/Detroit";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.caddy.virtualHosts.${domain}.extraConfig = ''
|
services.caddy.virtualHosts.${domain}.extraConfig = ''
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
reverse_proxy http://localhost:${builtins.toString port}
|
reverse_proxy http://localhost:${config.services.mealie.port}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue