From eb7492bb94371bf58bf7ce0252acb46449cd87b6 Mon Sep 17 00:00:00 2001 From: ddcash Date: Sun, 21 Jul 2024 11:53:30 -0500 Subject: [PATCH] Add option to disable registration Add the options to disable registration and if using SSO the option to disable the username and password fields using the variables from https://docs.linkwarden.app/self-hosting/environment-variables --- linkwarden/config.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/linkwarden/config.json b/linkwarden/config.json index d011d3640..f83a52f23 100644 --- a/linkwarden/config.json +++ b/linkwarden/config.json @@ -7,13 +7,15 @@ "description": "collaborative bookmark manager to collect, organize, and preserve webpages and articles", "environment": { "DATABASE_URL": "postgresql://postgres:homeassistant@localhost:5432/linkwarden", - "NEXTAUTH_URL": "http://localhost:3000/api/v1/auth", "STORAGE_FOLDER": "/config/library", + "NEXTAUTH_URL": "http://localhost:3000/api/v1/auth", "NEXT_PUBLIC_AUTHENTIK_ENABLED": "false", + "NEXT_PUBLIC_CREDENTIALS_ENABLED": "true", + "NEXT_PUBLIC_DISABLE_REGISTRATION": "False", "AUTHENTIK_CUSTOM_NAME": "Authentik", "AUTHENTIK_ISSUER": "https://authentik.my-doma.in/application/o/linkwarden", "AUTHENTIK_CLIENT_ID": "CLIENT_ID", - "AUTHENTIK_CLIENT_SECRET": "CLIENT_SECRET" + "AUTHENTIK_CLIENT_SECRET": "CLIENT_SECRET", }, "image": "ghcr.io/alexbelgium/linkwarden-{arch}", "init": false,