feat: add new method and for db req and add to template max retry
Some checks failed
build / build (push) Failing after 1m48s

This commit is contained in:
d3m0k1d
2026-02-19 10:53:55 +03:00
parent 2e9b307194
commit 7f54db0cd4
5 changed files with 44 additions and 27 deletions

View File

@@ -12,11 +12,13 @@ config = "/etc/nftables.conf"
name = "nginx"
logging = "file"
log_path = "/var/log/nginx/access.log"
max_retry = 3
enabled = true
[[service]]
name = "nginx"
logging = "journald"
log_path = "/var/log/nginx/access.log"
max_retry = 3
enabled = false
`

View File

@@ -28,5 +28,6 @@ type Rule struct {
Path string `toml:"path"`
Status string `toml:"status"`
Method string `toml:"method"`
MaxRetry int `toml:"max_retry"`
BanTime string `toml:"ban_time"`
}