feat(backend): support npub and nsec formats in ADMINS env for admin auth

This commit is contained in:
2026-04-11 15:36:49 +05:45
parent 2bdd4280d5
commit 49d7786e93
3 changed files with 53 additions and 18 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ PORT=3000
ALLOW_ORIGINS= # Optional comma-separated allowed CORS origins; empty = permissive
# Auth
ADMINS= # Comma-separated hex pubkeys with admin access
ADMINS= # Comma-separated admin keys (hex pubkey or npub)
# Database
DATABASE_URL=sqlite://data/caravel.db