Lemmy UI env file wasn't used.
And lemmy env file didn't exist on the host either.
This commit is contained in:
parent
280de4893d
commit
2ef14827e3
|
@ -42,6 +42,7 @@ let
|
||||||
hostname = "lemmy-ui";
|
hostname = "lemmy-ui";
|
||||||
depends_on = [ "lemmy" ];
|
depends_on = [ "lemmy" ];
|
||||||
restart = "always";
|
restart = "always";
|
||||||
|
env_file = [ lemmyUiCfg.envFile ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
pictrs = {
|
pictrs = {
|
||||||
|
@ -305,6 +306,13 @@ in {
|
||||||
};
|
};
|
||||||
target-file = "/run/lemmy/postgres.env";
|
target-file = "/run/lemmy/postgres.env";
|
||||||
};
|
};
|
||||||
|
lemmyEnv = {
|
||||||
|
source-file = makeEnvFile {
|
||||||
|
RUST_LOG = "warn";
|
||||||
|
RUST_BACKTRACE = "full";
|
||||||
|
};
|
||||||
|
target-file = "/run/lemmy/lemmy.env";
|
||||||
|
};
|
||||||
lemmyUiEnv = {
|
lemmyUiEnv = {
|
||||||
source-file = makeEnvFile {
|
source-file = makeEnvFile {
|
||||||
LEMMY_UI_LEMMY_INTERNAL_HOST = "lemmy:8536";
|
LEMMY_UI_LEMMY_INTERNAL_HOST = "lemmy:8536";
|
||||||
|
@ -365,10 +373,7 @@ in {
|
||||||
lemmyCfg = {
|
lemmyCfg = {
|
||||||
image = cfg.docker-images.lemmy;
|
image = cfg.docker-images.lemmy;
|
||||||
configFile = hostSecrets.lemmyCfg.target-file;
|
configFile = hostSecrets.lemmyCfg.target-file;
|
||||||
envFile = toString (makeEnvFile {
|
envFile = hostSecrets.lemmyEnv.target-file;
|
||||||
RUST_LOG = "warn";
|
|
||||||
RUST_BACKTRACE = "full";
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
lemmyUiCfg = {
|
lemmyUiCfg = {
|
||||||
image = cfg.docker-images.lemmy-ui;
|
image = cfg.docker-images.lemmy-ui;
|
||||||
|
|
Loading…
Reference in New Issue