package io.quarkus.vertx.http.runtime;

import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;
import io.vertx.core.http.ClientAuth;

@ConfigRoot(name = "http", phase = ConfigPhase.BUILD_AND_RUN_TIME_FIXED)
public class HttpBuildTimeConfig {

    /**
     * The HTTP root path. All web content will be served relative to this root path.
     */
    @ConfigItem(defaultValue = "/")
    public String rootPath;

    public AuthConfig auth;

    /**
     * Configures the engine to require/request client authentication.
     * NONE, REQUEST, REQUIRED
     */
    @ConfigItem(name = "ssl.client-auth", defaultValue = "NONE")
    public ClientAuth tlsClientAuth;

    /**
     * If this is true then only a virtual channel will be set up for vertx web.
     * We have this switch for testing purposes.
     */
    @ConfigItem
    public boolean virtual;

    /**
     * A common root path for non-application endpoints. Various extension-provided endpoints such as metrics, health,
     * and openapi are deployed under this path by default.
     *
     * * Relative path (Default, `q`) ->
     * Non-application endpoints will be served from
     * `${quarkus.http.root-path}/${quarkus.http.non-application-root-path}`.
     * * Absolute path (`/q`) ->
     * Non-application endpoints will be served from the specified path.
     * * `${quarkus.http.root-path}` -> Setting this path to the same value as HTTP root path disables
     * this root path. All extension-provided endpoints will be served from `${quarkus.http.root-path}`.
     * 
     * @asciidoclet
     */
    @ConfigItem(defaultValue = "q")
    public String nonApplicationRootPath;

    /**
     * Provide redirect endpoints for extension-provided endpoints existing prior to Quarkus 1.11.
     * This will trigger HTTP 301 Redirects for the following:
     *
     * * `/graphql-ui`
     * * `/health`
     * * `/health-ui`
     * * `/metrics`
     * * `/openapi`
     * * `/swagger-ui`
     *
     * Default is `true` for Quarkus 1.11.x to facilitate transition to name-spaced URIs using
     * `${quarkus.http.non-application-root-path}`.
     *
     * Quarkus 1.13 will change the default to `false`,
     * and the config item will be removed in Quarkus 2.0.
     *
     * @asciidoclet
     */
    @ConfigItem(defaultValue = "true")
    public boolean redirectToNonApplicationRootPath;
}

@@ -33,16 +33,44 @@
 ntime;%0A%0A
+import java.time.Duration;%0A%0A
 import i
@@ -2469,11 +2469,151 @@
 ootPath;
+%0A%0A    /**%0A     * The REST Assured client timeout for testing.%0A     */%0A    @ConfigItem(defaultValue = %2230s%22)%0A    public Duration testTimeout;
 %0A%7D%0A

Fix false config warning