Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/js/helpers/traefik.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ export default (form, output) => {
' [http.middlewares.redirect-to-https.redirectScheme]\n'+
' scheme = "https"\n'+
' [http.middlewares.hsts-header.headers]\n'+
' [http.middlewares.hsts-header.headers.customResponseHeaders]\n'+
' Strict-Transport-Security = "max-age='+output.hstsMaxAge+'"\n';
' stsSeconds = '+output.hstsMaxAge+'\n';
' # Depending on your configuration you might want to also enable "includeSubDomains"\n';
' # and "preload". More infos about these directives can be found at\n';
' # https://infosec.mozilla.org/guidelines/web_security#http-strict-transport-security\n';
' #stsIncludeSubdomains = true\n';
' #stsPreload = true\n';
}

conf +=
Expand Down