Skip to content
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

Support for multiple configuration files #512

Closed
Qarasique opened this issue May 11, 2022 · 2 comments · Fixed by #534
Closed

Support for multiple configuration files #512

Qarasique opened this issue May 11, 2022 · 2 comments · Fixed by #534
Labels
🔨 enhancement New feature or request
Milestone

Comments

@Qarasique
Copy link

Can i use "include" directive for config file, like in nginx ?

Example:
Separate *.conf file for

conditional:
  mapping:

and

customDNS:
  mapping:

I want to use a lot of static A entries, it would be nice to divide service settings and DNS entries

@ThinkChaos
Copy link
Collaborator

For static A entries, you could use the hosts file resolver to achieve this (docs).
There is no generic config include support though.

@0xERR0R
Copy link
Owner

0xERR0R commented May 16, 2022

So basically the idea is to provide a path to the directory with several YAML files, blocky should read all files (alphabetically order) and "merge" them together, right?

@0xERR0R 0xERR0R added the 🔨 enhancement New feature or request label May 16, 2022
@0xERR0R 0xERR0R linked a pull request May 25, 2022 that will close this issue
@0xERR0R 0xERR0R changed the title Include directive Support for multiple configuration files May 25, 2022
@0xERR0R 0xERR0R added this to the 0.19 milestone May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants