From bb02792bf4d3738846b62b54d88bb63b4bded5ec Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Mon, 24 Mar 2025 13:15:10 +0100 Subject: [PATCH] mealie init --- hosts/server/configuration.nix | 1 + server-modules/mealie.nix | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 server-modules/mealie.nix diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index 6bc1b33..6fe71b4 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -17,6 +17,7 @@ ../../server-modules/adguardhome.nix ../../server-modules/hoarder.nix ../../server-modules/arr.nix + ../../server-modules/mealie.nix # You should let those lines as is ./hardware-configuration.nix diff --git a/server-modules/mealie.nix b/server-modules/mealie.nix new file mode 100644 index 0000000..db92d0b --- /dev/null +++ b/server-modules/mealie.nix @@ -0,0 +1,18 @@ +{ config, ... }: +let domain = "mealie.hadi.diy"; +in { + services = { + mealie = { + enable = true; + port = 8092; + }; + + nginx.virtualHosts."${domain}" = { + useACMEHost = "hadi.diy"; + forceSSL = true; + locations."/" = { + proxyPass = "http://127.0.0.1:${toString config.services.mealie.port}"; + }; + }; + }; +}