Skip to content

Commit 08c84ed

Browse files
committed
feat(router): set default HSTS maxAge to 18 weeks for preload list compat
1 parent 8cb5028 commit 08c84ed

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/customizing_deis/router_settings.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ setting description
6060
/deis/router/gzipDisable nginx gzipDisable setting (default: "msie6")
6161
/deis/router/gzipTypes nginx gzipTypes setting (default: "application/x-javascript application/xhtml+xml application/xml application/xml+rss application/json text/css text/javascript text/plain text/xml")
6262
/deis/router/hsts/enabled enable HTTP Strict Transport Security headers for HTTPS requests (default: false)
63-
/deis/router/hsts/maxAge maximum number of seconds user agents should observe HSTS rewrites (default: 2628000)
63+
/deis/router/hsts/maxAge maximum number of seconds user agents should observe HSTS rewrites (default: 10886400)
6464
/deis/router/hsts/includeSubDomains enforce HSTS for requests on all subdomains (default: false)
6565
/deis/router/hsts/preload allow the domain to be included in the HSTS preload list (default: false)
6666
/deis/router/maxWorkerConnections maximum number of simultaneous connections that can be opened by a worker process (default: 768)

router/image/templates/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ http {
7171

7272
## HSTS instructs the browser to replace all HTTP links with HTTPS links for this domain until maxAge seconds from now
7373
{{ $enableHSTS := or (getv "/deis/router/hsts/enabled") "false" }}
74-
{{ $maxAgeHSTS := or (getv "/deis/router/hsts/maxAge") "2628000" }}
74+
{{ $maxAgeHSTS := or (getv "/deis/router/hsts/maxAge") "10886400" }}
7575
{{ $includeSubdomainsHSTS := or (getv "/deis/router/hsts/includeSubDomains") "false" }}
7676
{{ $preloadHSTS := or (getv "/deis/router/hsts/preload") "false" }}
7777
map $access_scheme $sts {

0 commit comments

Comments
 (0)