dns-api.org
dns-api.org copied to clipboard
Define options with ENV variables
With Docker we have the ability to define options for the service via ENV vars.
I suggest exposing these options as ENV vars:
- port (use 80 as default port)
- logging to stdout instead a file (default for docker containers)
- throttling_per_hour (200 as default, but should be able to deactivate)
- public domain (for use in info / description pages)
- Port 80 is a bad choice because it implies running as root, with Docker even a high port is fine because it will be forwarded to anyway, the internal and external ports do not need to match.
- Logging could be conditional, and might be useful, good idea. Thanks.
- Throttling is configurable already.
- The code is not public domain, even if there is no license present.
- I will add a license shortly. (Perl)
Hi, thanks for your answers.
Throttling is configurable already.
how is this configurable via ENV? i havn't seen it in source. there is a fixed limit of 200req per hour.
public domain (for use in info / description pages)
The code is not public domain, even if there is no license present.
i meant: set an domain name that would be used in info-pages via ENV. if i start this as private service at my own domains, there is still an infopage saying i should use dns-api.org
.
how is this configurable via ENV? i havn't seen it in source. there is a fixed limit of 200req per hour.
Sorry you're right I was sure that it was configurable. Bad memory.
As for the public-domain, thanks for clarification. That was confusing!
I should be able to fix most of these issues/suggestions in a day or two. :)
If you setup a license, i can help with pull Requests ;-)
Added explicit LICENSE in 2aefe461efd4f9b9b43786eac34dcdb2a668918c which matches what was documented in lib/DNS/API.pm
.
Note to change mentions of dns-api.org
in the public site content we'll need to change the contents of public/
from being raw-html to being HTML::Template, or similar. Shame.
Note to change mentions of dns-api.org in the public site content we'll need to change the contents of public/ from being raw-html to being HTML::Template, or similar. Shame.
or you can sed
the files at entrypoint level / your run
script.