-
Notifications
You must be signed in to change notification settings - Fork 25
/
config.yaml
138 lines (130 loc) · 4.98 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
## config.yaml provides a default set of configuration options
## service author included in the /info response
author: "Optimizely Inc."
## name of the running application included in the /info response
name: "optimizely"
## version of the application included in the /info response and startup logs
## Defaults to the latest git tag `git describe --tags`
#version: custom-build
## list of SDK keys to be pre-fetched during startup (recommended for production)
#sdkkeys:
# - <sdk-key-1>
# - <sdk-key-2>
##
## log: logger configuration
##
log:
## log level used to filter logs of lesser severity (from highest to lowest):
## panic, fatal, error, warn, info, debug
level: info
## enable pretty colorized console logging. setting to false will output
## structured JSON logs. Recommended false in production.
pretty: true
##
## http server configuration
##
server:
## the maximum duration for reading the entire request, including the body.
## Value can be set in seconds (e.g. "5s") or milliseconds (e.g. "5000ms")
readTimeout: 5s
## the maximum duration before timing out writes of the response.
## Value can be set in seconds (e.g. "5s") or milliseconds (e.g. "5000ms")
writeTimeout: 10s
## path for the health status api
healthCheckPath: "/health"
## the location of the TLS key file
# keyFile: <key-file>
## the location of the TLS certificate file
# certFile: <cert-file>
##
## api service configuration
##
api:
## the maximum number of concurrent requests handled by the api listener
# maxConns: 10000
## http listener port
port: "8080"
## set to true to enable subscribing to notifications via an SSE event-stream
enableNotifications: false
## set to true to be able to override experiment bucketing. (recommended false in production)
enableOverrides: true
## for details check this out.
## https://github.com/go-chi/cors
# cors:
# ## If allowedOrigins is nil or empty, value is set to ["*"].
# allowedOrigins:
# - ["*"]
# ## If allowedMethods is nil or empty, value is set to (HEAD, GET and POST).
# allowedMethods:
# - "HEAD"
# - "GET"
# - "POST"
# - "PUT"
# - "OPTIONS"
# - "DELETE"
# ## Default value is [] but "Origin" is always appended to the list.
# allowedHeaders: []
# exposedHeaders: []
# allowedCredentials: false
# maxAge: 300
##
## admin service configuration
##
admin:
## http listener port
port: "8088"
##
## webhook service receives update notifications to your Optimizely project. Receipt of the webhook will
## trigger an immediate download of the datafile from the CDN
##
webhook:
## http listener port
port: "8089"
# ## a map of Optimizely Projects to one or more SDK keys
# projects:
# ## <project-id>: Optimizely project id as an integer
# <project-id>:
# ## sdkKeys: a list of SDKs linked to this project
# sdkKeys:
# - <sdk-key-1>
# - <sdk-key-1>
# ## secret: webhook secret used the validate the notification
# secret: <secret-10000>
# ## skipSignatureCheck: override the signature check (not recommended for production)
# skipSignatureCheck: true
##
## optimizely client configurations (options passed to the underlying go-sdk)
##
client:
## the time between successive polls for updated project configuration
pollingInterval: 1m
## the number of events in a batch
batchSize: 10
## the max number of events pending dispatch, setting this too low may result in events being dropped
queueSize: 1000
## the maximum time between events being dispatched
flushInterval: 30s
## Template URL for SDK datafile location. The template should specify a "%s" token for SDK key substitution.
datafileURLTemplate: "https://cdn.optimizely.com/datafiles/%s.json"
## URL for dispatching events.
eventURL: "https://logx.optimizely.com/v1/events"
##
## optimizely runtime configuration can be used for debugging and profiling the go runtime.
## These should only be configured when debugging in a non-production environment.
##
runtime:
## SetBlockProfileRate controls the fraction of goroutine blocking events
## that are reported in the blocking profile. The profiler aims to sample
## an average of one blocking event per rate nanoseconds spent blocked.
##
## To include every blocking event in the profile, pass rate = 1.
## To turn off profiling entirely, pass rate <= 0.
blockProfileRate: 0
## mutexProfileFraction controls the fraction of mutex contention events
## that are reported in the mutex profile. On average 1/rate events are
## reported. The previous rate is returned.
##
## To turn off profiling entirely, pass rate 0.
## To just read the current rate, pass rate < 0.
## (For n>1 the details of sampling may change.)
mutexProfileFraction: 0