initial impl of running export/import without serving

This commit is contained in:
Dominik Guhr 2022-10-20 11:27:09 +02:00 committed by Pedro Igor
parent 794e7414f3
commit 7398d7e1ed
3 changed files with 12 additions and 0 deletions

View file

@ -100,4 +100,11 @@ public class HttpOptions {
.description("The type of the trust store file. " + .description("The type of the trust store file. " +
"If not given, the type is automatically detected based on the file name.") "If not given, the type is automatically detected based on the file name.")
.build(); .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();
} }

View file

@ -27,6 +27,10 @@ final class HttpPropertyMappers {
.transformer(HttpPropertyMappers::getHttpEnabledTransformer) .transformer(HttpPropertyMappers::getHttpEnabledTransformer)
.paramLabel(Boolean.TRUE + "|" + Boolean.FALSE) .paramLabel(Boolean.TRUE + "|" + Boolean.FALSE)
.build(), .build(),
fromOption(HttpOptions.HTTP_SERVER_ENABLED)
.to("quarkus.http.host-enabled")
.paramLabel(Boolean.TRUE + "|" + Boolean.FALSE)
.build(),
fromOption(HttpOptions.HTTP_HOST) fromOption(HttpOptions.HTTP_HOST)
.to("quarkus.http.host") .to("quarkus.http.host")
.paramLabel("host") .paramLabel("host")

View file

@ -19,6 +19,7 @@ metrics-enabled=false
# The default configuration when running in import or export mode # The default configuration when running in import or export mode
%import_export.http-enabled=true %import_export.http-enabled=true
%import_export.http-server-enabled=false
%import_export.hostname-strict=false %import_export.hostname-strict=false
%import_export.hostname-strict-https=false %import_export.hostname-strict-https=false