forked from motiv-labs/janus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjanus.sample.toml
More file actions
148 lines (137 loc) · 3.57 KB
/
Copy pathjanus.sample.toml
File metadata and controls
148 lines (137 loc) · 3.57 KB
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
################################################################
# Global configuration
################################################################
# port = 8080
#
# SSL certificate and key used
#
# Optional
#
# CertFile = "janus.crt"
# KeyFile = "janus.key"
#
# Enable debug mode
#
# Optional
# Default: false
#
# debug = true
#
# Log level
#
# Optional
# Default: "info"
#
# logLevel = "info"
#
# 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
#
# If set to true invalid SSL certificates are accepted for backends.
# Note: This disables detection of man-in-the-middle attacks so should only be used on secure backend networks.
# Optional
# Default: false
#
# InsecureSkipVerify = false
#
# 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
################################################################
# Management API configuration backend
################################################################
[web]
# port = 8081
# SSL certificate and key used
#
# Optional
#
# CertFile = "janus.crt"
# KeyFile = "janus.key"
#
# Set REST API to read-only mode
#
# Optional
# ReadOnly = false
#
# Basic JWT configuration
#
# Required
#
[credentials]
secret = "secret key"
username = "admin"
password = "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]
# Google Clooud Platform - Stackdriver Trace
# [googleCloud]
# projectID = ""
# email = ""
# privateKey = ""
# privateKeyID = ""
# Appdash - Embedded Server
# [appdash]
# dsn = "localhost:8701"
# url = ":8700"
# Appdash - Remote Server
# [appdash]
# dsn = "remote-url:8701"