From fad7ecc30f22b6ea8f82b450d306b3fc69953b78 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Mon, 13 May 2024 17:34:21 +0100 Subject: [PATCH] mealie: set the correct port in BASE_URL Otherwise it would default to port 8080, which breaks generated links when `cfg.port` is set to another port. --- nixos/modules/services/web-apps/mealie.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/web-apps/mealie.nix b/nixos/modules/services/web-apps/mealie.nix index 11bbd2834acc..0d41cffd3d9d 100644 --- a/nixos/modules/services/web-apps/mealie.nix +++ b/nixos/modules/services/web-apps/mealie.nix @@ -59,6 +59,7 @@ in PRODUCTION = "true"; ALEMBIC_CONFIG_FILE="${pkg}/config/alembic.ini"; API_PORT = toString cfg.port; + BASE_URL = "http://localhost:${cfg.port}"; DATA_DIR = "/var/lib/mealie"; CRF_MODEL_PATH = "/var/lib/mealie/model.crfmodel"; } // (builtins.mapAttrs (_: val: toString val) cfg.settings);