Merge pull request #1509 from mikaeldui/patch-1
Add Ferron reverse proxy example to config.md
This commit is contained in:
@@ -1030,6 +1030,36 @@ or the root domain:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
=== "ferron"
|
||||||
|
``` kdl
|
||||||
|
// /etc/ferron.kdl
|
||||||
|
// Note that this config is most certainly incomplete. Please help out and let me know what's missing
|
||||||
|
// via Discord/Matrix or in a GitHub issue.
|
||||||
|
// Note: Ferron automatically handles both HTTP and WebSockets with proxy
|
||||||
|
|
||||||
|
ntfy.sh {
|
||||||
|
auto_tls
|
||||||
|
auto_tls_letsencrypt_production
|
||||||
|
protocols "h1" "h2" "h3"
|
||||||
|
|
||||||
|
proxy "http://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
|
||||||
|
|
||||||
|
no_redirect_to_https #true
|
||||||
|
|
||||||
|
condition "is_get_topic" {
|
||||||
|
is_equal "{method}" "GET"
|
||||||
|
is_regex "{path}" "^/([-_a-z0-9]{0,64}$|docs/|static/)"
|
||||||
|
}
|
||||||
|
|
||||||
|
if "is_get_topic" {
|
||||||
|
no_redirect_to_https #false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Firebase (FCM)
|
## Firebase (FCM)
|
||||||
!!! info
|
!!! info
|
||||||
Using Firebase is **optional** and only works if you modify and [build your own Android .apk](develop.md#android-app).
|
Using Firebase is **optional** and only works if you modify and [build your own Android .apk](develop.md#android-app).
|
||||||
|
|||||||
Reference in New Issue
Block a user