Update README.md
This commit is contained in:
1 parent
deea0d0792
commit
b3e623b97a
1 file changed
+31
-1
@@ -1,7 +1,37 @@
|
|||||||
# DNS_SERVICE (frontend for dnsmasq)
|
# 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
|
```shell
|
||||||
go build
|
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
|
||||||
|
```
|
||||||
Reference in new issue
Block a user