From b3e623b97a9a1d601b178b117bf6e4013577c229 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Mon, 7 Jul 2025 17:06:33 +0700 Subject: [PATCH] Update README.md --- README.md | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 36ee304..e12d19b 100644 --- a/README.md +++ b/README.md @@ -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 -``` \ No newline at end of file +``` + +## 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 +```