Skip to content

Commit

Permalink
Merge pull request #234 from jason-fox/feature/cluster
Browse files Browse the repository at this point in the history
Fix #221 - Add headless clustering mode
  • Loading branch information
apozohue10 committed Nov 18, 2021
2 parents ed254b4 + 1f7d60a commit 627d3ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ if (config.https.enabled) {
} else {
app.get('/', function (req, res) {
res.status(501).json({
error: 'Keyrock instance is running in HEADLESS mode'
"error": "Keyrock instance is running in HEADLESS mode"
});
});
}
Expand Down Expand Up @@ -248,15 +248,15 @@ if (config.https.enabled) {
} else {
app.get('/', function (req, res) {
res.status(501).json({
error: 'Keyrock instance is running in HEADLESS mode'
"error": "Keyrock instance is running in HEADLESS mode"
});
});
}
}

debug(
clc.green(config.headless ? 'Keyrock instance is clustered and running in HEADLESS mode' : 'Keyrock GUI is available')
);

debug(clc.green(config.headless ? 'Keyrock instance is clustered and running in HEADLESS mode' : 'Keyrock GUI is available'));


// Check connection with Authzforce
if (config.authorization.authzforce.enabled) {
Expand Down
1 change: 0 additions & 1 deletion lib/configService.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ function process_environment_variables(verbose) {
if (process.env.IDM_DEBUG) {
config.debug = to_boolean(process.env.IDM_DEBUG, true);
}

if (process.env.IDM_REGISTRATION_REDIRECT) {
config.registration = config.registration || {};
config.registration.redirect = process.env.IDM_REGISTRATION_REDIRECT;
Expand Down

0 comments on commit 627d3ee

Please sign in to comment.