Give the Windows bundle a single-user mode without sign-in
LUMINARY_LOCAL=1 creates one local admin and treats an unauthenticated request as that account, so the packaged desktop app opens signed in. It is off unless the launcher sets it, leaving the shared server and Docker deploy unchanged.
This commit is contained in:
@@ -27,6 +27,16 @@ export const HOST = process.env.HOST || '0.0.0.0';
|
||||
/** Shared invite code required to register after the first account exists. */
|
||||
export const INVITE = setting('INVITE');
|
||||
|
||||
/**
|
||||
* Single-user desktop mode, set by the Windows launcher (LUMINARY_LOCAL=1).
|
||||
* The server creates one admin account and treats an unauthenticated request as
|
||||
* that account, so a personal install never shows a signup or sign-in screen.
|
||||
* Only safe on loopback, which is where the launcher binds; the server warns if
|
||||
* it is enabled with a reachable HOST.
|
||||
*/
|
||||
export const LOCAL_MODE = setting('LOCAL') === '1';
|
||||
export const LOCAL_EMAIL = setting('LOCAL_EMAIL', 'local@luminary');
|
||||
|
||||
/** Base URL of the dashboard this editor is bridged to, e.g. http://hub:3000. */
|
||||
export const GLENLOCH_URL = (process.env.GLENLOCH_URL || '').replace(/\/+$/, '');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user