cfg-server - web-server publishing configuration from git-server. Now support work only through ssh channel
For build project start in root directory
go build .
./cfg-server --help - short help for params
./cfg-server [email protected]:padremortius/configs-example.git --repoBranch=main --searchPath=dev
For current time ssh key and password for ssh-key (maybe empty) must be save in cfg-server.json.
For example:
cat cfg-server.json
```{
"git.pKey": "-----BEGIN OPENSSH PRIVATE KEY-----\n......w=\n-----END OPENSSH PRIVATE KEY-----",
"git.password": "testPassword"
}```
curl http://localhost:8080/<env_name>/<service_name>-<profile_name>.<output_format> - get configuration with profile and without using searchPath
curl http://localhost:8080/<env_name>/<service_name>.<output_format> - get configuration with profile and without using searchPath
curl http://localhost:8080/<service_name>-<profile_name>.<output_format> - get configuration with profile with current searchPath
curl http://localhost:8080/<service_name>.<output_format> - - get configuration with current searchPath
Supported output format: yaml, yml, json
curl http://localhost:8080/dev/downdetector.yaml
curl http://localhost:8080/downdetector.json
- Add support params (${param}) in configuration files
- Add using external ssh key and set path to it in env variable or startup flag
- Add support configuration in json files