From e882b6215e9f597c494535033d8b48246b265b70 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Mon, 7 Jul 2025 17:19:02 +0700 Subject: [PATCH 1/4] Update README.md --- README.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/README.md b/README.md index e12d19b..61bf744 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,9 @@ - [build](#build) - [configure](#configure) - [example](#example) +- [requests responses](#requests-responses) + - [/api/settings](#/api/settings) + - [/api/settings/file](#/api/settings/file) ## routes @@ -35,3 +38,42 @@ SERVER_PORT=8090 SYSTEM_INITIALIZATION=rc ``` + +## requests-responses + +### /api/settings + +```json +{ + "cache_size": 10000, + "hosts": { + "185.130.83.26": "gitea.home.com", + "192.168.3.1": "router.home.com", + "192.168.3.113": [ + "samba.home.com", + "gitea.home.com", + "navidrome.home.com" + ], + "192.168.3.119": [ + "immich.home.com", + "jellyfin.home.com", + "portainer.home.com" + ], + "192.168.3.155": "dns.home.com" + }, + "resolv": [ + "192.168.3.1", + "109.194.32.1", + "5.3.3.3", + "8.8.8.8" + ] +} +``` + +### /api/settings/file + +``` +resolv-file=/etc/dnsmasq.conf.d/resolv.conf +addn-hosts=/etc/dnsmasq.conf.d/hosts +cache-size=10000 +``` From 8f4c8a059a41a6900d13be5319db73ce015215fd Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Mon, 7 Jul 2025 17:27:55 +0700 Subject: [PATCH 2/4] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 61bf744..054f6ff 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ - [configure](#configure) - [example](#example) - [requests responses](#requests-responses) - - [/api/settings](#/api/settings) - - [/api/settings/file](#/api/settings/file) + - [/api/settings](#settings) + - [/api/settings/file](#settingsfile) ## routes @@ -41,7 +41,7 @@ SYSTEM_INITIALIZATION=rc ## requests-responses -### /api/settings +### settings ```json { @@ -70,7 +70,7 @@ SYSTEM_INITIALIZATION=rc } ``` -### /api/settings/file +### settingsfile ``` resolv-file=/etc/dnsmasq.conf.d/resolv.conf From 02691262ab92e4f5b0c5fe1ff7270ec8e0c75ec5 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Mon, 7 Jul 2025 17:28:43 +0700 Subject: [PATCH 3/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 054f6ff..2aa0830 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ SYSTEM_INITIALIZATION=rc ## requests-responses -### settings +### settings - `/api/settings` ```json { @@ -70,7 +70,7 @@ SYSTEM_INITIALIZATION=rc } ``` -### settingsfile +### settingsfile - `/api/settings/file` ``` resolv-file=/etc/dnsmasq.conf.d/resolv.conf From a6804aae225d15e2a7169cdf26c583b331ede008 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Mon, 7 Jul 2025 17:29:56 +0700 Subject: [PATCH 4/4] Update README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2aa0830..3a09b86 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,9 @@ SYSTEM_INITIALIZATION=rc ## requests-responses -### settings - `/api/settings` +### settings + +#### `/api/settings` ```json { @@ -70,7 +72,9 @@ SYSTEM_INITIALIZATION=rc } ``` -### settingsfile - `/api/settings/file` +### settingsfile + +#### `/api/settings/file` ``` resolv-file=/etc/dnsmasq.conf.d/resolv.conf