Philipp Heckel 3 лет назад
Родитель
Сommit
031c848984
2 измененных файлов с 13 добавлено и 0 удалено
  1. 9 0
      docs/config.md
  2. 4 0
      docs/releases.md

+ 9 - 0
docs/config.md

@@ -579,6 +579,15 @@ or the root domain:
 
     ntfy.sh, http://nfty.sh {
         reverse_proxy 127.0.0.1:2586
+
+        # Redirect HTTP to HTTPS, but only for GET topic addresses, since we want
+        # it to work with curl without the annoying https:// prefix
+        @httpget {
+            protocol http
+            method GET
+            path_regexp ^/([-_a-z0-9]{0,64}$|docs/|static/)
+        }
+        redir @httpget https://{host}{uri}
     }
     ```
 

+ 4 - 0
docs/releases.md

@@ -37,6 +37,10 @@ to [@Joeharrison94](https://github.com/Joeharrison94) for the input.
 * Made web app sounds quieter ([#222](https://github.com/binwiederhier/ntfy/issues/222))
 * Add "private browsing"-specific error message for Firefox/Safari ([#208](https://github.com/binwiederhier/ntfy/issues/208), thanks to [@julianfoad](https://github.com/julianfoad) for reporting) 
 
+**Documentation:**
+
+* Improved caddy configuration (no ticket, thanks to @Stnby)
+
 **Additional translations:**
 
 * Czech (thanks to [@waclaw66](https://hosted.weblate.org/user/waclaw66/))