-
Notifications
You must be signed in to change notification settings - Fork 0
config
Kevin Wang edited this page Sep 19, 2020
·
5 revisions
Example configuration of services:
mode: INFO # logging mode, values: DEBUG INFO WARN ERROR FATAL PANIC
logoutput: STDOUT
port: 8080
baseurl: /api # base url to append to each route on the server
templatedir: templates
maxreqsize: 2M
alloworigins: []
routerewrite:
- host: go.governor.dev.home:8080
methods: ['GET']
pattern: '^/([A-Za-z0-9_-]{2,}(?:/image)?)$'
replace: /api/courier/link/$1
vault:
addr: http://vault.vault.svc.cluster.local:8200
k8s:
auth: true
role: governor-governor-role
database:
auth: database/creds/governor-postgres-role
dbname: postgres
host: postgres-postgres.governor.svc.cluster.local
port: 5432
sslmode: disable
hbinterval: 5
hbmaxfail: 5
kvstore:
auth: kv/data/infra/governor/redis
dbname: 0
host: redis-redis.governor.svc.cluster.local
port: 6379
hbinterval: 5
hbmaxfail: 5
objstore:
auth: kv/data/infra/governor/minio
host: minio-minio.governor.svc.cluster.local
port: 9000
sslmode: false
location: us-east-1
hbinterval: 5
hbmaxfail: 5
msgqueue:
auth: kv/data/infra/governor/natsstream
host: natsstream-nats-streaming.governor.svc.cluster.local
port: 4222
cluster: nats-streaming
hbinterval: 5
hbmaxfail: 5
pubsub:
auth: kv/data/infra/governor/nats
host: nats-nats.governor.svc.cluster.local
port: 4222
hbinterval: 5
hbmaxfail: 5
template:
dir: templates
mail:
auth: kv/data/external/smtp
host: localhost
port: 587
fromaddress: [email protected]
fromname: Governor
role:
rolecache: 24h
apikey:
scopecache: 24h
token:
tokensecret: kv/data/app/governor/token
rsakey: kv/data/app/governor/rsakey
issuer: governor
audience: governor
user:
accesstime: 5m
refreshtime: 4380h
refreshcache: 24h
confirmtime: 24h
passwordresettime: 24h
newloginemail: true
passwordminsize: 8
userapproval: false
email:
url:
base: http://governor.dev.home:8080
courier:
fallbacklink: http://governor.dev.home:8080
linkprefix: http://go.governor.dev.home:8080
cachetime: 24h