From 4fd0b586b062c14723594e45805b4eb5dc4fd2c9 Mon Sep 17 00:00:00 2001 From: Pablo Brasero Date: Thu, 27 Oct 2022 16:50:47 +0100 Subject: [PATCH] Applies to all `hsts*` values, per-app & globally --- docs/networking/proxies/nginx.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/networking/proxies/nginx.md b/docs/networking/proxies/nginx.md index 089147100..8a2f46238 100644 --- a/docs/networking/proxies/nginx.md +++ b/docs/networking/proxies/nginx.md @@ -85,9 +85,15 @@ The following options are also available via the `nginx:set` command: Beware that if you enable the header and a subsequent deploy of your application results in an HTTP deploy (for whatever reason), the way the header works means that a browser will not attempt to request the HTTP version of your site if the HTTPS version fails until the max-age is reached. +Changing these values, globally or on a per-app basis, will require rebuilding the nginx config of each relevant app via the `proxy:build-config` command: + +```shell +dokku proxy:build-config node-js-app +``` + #### Globally disabling the HSTS Header -HSTS Header can be disabled for all apps by setting the `hsts` property to false after passing the `--global` flag to `nginx:set`. Changing this value globally or on a per-app basis will require rebuilding the nginx config via the `proxy:build-config` command. +HSTS Header can be disabled for all apps by setting the `hsts` property to false after passing the `--global` flag to `nginx:set`. ```shell dokku nginx:set --global hsts false