/go-config-server

go-config-server pulls configuration for remote clients from various sources

Primary LanguageGoMIT LicenseMIT

go-config-server

go-config-server pulls configuration for remote clients from various sources

Refes

Run

go run cmd/main.go -config ./configs/application-file.yml

Templates

# 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