Skip to content

Commit 3a7cb8d

Browse files
committed
README.md: Document "hsts_preload = true"
1 parent cdfe765 commit 3a7cb8d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ that I build upon prior to switching to
4848

4949
# How to write the `sites.cfg` file
5050

51-
The format is rather simple and has three options only.
51+
The format is rather simple and has four options only.
5252
Let's look at this example:
5353

5454
[example.org]
@@ -64,7 +64,13 @@ content. Here, `example-org` is the name of the Docker container that
6464
Docker DNS will let us access because we made both containers join external
6565
network `ssl-reverse-proxy` in their `docker-compose.yml` files.
6666
`aliases` is an optional list of domain names to have both HTTP and HTTPS
67-
redirect to master domain `example.org`. That's it.
67+
redirect to master domain `example.org`.
68+
Adding `hsts_preload = true` is optional, defaults to false, and extends the
69+
[HSTS](https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security)
70+
response headers to
71+
[unlock addition to the browser preload list](https://hstspreload.org/#submission-requirements)
72+
at [https://hstspreload.org/](https://hstspreload.org/).
73+
That's it.
6874

6975
The `Caddyfile` generated from that very `sites.cfg` would read:
7076

0 commit comments

Comments
 (0)