Update README.md

This commit is contained in:
wt committed 2025-07-07 17:06:33 +07:00
1 parent deea0d0792
commit b3e623b97a
1 file changed
+32 -2
+32 -2
View File
@@ -1,7 +1,37 @@
# DNS_SERVICE (frontend for dnsmasq)
## Build
- [routes](#routes)
- [build](#build)
- [configure](#configure)
- [example](#example)
## routes
- `GET` `/` - frontend
- `GET` `/api/settings` - get all settings
- `POST` `/api/settings` - set all settings
- `GET` `/api/settings/file` - get settings file content
- `POST` `/api/settings/file` - set settings file content
## build
```shell
go build
```
```
## configure
### example
```
DNSMASQ_CONFIG=/etc/dnsmasq.conf
ENABLE_TLS=true
CERT_FILE=/etc/dns_service/dns.home.com.crt
KEY_FILE=/etc/dns_service/dns.home.com.key
SERVER_ADDRESS=0.0.0.0
SERVER_PORT=8090
SYSTEM_INITIALIZATION=rc
```