-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
Rework Config file structure... take 2 #550
Comments
Related topic is how to parse this config with serde enum - it could either be untagged, in which case user may see unexpected errors if the config value cannot be matched perfectly, or we could do it "by hand":
|
I tried hacking on this implementation, and one already apparent annoyance is the auto-publish separation for pg: connections:
pg1:
connection: postgres://...
auto-publish:
postgres:
- connection: pg1 The issues with the above:
Possible but non-ideal solutions: connections:
pg1:
connection: postgres://...
auto-publish:
postgres:
pg1: ... # the key here must match the key in connections. This is bad because other auto-publish types are lists connections:
pg1:
connection: postgres://...
auto-publish: ... # just like before -- autopublish is part of the connection. This is bad because other types like mbtiles/pmtiles do not have connections |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems config is still fairly convoluted, and may need some cleanup... Another proposal:
Additionally, there are some settings to allow override generated tilejson. Any of these values can be added to any of the sources, connections, and auto-publish sections.
The text was updated successfully, but these errors were encountered: