vps: add mealie

This commit is contained in:
Fabian Montero 2025-02-12 19:01:17 -06:00
parent 1755bf7d18
commit d2eb1518c7
Signed by: fabian
GPG key ID: 1FFAC35E1798174F
2 changed files with 38 additions and 0 deletions

View file

@ -19,5 +19,6 @@ with lib; {
./calibre-web.nix ./calibre-web.nix
./immich.nix ./immich.nix
./wiki-js.nix ./wiki-js.nix
./mealie.nix
]; ];
} }

View file

@ -0,0 +1,37 @@
{
lib,
pkgs,
...
}:
with lib; {
systemd.services.wiki-js = {
requires = ["postgresql.service"];
after = ["postgresql.service"];
};
services = {
nginx = {
virtualHosts."food.posixlycorrect.com" = {
enableACME = true;
forceSSL = true;
extraConfig = ''
proxy_headers_hash_max_size 512;
proxy_headers_hash_bucket_size 128;
'';
locations."/" = {
proxyPass = "http://127.0.0.1:9000";
};
};
};
mealie = {
enable = true;
listenAddress = "127.0.0.1";
port = 9000;
credentialsFile = "/var/trust/mealie/credentials.env";
settings = {
ALLOW_SIGNUP = "false";
};
};
};
}