Skip to content

Commit 481ae89

Browse files
handle comments
1 parent 981a43c commit 481ae89

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

runtime/defaults/src/main/resources/application.properties

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,6 @@ quarkus.http.cors.headers=*
5151
quarkus.http.cors.exposed-headers=*
5252
quarkus.http.cors.access-control-max-age=PT10M
5353
quarkus.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-
6354
quarkus.http.port=8181
6455
quarkus.http.test-port=0
6556

site/content/in-dev/unreleased/configuring-polaris-for-production.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,20 +128,15 @@ in the request.
128128
### Polaris Server Header
129129

130130
Polaris 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
135135
quarkus.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

0 commit comments

Comments
 (0)