https://github.com/helderfarias/go-config-server
go-config-server pulls configuration for remote clients from various sources
https://github.com/helderfarias/go-config-server
go server spring-cloud-config
Last synced: 24 days ago
JSON representation
go-config-server pulls configuration for remote clients from various sources
- Host: GitHub
- URL: https://github.com/helderfarias/go-config-server
- Owner: helderfarias
- License: mit
- Created: 2019-06-17T21:06:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T00:30:18.000Z (almost 3 years ago)
- Last Synced: 2024-06-21T18:55:18.856Z (over 1 year ago)
- Topics: go, server, spring-cloud-config
- Language: Go
- Size: 81.1 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-config-server
go-config-server pulls configuration for remote clients from various sources
## Refes
- https://cloud.spring.io/spring-cloud-config/2.1.x/single/spring-cloud-config.html#_security
- https://github.com/pavel-v-chernykh/keystore-go
- https://www.thepolyglotdeveloper.com/2018/02/encrypt-decrypt-data-golang-application-crypto-packages/
## Run
```bash
go run cmd/main.go -config ./configs/application-file.yml
```
## Templates
```yml
# git - application.yml
server:
port: 8001
security:
apikey:
enabled: false
keylookup: "query:apikey"
token: 9a0697eb595309177
encrypt:
key: s3Cr3tk3y00
logging:
level:
root: INFO
spring:
profiles:
active: native, git, vault
cloud:
config:
server:
native:
searchLocations: ./configs
git:
uri: https://github.com/helderfarias/go-config-server-examples
clone_dir: ./tmp
force_pull: true
vault:
uri: http://localhost:8200
nats:
servers: nats://localhost:4222
subject: springCloudBus
auth:
type: token
token: S3cretT0ken
```