-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q: Config extensibility with wildcard include? #8
Comments
Thanks Ben.
I hear what you're saying. I'm curious though, does the existing ability to
provide a fully custom unbound.conf not meet your need?
https://github.com/MatthewVance/unbound-docker
…On Mon, Jan 4, 2021, 5:02 AM Benjamin Urban ***@***.***> wrote:
Hi @MatthewVance <https://github.com/MatthewVance>,
I started using your unbound image for my pi hole server coming from a
locally installed unbound instance. So far it works greats, so thank you
very much for that.
One question that came up though: I have a bit of custom configuration
(forwarders, logging, private-domains, ...
Currently I mount my custom config to
/opt/unbound/etc/unbound/forward-records.conf to be able to keep your
default configuration and enrich it with my custom settings. I guess that's
a workaround though, because my config does not contain forwarders only.
What do you think about adding a wildcard include, e.g. include:
"/opt/unbound/etc/unbound/unbound.conf.d/*.conf" at the end of the
unbound.conf? This would add more flexibility for custom configs, while
still leaving forward-records.conf in place as a default. It would render
a-records.conf and srv-records.conf pretty useless though.
Best regards,
Ben
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUMHOUTOAOG6VTRRYD6U5LSYGN4BANCNFSM4VS3JVYA>
.
|
Well theoretically it does, but that also means I have to maintain the whole unbound.conf with a lot of settings I don't want to change from your sane defaults just to change a few configs. These are the configs I placed there, so that you can get an impression of my use case: /opt/unbound/etc/unbound/unbound.conf.d/logging.conf
/opt/unbound/etc/unbound/unbound.conf.d/dns-rebind-protection.conf
/opt/unbound/etc/unbound/unbound.conf.d/forwarders.conf
|
Thank you for the additional information. I'm open to the idea of adding a wildcard include. I'll probably keep the It may take me a few days to get to this. Feel free to submit a PR in you want. King regards, |
@MatthewVance I'm a bit confused - is the wildcard include meant to not be commented out? Currently it is: https://github.com/MatthewVance/unbound-docker-rpi/blob/master/1.15.0/data/unbound.sh#L356 |
I want it to be commented out. After re-reading the relevant section of the
README anew, I see how it is confusing so I should clarify that an example
is provided in unbound.sh, but the image should be re-built to take
advantage of that feature. I recognize this is not the most user friendly
default. I'm intentionally making this tradeoff right now because I'm not a
fan of * includes loading files by default. I'd rather this be an
intentional decision by the user.
On Feb 26, 2022, at 1:19 AM, Erik Haugrud ***@***.***> wrote:
@MatthewVance <https://github.com/MatthewVance> I'm a bit confused - is the
wildcard include meant to *not* be commented out? Currently it is:
https://github.com/MatthewVance/unbound-docker-rpi/blob/master/1.15.0/data/unbound.sh#L356
—
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUMHOSTTJ3SYH4RWFEJKK3U5B5G3ANCNFSM4VS3JVYA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi @MatthewVance,
I started using your unbound image for my pi hole server coming from a locally installed unbound instance. So far it works greats, so thank you very much for that.
One question that came up though: I have a bit of custom configuration (forwarders, logging, private-domains, ...)
Currently I mount my custom config to
/opt/unbound/etc/unbound/forward-records.conf
to be able to keep your default configuration and enrich it with my custom settings. I guess that's a workaround though, because my config does not contain forwarders only. What do you think about adding a wildcard include, e.g.include: "/opt/unbound/etc/unbound/unbound.conf.d/*.conf"
at the end of theunbound.conf
? This would add more flexibility for custom configs, while still leavingforward-records.conf
in place as a default. It would rendera-records.conf
andsrv-records.conf
pretty useless though.Best regards,
Ben
The text was updated successfully, but these errors were encountered: