feat(admin): LicServer config manageable via admin settings UI
Some checks failed
Staging Build / build (push) Has been cancelled
Some checks failed
Staging Build / build (push) Has been cancelled
- Migration: add licserver_base_url/api_key cols to settings table - New: lib/actions/licserver-config.ts (read/write/test server actions) - Updated: proxy routes read config from DB with env-var fallback - Updated: admin/einstellungen adds LicServer card with URL + API key input, show/hide toggle, Save and Connection Test buttons
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
-- Migration: Add LicServer configuration columns to settings table
|
||||
ALTER TABLE public.settings
|
||||
ADD COLUMN IF NOT EXISTS licserver_base_url TEXT,
|
||||
ADD COLUMN IF NOT EXISTS licserver_api_key TEXT;
|
||||
|
||||
-- Ensure the licserver config row exists (upsert with empty defaults)
|
||||
INSERT INTO public.settings (id, licserver_base_url, licserver_api_key)
|
||||
VALUES ('licserver', NULL, NULL)
|
||||
ON CONFLICT (id) DO NOTHING;
|
||||
|
||||
NOTIFY pgrst, 'reload schema';
|
||||
Reference in New Issue
Block a user