Skip to content

Commit

Permalink
✨ Adds possibility to disable HA Authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Oct 29, 2018
1 parent 05c3207 commit 5c561ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion node-red/rootfs/etc/node-red/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@ config.uiHost = '0.0.0.0';
config.userDir = '/config/node-red/';

// Several settings
config.adminAuth = require('/etc/node-red/ha-auth.js');
config.credentialSecret = getSecret(options.credential_secret);
config.uiPort = options.port;

// Enable authentication
if (!options.leave_front_door_open) {
config.adminAuth = require('/etc/node-red/ha-auth.js');
}

// Set SSL if enabled
if (options.ssl === true) {
config.https = {
Expand Down

0 comments on commit 5c561ce

Please sign in to comment.