Created
October 3, 2016 15:50
-
-
Save luismoramedina/c024ad5c64d803d9364e949938bdcdc9 to your computer and use it in GitHub Desktop.
Connection to cloud config from nodejs
This file contains hidden or 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
"use strict"; | |
var client = require("cloud-config-client"); | |
const options = { | |
application: "devstack-sample-persons", | |
profiles: ["production"] | |
}; | |
client.load(options, function(error, cfg) { | |
if (error) { | |
console.log("Error" + error) | |
return; | |
} | |
console.log(cfg.get("serenity.swagger.title")); | |
console.log(cfg.get("serenity.security.keyprovider.keyServerURL")); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment