initial impl of running export/import without serving
This commit is contained in:
parent
794e7414f3
commit
7398d7e1ed
3 changed files with 12 additions and 0 deletions
|
@ -100,4 +100,11 @@ public class HttpOptions {
|
|||
.description("The type of the trust store file. " +
|
||||
"If not given, the type is automatically detected based on the file name.")
|
||||
.build();
|
||||
|
||||
public static final Option<Boolean> HTTP_SERVER_ENABLED = new OptionBuilder<>("http-server-enabled", Boolean.class)
|
||||
.category(OptionCategory.HTTP)
|
||||
.hidden()
|
||||
.description("Enables or disables the HTTP/s and Socket serving.")
|
||||
.defaultValue(Boolean.TRUE)
|
||||
.build();
|
||||
}
|
||||
|
|
|
@ -27,6 +27,10 @@ final class HttpPropertyMappers {
|
|||
.transformer(HttpPropertyMappers::getHttpEnabledTransformer)
|
||||
.paramLabel(Boolean.TRUE + "|" + Boolean.FALSE)
|
||||
.build(),
|
||||
fromOption(HttpOptions.HTTP_SERVER_ENABLED)
|
||||
.to("quarkus.http.host-enabled")
|
||||
.paramLabel(Boolean.TRUE + "|" + Boolean.FALSE)
|
||||
.build(),
|
||||
fromOption(HttpOptions.HTTP_HOST)
|
||||
.to("quarkus.http.host")
|
||||
.paramLabel("host")
|
||||
|
|
|
@ -19,6 +19,7 @@ metrics-enabled=false
|
|||
|
||||
# The default configuration when running in import or export mode
|
||||
%import_export.http-enabled=true
|
||||
%import_export.http-server-enabled=false
|
||||
%import_export.hostname-strict=false
|
||||
%import_export.hostname-strict-https=false
|
||||
|
||||
|
|
Loading…
Reference in a new issue