-
The configuration reference states, that providing a value for ![]() I expect the "required with default provided" to work in the following way:
I further expect "fixed at build time" to mean, that setting the value can only happen before the Quarkus-application is built, but an environment variable is available for overriding the property. Setting that variable or using a system property, i.e. using My question is: How should I interpret the documentation, when a configuration property is marked all of
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
(Deleted when above question was rephrased.) |
Beta Was this translation helpful? Give feedback.
-
Correct. In this case, the docs are a bit misleading due to a limitation in our code. Usually, the docs take the value from
Fixed at build time means that the configuration is read during the build and has no effect during runtime. Overriding such a property results in a warning such as:
Environment variables or system properties can be used during the build to set build-time properties.
The configuration must be specified in a valid source. The source must be available in the appropriate phase (build or runtime). These are exceptions due to the limitations explained previously.
The default value is the actual configuration value if no other value has been set in the configuration.
These configuration can only be set during the build and are ignored at runtime.
Configurations are overridden depending on where they are set. Quarkus orders each source by ordinatily, and the first source to contain the configuration wins. Please check: https://quarkus.io/guides/config-reference#configuration-sources. An environment variable is not the only way to override a configuration, but the name is included in the docs, because the defined dotted name and its environment variable name might have slight differences. Please check: https://quarkus.io/guides/config-reference#environment-variables |
Beta Was this translation helpful? Give feedback.
I'm sorry, I was not clear about
quarkus.http.host
, and I explained the general rules of configuration.The configuration
quarkus.http.host
is a runtime property, so this is the expected behavior. The configurations that are build-time are marked with a lock icon. For example,quarkus.http.root-path
used in my previous comment: