-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from nzzdev/release-2.2.0
Release 2.2.0
- Loading branch information
Showing
14 changed files
with
850 additions
and
544 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
const server = require('../../server.js').getServer(); | ||
|
||
const db = server.settings.app.misc.get('/db'); | ||
let dbUrl = server.settings.app.misc.get('/authStrategy/couchdb_cookie/db/host'); | ||
if (!dbUrl) { | ||
dbUrl = server.settings.app.misc.get('/authStrategy/couchdb_cookie/couchdbHost'); | ||
} | ||
|
||
if (!dbUrl.startsWith('http')) { | ||
dbUrl = `${server.settings.app.misc.get('/authStrategy/couchdb_cookie/db/protocol') || 'https'}://${dbUrl}`; | ||
} | ||
|
||
server.auth.strategy('q-auth', 'couchdb-cookie', { | ||
couchdbUrl: db.host | ||
couchdbUrl: dbUrl | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: tool runtime config | ||
--- | ||
|
||
There is an object `toolRuntimeConfig` that gets passed to the tool service for every rendering info request. Before that, it can get altered at several points in the flow. The `toolRuntimeConfig` will get merged in the following order by overwriting the former in case of clashes. | ||
|
||
1. Q server config misc.toolRuntimeConfig (use this in case you want to pass some values to all tools) | ||
2. Q server config tools in tool.endpoint.toolRuntimeConfig (where the value is filtered with the target) | ||
3. as a query parameter or payload object to rendering-info endpoint |
Oops, something went wrong.