Created
January 14, 2016 20:02
-
-
Save j-mcnally/d00a611a71b621efd3d6 to your computer and use it in GitHub Desktop.
Caddyfile - Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config_server "https://etcd.local:2379" | |
service users { | |
endpoint: "/users", | |
proxy: "{{services.users.ip}}:{{services.users.port}}" | |
} | |
# In this example 'services.users' would be a directory with a json key for every user service container / application. | |
# Using this we could template the proxy and any other information in the services block, and it would just work with caddy. | |
# As keys come and go caddy would just change where it sends traffic. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment