References
HSTS
json:hsts
Original definition
# HSTS
## Definition
~~~json
{
"isOn": "Whether enabled",
"maxAge": "Maximum validity period in seconds",
"includeSubDomains": "Optional: whether to include subdomains",
"preload": "Optional: whether to enable preloading",
"domains": ["Optional: supported domain 1", "Optional: supported domain 2" ...]
}
~~~
Where:
* `maxAge` can be one day (86400 seconds) or longer.
* Omitting `domains` applies the configuration to all domains.
## Examples
### Apply to all domains
~~~json
{
"isOn": true,
"maxAge": 86400,
"includeSubDomains":false,
"preload":false,
"domains":[]
}
~~~
### Apply to specific domains
~~~json
{
"isOn": true,
"maxAge": 86400,
"includeSubDomains":false,
"preload":false,
"domains":["example.com", "www.example.com"]
}
~~~