From 6c97aaaee914d798d41c6b50c6ee091f7cebd251 Mon Sep 17 00:00:00 2001 From: niten Date: Tue, 18 Jul 2023 11:25:17 -0700 Subject: [PATCH] Ugh, lemmy-ui env file wasn't present on the host --- lemmy-docker.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lemmy-docker.nix b/lemmy-docker.nix index 63c3c9a..2efc5e6 100644 --- a/lemmy-docker.nix +++ b/lemmy-docker.nix @@ -303,6 +303,14 @@ in { }; target-file = "/run/lemmy/postgres.env"; }; + lemmyUiEnv = { + source-file = makeEnvFile { + LEMMY_UI_LEMMY_INTERNAL_HOST = "lemmy:8536"; + LEMMY_UI_LEMMY_EXTERNAL_HOST = cfg.hostname; + LEMMY_UI_HTTPS = false; + }; + target-file = "/run/lemmy/lemmy-ui.env"; + }; lemmyCfg = { source-file = makeLemmyCfg { inherit (cfg) hostname; @@ -362,11 +370,7 @@ in { }; lemmyUiCfg = { image = cfg.docker-images.lemmy-ui; - envFile = makeEnvFile { - LEMMY_UI_LEMMY_INTERNAL_HOST = "lemmy:8536"; - LEMMY_UI_LEMMY_EXTERNAL_HOST = cfg.hostname; - LEMMY_UI_HTTPS = false; - }; + envFile = hostSecrets.lemmyUiEnv.target-file; }; pictrsCfg = { image = cfg.docker-images.pictrs;