You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,16 +8,17 @@ for https://github.com/KIMB-technologies/Radio-API
8
8
9
9
The configuration is done using env variables.
10
10
11
-
-`SERVER_BIND`*(optional)* The IP address the server binds on, if not set, 0.0.0.0 is used to bind on all interfaces.
12
-
-`SERVER_PORT`*(optional)* The port which is used for the DNS server, should always be the default 53 (unless for testing).
13
-
-`SERVER_UPSTREAM`*(optional)* The upstream DNS server, where DNS answers are fetched from
11
+
-`SERVER_BIND`*(optional, default `0.0.0.0`)* The IP address the server binds on. `0.0.0.0` binds on all interfaces.
12
+
-`SERVER_PORT`*(optional, default `53`)* The port which is used for the DNS server, should always be the default `53` (unless for testing).
13
+
-`SERVER_UPSTREAM`*(optional, default `8.8.8.8`)* The upstream DNS server, where DNS answers are fetched from
14
14
-`RADIO_DOMAIN`*(required, if `RADIO_IP` not set)* The domain where the [Radio-API](https://github.com/KIMB-technologies/Radio-API) can be found.
15
15
The DNS server will return the `A` record of this domain for all queries containing `wifiradiofrontier.com`.
16
16
-`RADIO_IP`*(required, if `RADIO_DOMAIN` not set)* The ip address where the [Radio-API](https://github.com/KIMB-technologies/Radio-API) can be found.
17
17
The DNS server will return this IP for all queries containing `wifiradiofrontier.com`.
18
18
If `RADIO_DOMAIN` is set, it will be used. If `RADIO_DOMAIN` is not set, `RADIO_IP` will be used!
19
-
-`ALLOWED_DOMAIN`*(optional)* Normally a DNS resolver will answer all queries from all sources. This can be a security risk, so one should only answer the queries from trusted sources. One can give a list (domain names divided by `,`) of domain name here, only queries from the corresponding `A` records will be answered then. **The default value is `all` which means all sources are trusted. E.g. for testing and usage in local networks.** (Normally giving your DynDNS name is right; More domain names lead to a higher response time to queries.)
20
-
-`TIME_SERVER`*(optional)* If the DNS server is queried for `time.wifiradiofrontier.com` it will answer with the `A` record of this domain. So one does not have to host an own NTP server at `RADIO_DOMAIN`. Per default some time server is used.
19
+
-`ALLOWED_DOMAIN`*(optional, default `all`)* Normally a DNS resolver will answer all queries from all sources. This can be a security risk, so one should only answer the queries from trusted sources. One can give a list (domain names divided by `,`) of domain name here, only queries from the corresponding `A` records will be answered then. **The default value is `all` which means all sources are trusted. E.g. for testing and usage in local networks.** (Normally giving your DynDNS name is right; More domain names lead to a higher response time to queries.)
20
+
-`TIME_SERVER`*(optional, default `ntp0.fau.de`)* If the DNS server is queried for `time.wifiradiofrontier.com` it will answer with the `A` record of this domain. So one does not have to host an own NTP server at `RADIO_DOMAIN`. Per default some time server is used.
21
+
-`ENABLE_UPDATE`*(optional, default `false`)* Set to `true` to enable responding to DNS queries for `update.wifiradiofrontier.com` with the `A` record of `update.wifiradiofrontier.com` instead of the ip of Radio-API. (This will allow the radio to do updates. Performing updates is a trade-off between risking changes to the API, that may prevent Radio-API from working, and bug fixes and security implications for the radio's software.)
21
22
22
23
Run using the [**Docker-compose Example**](./docker-compose.yml)!
Copy file name to clipboardExpand all lines: docker-compose.yml
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,4 +13,5 @@ services:
13
13
#- RADIO_IP=192.168.0.41 # the place where https://github.com/KIMB-technologies/Radio-API ist hosted (if only available via IP and no domain, comment RADIO_DOMAIN)
14
14
- ALLOWED_DOMAIN=home.example.com,home2.example.com # the domains of the home routers (DynDNS) as list divided by ',' or 'all' to allow all sources for the requests
15
15
- TIME_SERVER=ntp0.fau.de # the NTP time server used by the radio (may be changed)
16
+
- ENABLE_UPDATE=false # set to true to enable dns resolving of update server for radios
0 commit comments