diff --git a/sys/platforms/vps/srv/default.nix b/sys/platforms/vps/srv/default.nix index 3060eab..7d9cb6e 100644 --- a/sys/platforms/vps/srv/default.nix +++ b/sys/platforms/vps/srv/default.nix @@ -19,5 +19,6 @@ with lib; { ./calibre-web.nix ./immich.nix ./wiki-js.nix + ./mealie.nix ]; } diff --git a/sys/platforms/vps/srv/mealie.nix b/sys/platforms/vps/srv/mealie.nix new file mode 100644 index 0000000..c494ff9 --- /dev/null +++ b/sys/platforms/vps/srv/mealie.nix @@ -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"; + }; + }; + }; +}