Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

RAINCATCH-1262 - server side config improvements #122

Merged
merged 2 commits into from
Sep 18, 2017

Conversation

wtrocki
Copy link
Member

@wtrocki wtrocki commented Sep 16, 2017

Motivation

Application configuration should be centralized and easy to manage using environment variables.

Description

Improve server side configuration to not relay on the environment variables inside various files in the code. To do that configuration cannot be json anymore.
We need to have ability to choose from environment variables or default values.
That's why I have moved configuration to js files.

JS files will allow us to:

  • Add comments to configuration
  • Resolve configuration dynamically from environment variables
  • Handle legacy parameters (RHMAP)

Progress

  • Move json files to js (for documentation)
  • Refactor configuration
  • Add Documentation

},
},
// Keycloak configuration. Uncomment to enable keycloak integration
// "keycloak": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it would be best to fill in the details here? Otherwise we can add a note that they need to fill these in themselves?

   "realm": "raincatcher",
   "bearer-only": true,
   "auth-server-url": "http://localhost:8080/auth",
   "ssl-required": "external",
   "resource": "raincatcher-cloud",
   "use-resource-role-mappings": true

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm.. I think we will cover that in documentation. Missing details means some action. If we provide some values some people may take them for granted and then file bugs that stuff do not work.

@wtrocki wtrocki merged commit f8343fe into feedhenry-raincatcher:master Sep 18, 2017
@wtrocki wtrocki deleted the RAINCATCH-1262 branch September 18, 2017 09:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

3 participants