-
-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Providing settings programatically #513
Comments
It is easy to configure pippo in code - we use this approach with lightbend config. pippo.server.settings
.host(config.server.host)
.port(config.server.port)
.keystoreFile(config.server.keystoreFile)
.keystorePassword(config.server.keystorePassword)
.truststoreFile(config.server.truststoreFile)
.truststorePassword(config.server.truststorePassword) |
@whyicantusemyemailasusername Thank you for the quick answer. I think this is a nice way to configure, but I was wondering if you can provide a hook into PippoSettings#loadProperties, so one can override that directly. |
@whyicantusemyemailasusername |
The code example above is written in kotlin, java code would look like this:
|
Pippo allows providing the settings via "application.properties" files.
In our application, we already have a custom setting file. Right now we have our own settings and the Pippo settings file.
It would be better if we can provide a custom set of settings to Pippo programmatically.
That allows also to load the settings dynamically ( e.g. form DB )
The text was updated successfully, but these errors were encountered: