Velotio - HashiCorp Consul Part 2 - Configuration of Django App with Consul KV using Consul's HTTP API
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
# Flag to run Django app in debug mode | |
curl -X PUT -d 'True' consul_server:8500/v1/kv/web/debug | |
# Dynamic entries into Django app configuration | |
# to denote allowed set of hosts | |
curl -X PUT -d 'localhost, 33.10.0.100' consul_server:8500/v1/kv/web/allowed_hosts | |
# Dynamic entries into Django app configuration | |
# to denote installed apps | |
curl -X PUT -d 'tweetapp' consul_server:8500/v1/kv/web/installed_apps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment