You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+14
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,20 @@
1
1
# Change Log
2
2
All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/)
3
3
4
+
## [1.1.18] - 2024-12-09
5
+
6
+
Introduce ability configure HSTS (HTTP Strict Transport Security) with new slipway.connector.https settings:
7
+
8
+
*:sts-max-age
9
+
*:sts-include-subdomains?
10
+
11
+
For more informmation, see: https://github.com/factorhouse/kpow/issues/35
12
+
13
+
Also made these http/https settings configurable (default false, previously hard-coded to false):
14
+
15
+
*:send-server-version?
16
+
*:send-date-header?
17
+
4
18
## [1.1.17] - 2024-09-05
5
19
6
20
Bump to latest Jetty version (11.0.24 or equivalent)
Copy file name to clipboardexpand all lines: README.md
+21-15
Original file line number
Diff line number
Diff line change
@@ -186,7 +186,7 @@ Jetty is sophisticated as it addresses a complex domain with flexibility and con
186
186
187
187
Slipway holds close to Jetty idioms for configuration rather than presenting a simplified DSL.
188
188
189
-
Slipway takes a map of namespaced configuration.
189
+
Slipway takes a single map of namespaced configuration. Namespaces correspond to Jetty domain models, and can be considered as separate maps and then merged.
190
190
191
191
### :slipway
192
192
@@ -310,25 +310,27 @@ Configuration of Jetty auth options.
310
310
See examples below for configuration guides to JAAS and HASH authentication.
:authenticator"a concrete Jetty Authenticator (e.g. FormAuthenticator or BasicAuthenticator)"
318
318
```
319
319
320
320
### :slipway.connector.http
321
321
322
322
Configuration of an HTTP server connector.
323
323
324
324
```clojure
325
-
#:slipway.connector.http{:host"the network interface this connector binds to as an IP address or a hostname. If null or 0.0.0.0, then bind to all interfaces. Default null/all interfaces."
326
-
:port"port this connector listens on. If set to 0 a random port is assigned which may be obtained with getLocalPort(), default 80"
327
-
:idle-timeout"max idle time for a connection, roughly translates to the Socket.setSoTimeout. Default 200000 ms"
328
-
:http-forwarded?"if true, add the ForwardRequestCustomizer. See Jetty Forward HTTP docs"
329
-
:proxy-protocol?"if true, add the ProxyConnectionFactory. See Jetty Proxy Protocol docs"
330
-
:http-config"a concrete HttpConfiguration object to replace the default config entirely"
331
-
:configurator"a fn taking the final connector as argument, allowing further configuration"}
325
+
#:slipway.connector.http{:host"the network interface this connector binds to as an IP address or a hostname. If null or 0.0.0.0, then bind to all interfaces. Default null/all interfaces."
326
+
:port"port this connector listens on. If set to 0 a random port is assigned which may be obtained with getLocalPort(), default 80"
327
+
:idle-timeout"max idle time for a connection, roughly translates to the Socket.setSoTimeout. Default 200000 ms"
328
+
:http-forwarded?"if true, add the ForwardRequestCustomizer. See Jetty Forward HTTP docs"
329
+
:proxy-protocol?"if true, add the ProxyConnectionFactory. See Jetty Proxy Protocol docs"
330
+
:http-config"a concrete HttpConfiguration object to replace the default config entirely"
331
+
:configurator"a fn taking the final connector as argument, allowing further configuration"
332
+
:send-server-version?"if true, send the Server header in responses"
333
+
:send-date-header?"if true, send the Date header in responses"}
332
334
````
333
335
334
336
### :slipway.connector.https
@@ -358,8 +360,12 @@ Configuration of an HTTPS server connector.
358
360
:security-provider"the security provider name"
359
361
:client-auth"either :need or :want to set the corresponding need/wantClientAuth field"
:sni-required?"true if a SNI certificate is required, default false"
40
-
:sni-host-check?"true if the SNI Host name must match, default false"}
39
+
:sni-required?"true if SNI is required, else requests will be rejected with 400 response, default false"
40
+
:sni-host-check?"true if the SNI Host name must match when there is an SNI certificate, default false"
41
+
:sts-max-age"set the Strict-Transport-Security max age in seconds, default -1"
42
+
:sts-include-subdomains?"true if a include subdomain property is sent with any Strict-Transport-Security header"}
41
43
42
44
#:slipway.connector.http{:host"the network interface this connector binds to as an IP address or a hostname. If null or 0.0.0.0, then bind to all interfaces. Default null/all interfaces."
43
45
:port"port this connector listens on. If set to 0 a random port is assigned which may be obtained with getLocalPort(), default 80"
#:slipway.connector.http{:host"the network interface this connector binds to as an IP address or a hostname. If null or 0.0.0.0, then bind to all interfaces. Default null/all interfaces"
17
-
:port"port this connector listens on. If set to 0 a random port is assigned which may be obtained with getLocalPort(), default 80"
18
-
:idle-timeout"max idle time for a connection, roughly translates to the Socket.setSoTimeout. Default 200000 ms"
19
-
:http-forwarded?"if true, add the ForwardRequestCustomizer. See Jetty Forward HTTP docs"
20
-
:proxy-protocol?"if true, add the ProxyConnectionFactor. See Jetty Proxy Protocol docs"
21
-
:http-config"a concrete HttpConfiguration object to replace the default config entirely"
22
-
:configurator"a fn taking the final connector as argument, allowing further configuration"})
18
+
#:slipway.connector.http{:host"the network interface this connector binds to as an IP address or a hostname. If null or 0.0.0.0, then bind to all interfaces. Default null/all interfaces"
19
+
:port"port this connector listens on. If set to 0 a random port is assigned which may be obtained with getLocalPort(), default 80"
20
+
:idle-timeout"max idle time for a connection, roughly translates to the Socket.setSoTimeout. Default 200000 ms"
21
+
:http-forwarded?"if true, add the ForwardRequestCustomizer. See Jetty Forward HTTP docs"
22
+
:proxy-protocol?"if true, add the ProxyConnectionFactor. See Jetty Proxy Protocol docs"
23
+
:http-config"a concrete HttpConfiguration object to replace the default config entirely"
24
+
:configurator"a fn taking the final connector as argument, allowing further configuration"
25
+
:send-server-version?"if true, send the Server header in responses"
26
+
:send-date-header?"if true, send the Date header in responses"})
23
27
24
28
(defmethodserver/connector::connector
25
29
[^Server server {::keys [host port idle-timeout proxy-protocol? http-forwarded? configurator http-config]
0 commit comments