This cookbook sets up Xonacatl, the "layers" server.
apt
golang
runit
user
Key | Type | Description | Default |
---|---|---|---|
['xonacatl']['package'] | String | Package to install | github.com/tilezen/xonacatl/xonacatl_server |
['xonacatl']['cfg_file'] | String | Config file name | xonacatl.conf |
['xonacatl']['cfg_path'] | String | Config file location | /etc/xonacatl |
['xonacatl']['pattern'] | String | URL pattern to use for matching requests. Anything which doesn't match will return a 404. The Gorilla Mux syntax for URL patterns is used, and you may use any captures you like. The pattern captures *must* include `layers` and `fmt`. | /{layers}/{z:[0-9]+}/{x:[0-9]+}/{y:[0-9]+}.{fmt} |
['xonacatl']['host'] | String | Upstream URL pattern to use for fetching tiles. Note that the default value is not valid, and should be replaced with whatever you want. The interpolation variables available are those used in the pattern. | http://upstream.tile.server/{layers}/{z:[0-9]+}/{x:[0-9]+}/{y:[0-9]+}.{fmt} |
['xonacatl']['listen'] | String | The `interface:port` to listen on. | :80 |
['xonacatl']['headers'] | Array of String | Optional. Any extra headers to add when making requests to the origin. | [] |
['xonacatl']['healthcheck'] | String | Optional. If present, then the path to respond to healthchecks on. | nil |
['xonacatl']['runit']['timeout'] | Integer | The time in seconds runit should wait to see if a service starts up successfully. | 60 |
['xonacatl']['user']['create_group'] | Boolean | Whether to create a group for the user. | true |
['xonacatl']['user']['enabled'] | Boolean | Whether to create a user for xonacatl. | true |
['xonacatl']['user']['home'] | String | The user's home directory location. | /home/xonacatl |
['xonacatl']['user']['user'] | String | The user's name. | xonacatl |
We welcome contributions to xonacatl's Chef recipe. To contribute, please use the standard Github workflow:
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Copyright Mapzen 2016. Available under the MIT license. See LICENSE for more information.