File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed
runtime/defaults/src/main/resources
site/content/in-dev/unreleased Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -51,15 +51,6 @@ quarkus.http.cors.headers=*
5151quarkus.http.cors.exposed-headers =*
5252quarkus.http.cors.access-control-max-age =PT10M
5353quarkus.http.cors.access-control-allow-credentials =true
54-
55- # --- Polaris Server header (Quarkus-managed) ---
56- # Keep .value present (required by Quarkus), but make the path never match so it's effectively OFF by default.
57- quarkus.http.header."Server".value =Polaris/${quarkus.application.version}
58- quarkus.http.header."Server".path =/__disabled__
59-
60- # To enable in production (or any chosen profile), override the path back to normal:
61- # %prod.quarkus.http.header."Server".path=/*
62-
6354quarkus.http.port =8181
6455quarkus.http.test-port =0
6556
Original file line number Diff line number Diff line change @@ -128,20 +128,15 @@ in the request.
128128### Polaris Server Header
129129
130130Polaris can emit an informational ` Server ` HTTP response header using Quarkus' built-in header
131- configuration. The default configuration keeps the header disabled by pointing it at a path that does
132- not match any request.
131+ configuration. Add the following property to one of the supported configuration sources (for example,
132+ ` application.properties ` ) to enable it with the Polaris version string:
133133
134134``` properties
135135quarkus.http.header." Server" .value =Polaris/${quarkus.application.version}
136- quarkus.http.header." Server" .path =/__disabled__
137136```
138137
139- To enable the header for production traffic, override the header path for the desired profile (for
140- example, ` %prod ` ).
141-
142- ``` properties
143- %prod.quarkus.http.header." Server" .path =/*
144- ```
138+ If you prefer to scope the header to specific environments, only set the property for the desired
139+ profile (for example, ` %prod ` ).
145140
146141### Metastore Configuration
147142
You can’t perform that action at this time.
0 commit comments