diff options
| author | radhitya <alif@radhitya.org> | 2026-06-21 09:48:42 +0700 |
|---|---|---|
| committer | radhitya <alif@radhitya.org> | 2026-06-21 09:48:42 +0700 |
| commit | b7359e1d45f505171356bcae3c7d5e2341ecc859 (patch) | |
| tree | f91d4a4b08ce279d488a76e9b7141e69fc844ea9 /linum.toml | |
| parent | 2b1f613c42de3861141eb6f93c1740b6937ee183 (diff) | |
forward mode, cache opt, ACL, rate limit, admin/health, systemd, fix UDP reply
Diffstat (limited to 'linum.toml')
| -rw-r--r-- | linum.toml | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -11,15 +11,22 @@ db_path = "/tmp/cache.db" mode = "forward" timeout = "2s" max_delegations = 30 -forwarders = ["1.1.1.1", "8.8.8.8"] +forwarders = ["1.1.1.1"] [blocklist] response = "zero_ip" files = ["etc/blocklist/*.txt"] #urls = [ # "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts", - # "https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt", #] +[admin] +listen = "127.0.0.1:8080" + +[acl] +allow = ["127.0.0.1/8", "::1/128"] +rate_limit_qps = 50 +rate_limit_burst = 10 + [log] level = "info" |
