forked from motiv-labs/janus
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjanus.sample.toml
150 lines (139 loc) · 3.78 KB
/
janus.sample.toml
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
139
140
141
142
143
144
145
146
147
148
149
150
################################################################
# Global configuration
################################################################
#
# port = 8080
#
# SSL certificate and key used
#
# Optional
#
# [tls]
# port = 8433
# redirect = true
# CertFile = "janus.crt"
# KeyFile = "janus.key"
#
# Enable debug mode
#
# Optional
# Default: false
#
# debug = true
#
# Timeout in seconds.
# Duration to give active requests a chance to finish during hot-reloads
#
# Optional
# Default: 10
#
# graceTimeOut = 10
# If non-zero, controls the maximum idle (keep-alive) to keep per-host. If zero, DefaultMaxIdleConnsPerHost is used.
# If you encounter 'too many open files' errors, you can either change this value, or change `ulimit` value.
#
# Optional
# Default: http.DefaultMaxIdleConnsPerHost
# MaxIdleConnsPerHost = 200
#
# Flush interval for upgraded Proxy connections.
# Optional
# BackendFlushInterval = 0
#
# Defines the time period of how often the idle connections maintained by the proxy are closed.
# Optional
# CloseIdleConnsPeriod = 0
################################################################
# Logging
################################################################
# Configure Janus logging
# See https://github.com/hellofresh/logging-go for complete documentation
#[log]
# level = "info"
# format = "json"
# writer = "stderr"
################################################################
# Management API configuration backend
################################################################
[web]
# port = 8081
# SSL certificate and key used
#
# Optional
# [web.tls]
# port = 8444
# redirect = true
# CertFile = "janus.crt"
# KeyFile = "janus.key"
#
# Set REST API to read-only mode
#
# Optional
# ReadOnly = false
#
# Basic JWT configuration
#
# Required
#
[web.credentials]
algorithm = "HS256"
secret = "secret key"
# [web.credentials.github]
# organizations = ["yourOrganization"]
# teams = {yourOrganization = "devs"}
# [web.credentials.basic]
# users = {admin = "admin"}
################################################################
# Metrics
################################################################
# To enable Janus to export internal metrics to Statsd
#[stats]
# dsn = "statsd:8125"
# prefix = "sandbox.janus."
################################################################
# Storage
################################################################
# You can choose to use `redis` or `in memory` datastores
# [storage]
# dsn = "memory://localhost"
#
# If you wanna use redis enable this
# [storage]
# dsn = "redis://janus-storage:6379"
################################################################
# Proxy Definition Database
################################################################
# You can choose to use `mongodb` or `file based` databases to store your
# API definition configuration.
#
# WARNING, if you use Janus in Docker, you have 2 options:
# - create a file on your host and mount it as a volume
# storageFile = "acme.json"
# $ docker run -v "/my/host/janus" janus
# - mount the folder containing the file as a volume
# dsn = "file:///etc/janus"
# $ docker run -v "/my/host/acme:/etc/janus" janus
#
# Required
#
# [database]
# dsn = "file:///etc/janus"
#
# If you want to use mongodb enable this
# [database]
# dsn = "mongodb://janus-database:27017/janus"
################################################################
# Distributed Tracing
################################################################
#
# [tracing]
# tracer = "jaeger"
# Google Clooud Platform - Stackdriver Trace
# [googleCloud]
# projectID = ""
# email = ""
# privateKey = ""
# privateKeyID = ""
# Jeager Distributed Tracing
# [jaeger]
# dsn = "localhost:6831"
# serviceName = ""