mirror of
https://github.com/freedbygrace/DynamoDNS.git
synced 2026-07-26 11:38:13 +00:00
Make registration controllable via environment variable
Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9111ef36-26c8-4085-84ca-a35dc1fec1b5 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7083d608-d6d3-4a6a-9a27-6286c5109627/46536f1b-9751-4155-8a23-d7b43d05b72f.jpg
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ import 'dotenv/config';
|
||||
export const CONFIG = {
|
||||
// Local auth configuration
|
||||
LOCAL_AUTH_ENABLED: process.env.LOCAL_AUTH_ENABLED !== 'false', // Enabled by default
|
||||
DISABLE_REGISTRATION: process.env.DISABLE_REGISTRATION === 'true', // Disabled by default
|
||||
DISABLE_REGISTRATION: process.env.ENABLE_REGISTRATION !== 'true', // Disabled by default
|
||||
DEFAULT_ADMIN_USERNAME: process.env.DEFAULT_ADMIN_USERNAME || 'admin',
|
||||
DEFAULT_ADMIN_PASSWORD: process.env.DEFAULT_ADMIN_PASSWORD || 'password',
|
||||
DEFAULT_ADMIN_EMAIL: process.env.DEFAULT_ADMIN_EMAIL || 'admin@example.com',
|
||||
|
||||
Reference in New Issue
Block a user