Skip to content

Commit d243c22

Browse files
committed
Docs, fix lint
1 parent 84f421a commit d243c22

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

docs/config.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,9 @@ and [here](https://easyengine.io/tutorials/nginx/block-wp-login-php-bruteforce-a
12431243
maxretry = 10
12441244
```
12451245

1246-
!!! info If you run nginx in a container, append `, chain=DOCKER-USER` to the jail.local action.
1246+
Note that if you run nginx in a container, append `, chain=DOCKER-USER` to the jail.local action. By default, the jail action chain
1247+
is `INPUT`, but `FORWARD` is used when using docker networks. `DOCKER-USER`, available when using docker, is part of the `FORWARD`
1248+
chain.
12471249

12481250
## Health checks
12491251
A preliminary health check API endpoint is exposed at `/v1/health`. The endpoint returns a `json` response in the format shown below.

docs/releases.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1385,10 +1385,11 @@ and the [ntfy Android app](https://github.com/binwiederhier/ntfy-android/release
13851385

13861386
**Documentation:**
13871387

1388-
* Various docs updates ([](https://github.com/binwiederhier/ntfy/pull/1161), thanks to [@OneWeekNotice](https://github.com/OneWeekNotice))
1388+
* Various docs updates ([#1161](https://github.com/binwiederhier/ntfy/pull/1161), thanks to [@OneWeekNotice](https://github.com/OneWeekNotice))
13891389
* Typo in config docs ([#1177](https://github.com/binwiederhier/ntfy/pull/1177), thanks to [@hoho4190](https://github.com/hoho4190))
13901390
* Typo in CLI docs ([#1172](https://github.com/binwiederhier/ntfy/pull/1172), thanks to [@anirvan](https://github.com/anirvan))
1391-
* Correction about MacroDroid ([](https://github.com/binwiederhier/ntfy/pull/1137), thanks to [@ShlomoCode](https://github.com/ShlomoCode))
1391+
* Correction about MacroDroid ([#1137](https://github.com/binwiederhier/ntfy/pull/1137), thanks to [@ShlomoCode](https://github.com/ShlomoCode))
1392+
* Note about fail2ban in Docker ([#1175](https://github.com/binwiederhier/ntfy/pull/1175)), thanks to [@Measurity](https://github.com/Measurity))
13921393

13931394
### ntfy Android app v1.16.1 (UNRELEASED)
13941395

server/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1828,7 +1828,7 @@ func (s *Server) transformBodyJSON(next handleFunc) handleFunc {
18281828
if m.Priority != 0 {
18291829
r.Header.Set("X-Priority", fmt.Sprintf("%d", m.Priority))
18301830
}
1831-
if m.Tags != nil && len(m.Tags) > 0 {
1831+
if len(m.Tags) > 0 {
18321832
r.Header.Set("X-Tags", strings.Join(m.Tags, ","))
18331833
}
18341834
if m.Attach != "" {

0 commit comments

Comments
 (0)