diff mod_strict_https/README.markdown @ 5415:f8797e3284ff

mod_strict_https: Add way to disable redirect Since Prosody 0.12+ does not listen on unencrypted http anymore, this is likely to cause trouble. Especially since the URL construction is problematic and awkward.
author Kim Alvefur <zash@zash.se>
date Wed, 03 May 2023 10:55:22 +0200
parents 0c8e6269ea38
children
line wrap: on
line diff
--- a/mod_strict_https/README.markdown	Wed May 03 10:54:15 2023 +0200
+++ b/mod_strict_https/README.markdown	Wed May 03 10:55:22 2023 +0200
@@ -21,6 +21,13 @@
 hsts_header = "max-age=31556952"
 ```
 
+If the redirect from `http://` to `https://` causes trouble with
+internal use of HTTP APIs it can be disabled:
+
+``` lua
+hsts_redirect = false
+```
+
 # Compatibility
 
   ------- -------------