Add more environment configs for libflitter values
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2020-10-18 21:36:10 -05:00
parent 1646fbd2a0
commit d3c1e383da
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246
2 changed files with 7 additions and 3 deletions

View File

@ -122,7 +122,7 @@ const auth_config = {
// Information about the endpoint flitter-auth will use to redeem
// the authorization_code token for a bearer token
source_token: {
endpoint: 'https://coreid.garrettmills.dev/auth/service/oauth2/redeem',
endpoint: env('AUTH_COREID_REDEEM_URL', 'https://coreid.garrettmills.dev/auth/service/oauth2/redeem'),
// Field name where the authorization_code token will be specified in the request
token_key: 'code',
@ -143,7 +143,7 @@ const auth_config = {
// Information about the endpoint flitter-auth will use to get
// user information after it retrieves a bearer token
user_data: {
endpoint: 'https://coreid.garrettmills.dev/api/v1/auth/users/me',
endpoint: env('AUTH_COREID_USER_URL', 'https://coreid.garrettmills.dev/api/v1/auth/users/me'),
method: 'get', // 'get' or 'post' only
// In the response data, what key is the user data in?

View File

@ -20,7 +20,11 @@ const server_config = {
* The logging level. Usually, 1-4.
* The higher the level, the more information is logged.
*/
level: env("LOGGING_LEVEL", 1)
level: env("LOGGING_LEVEL", 1),
api_logging: env('LOG_API_RESPONSES', false),
error_logging: env('LOG_REQUEST_ERRORS', true),
},
session: {