Update config logic
This commit is contained in:
15
internal/config/template.go
Normal file
15
internal/config/template.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package config
|
||||
|
||||
const Base_config = `# This is a TOML config file for BanForge it's a simple config file
|
||||
# https://github.com/d3m0k1d/BanForge
|
||||
|
||||
# Firewall settings block
|
||||
[firewall]
|
||||
name = "iptables" # Name one of the support firewall(iptables, nftables, firewalld, ufw)
|
||||
ban_time = 1200
|
||||
|
||||
[Service]
|
||||
name = "nginx"
|
||||
log_path = "/var/log/nginx/access.log"
|
||||
enabled = true
|
||||
`
|
||||
Reference in New Issue
Block a user