Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.
/ config-server Public archive

Configuration server in Python. Inspired by Netflix Config Server

License

Notifications You must be signed in to change notification settings

artemrys/config-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Config Server in Python

Inspired by Netflix Config Server.

About

Flask web application that serves configuration from configuration repository.

For example, your configuration repository has dev.yml file with following content:

redis:
  host: 127.0.0.1
  port: 6379

Config server will transform it into GET /dev route and response in JSON format:

{
    "redis": {
        "host": "127.0.0.1",
        "port": 6379
    }
}

It only supports Github public repositories at the moment and uses Github Webhooks to update configuration settings of config server.

You can test it live. Go to repository. It is public, so you can commit there and see changes live in already deployed application on Heroku.

Restrictions:

  • only *.yml files
  • only master branch
  • only first level tree (no folders)

Setup

Environmental variables:

  • GITHUB_ACCESS_TOKEN - from here
  • GITHUB_CONFIG_REPO - your configuration repository name

Testing locally

Install ngrok and run command ngrok http 5000.

It will give you a public address so you can set it as a Github Webhook url.

Then you need to run the application with environmental variables set and correct.

And then, if you do a commit to your repository with configuration, you will see the changes in your local web Flask application.

About

Configuration server in Python. Inspired by Netflix Config Server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages