Skip to content

My attempt at builder a configuration management server in Golang

Notifications You must be signed in to change notification settings

dwakel/config-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

config-server

My attempt at builder a configuration management server in Golang

Setup ⚙️

  • Rename example.config.env to config.env
  • Populate relevant configuration variables
  • Setup authentication for github by setting up personal access token for your account and grant necessary permissions. Check the GitHub Docs for guidance
  • Setup a new github repo to store your configuration files in YAML.
Variable Name Description
REPO_NAME The name of your github repository created to store your env variables
OWNER Your github username
AUTH_TOKEN Personal access token used for GitHib Authentications

Run 🏃‍♂️

  • Run go run main.go to start server

Usage 🚀

Configs will be served at

Name Request Method Endpoint Response
ServeConfig GET localhost:8080/{filepath}/{branch} 200 OK

Configs will be served as JSON

Stil a WIP ⚓

  • Considering additional layers of authentication

About

My attempt at builder a configuration management server in Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published