From 3753b6e0eb361d3f0427f318c57315a89884909a Mon Sep 17 00:00:00 2001 From: Markus Date: Sun, 16 Nov 2025 23:38:19 +0100 Subject: [PATCH] changed app linkding: added form fields for initial superuser --- apps/linkding/config.json | 18 +++++++++++++++++- apps/linkding/docker-compose.json | 6 +++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/apps/linkding/config.json b/apps/linkding/config.json index a82c815..752dcc4 100644 --- a/apps/linkding/config.json +++ b/apps/linkding/config.json @@ -13,7 +13,23 @@ "author": "sissbruecker", "source": "https://github.com/sissbruecker/linkding", "website": "https://www.linkding.link/", - "form_fields": [], + "form_fields": [ + { + "type": "text", + "label": "Initial superuser name", + "max": "50", + "required": true, + "placeholder": "admin", + "env_variable": "ENV_SUPERUSER_NAME" + }, + { + "type": "password", + "label": "Initial superuser password", + "max": "100", + "required": true, + "env_variable": "ENVLD_SUPERUSER_PASSWORD" + } + ], "supported_architectures": ["arm64", "amd64"], "created_at": 1763331296327, "updated_at": 1763331296327 diff --git a/apps/linkding/docker-compose.json b/apps/linkding/docker-compose.json index 864d4c0..60ae035 100644 --- a/apps/linkding/docker-compose.json +++ b/apps/linkding/docker-compose.json @@ -6,6 +6,10 @@ "image": "sissbruecker/linkding:1.44.1-alpine", "isMain": true, "internalPort": 9090, + "environment": [ + {"key": "LD_SUPERUSER_NAME", "value": "ENV_SUPERUSER_NAME"}, + {"key": "LD_SUPERUSER_PASSWORD", "value": "ENV_SUPERUSER_PASSWORD"} + ], "volumes": [ { "hostPath": "${APP_DATA_DIR}/data", @@ -17,4 +21,4 @@ ] } ] -} +