From 26d8c59bb02ce9fffb0ec37d79633b68bd1e84e6 Mon Sep 17 00:00:00 2001 From: DoTheEvolution Date: Fri, 11 Jun 2021 19:37:31 +0200 Subject: [PATCH] update --- caddy_v2/readme.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/caddy_v2/readme.md b/caddy_v2/readme.md index 3f61e07..d4f32ae 100644 --- a/caddy_v2/readme.md +++ b/caddy_v2/readme.md @@ -465,7 +465,17 @@ whatever.{$MY_DOMAIN} { ### HSTS and redirects -Running NextCloud behind any proxy likely shows few warning on its status page. +Here is example of a redirect when wanting the common reddirect +from www to naked domain. + +``` +www.{$MY_DOMAIN} { + redir https://{$MY_DOMAIN}{uri} +} +``` + +Another example is running NextCloud behind any proxy, +which likely shows few warning on its status page. It requires some redirects for service discovery to work and would like if [HSTS](https://www.youtube.com/watch?v=kYhMnw4aJTw) would be set.
Like so: