From 2bc5b801824abf3734abadd2cb8ffc57896db913 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Thu, 13 Jul 2023 14:03:40 +1200 Subject: [PATCH 1/2] lemmy-ui: Set NODE_ENV to run server in production mode --- nixos/modules/services/web-apps/lemmy.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/web-apps/lemmy.nix b/nixos/modules/services/web-apps/lemmy.nix index 7662478f68b5..3421d36615aa 100644 --- a/nixos/modules/services/web-apps/lemmy.nix +++ b/nixos/modules/services/web-apps/lemmy.nix @@ -253,6 +253,7 @@ in LEMMY_UI_LEMMY_INTERNAL_HOST = "127.0.0.1:${toString cfg.settings.port}"; LEMMY_UI_LEMMY_EXTERNAL_HOST = cfg.settings.hostname; LEMMY_UI_HTTPS = "false"; + NODE_ENV = "production"; }; documentation = [ From c88c434c3428ec9f725139f3ffe8a48b2128af3c Mon Sep 17 00:00:00 2001 From: adisbladis Date: Thu, 13 Jul 2023 15:39:59 +1200 Subject: [PATCH 2/2] nixos/lemmy: Move pictrs url from pictrs_url to pictrs.url The upstream config schema changed. --- nixos/modules/services/web-apps/lemmy.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/lemmy.nix b/nixos/modules/services/web-apps/lemmy.nix index 3421d36615aa..a8ad4c50f2f0 100644 --- a/nixos/modules/services/web-apps/lemmy.nix +++ b/nixos/modules/services/web-apps/lemmy.nix @@ -90,7 +90,9 @@ in { bind = "127.0.0.1"; tls_enabled = true; - pictrs_url = with config.services.pict-rs; "http://${address}:${toString port}"; + pictrs = { + url = with config.services.pict-rs; "http://${address}:${toString port}"; + }; actor_name_max_length = 20; rate_limit.message = 180;