diff --git a/EpcQrCodeRest/src/main/resources/application.properties b/EpcQrCodeRest/src/main/resources/application.properties index e243a81..94c04d2 100644 --- a/EpcQrCodeRest/src/main/resources/application.properties +++ b/EpcQrCodeRest/src/main/resources/application.properties @@ -24,9 +24,20 @@ quarkus.native.enable-https-url-handler=true quarkus.native.enable-all-security-services=true +# Metrics and Health -# so that on server endpoints like /openapi, /swagger-ui, /health can be reached under /epcqrcode (under /q/ it's not reachable on server) -quarkus.http.non-application-root-path=/epcqrcode +# Kubernetes / Prometheus won't find endpoints under /q/health, /q/metrics, ..., so remove /q (= Quarkus default sub path) from path +quarkus.micrometer.export.prometheus.path=/metrics + +quarkus.smallrye-health.root-path=/health +quarkus.smallrye-health.ui.always-include=true + + +# OpenAPI and Swagger-UI + +# so that in Kubernetes Swagger-UI, Health UI, ... can be reached under /k7s (under /q/ it's not reachable via ingress) +quarkus.http.root-path=/k7s +quarkus.http.non-application-root-path=${quarkus.http.root-path} # OpenAPI and Swagger-UI @@ -40,6 +51,4 @@ quarkus.smallrye-openapi.info-version=1.0.0 quarkus.smallrye-openapi.info-description=REST API to generate EPC QR codes (also marketed as GiroCode, scan2Code, ...) quarkus.smallrye-openapi.info-contact-email=dev@codinux.net quarkus.smallrye-openapi.info-contact-name=codinux GmbH & Co. KG -quarkus.smallrye-openapi.info-contact-url=https://codinux.net/ - -quarkus.smallrye-health.ui.always-include=true \ No newline at end of file +quarkus.smallrye-openapi.info-contact-url=https://codinux.net/ \ No newline at end of file