You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,7 +178,7 @@ The following shows a JSON file for routes config, where `default-server` can al
178
178
}
179
179
```
180
180
181
-
Sending a SIGHUP signal will cause mc-router to reload the routes config from disk.
181
+
Sending a SIGHUP signal will cause mc-router to reload the routes config from disk. The file can also be watched for changes by setting `-routes-config-watch` or the env variable `ROUTES_CONFIG_WATCH` to "true".
Copy file name to clipboardExpand all lines: cmd/mc-router/main.go
+9-21Lines changed: 9 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -16,18 +16,6 @@ import (
16
16
"github.com/sirupsen/logrus"
17
17
)
18
18
19
-
typeMetricsBackendConfigstruct {
20
-
Influxdbstruct {
21
-
Interval time.Duration`default:"1m"`
22
-
Tagsmap[string]string`usage:"any extra tags to be included with all reported metrics"`
23
-
Addrstring
24
-
Usernamestring
25
-
Passwordstring
26
-
Databasestring
27
-
RetentionPolicystring
28
-
}
29
-
}
30
-
31
19
typeWebhookConfigstruct {
32
20
Urlstring`usage:"If set, a POST request that contains connection status notifications will be sent to this HTTP address"`
33
21
RequireUserbool`default:"false" usage:"Indicates if the webhook will only be called if a user is connecting rather than just server list/ping"`
@@ -62,11 +50,11 @@ type Config struct {
62
50
DockerTimeoutint`default:"0" usage:"Timeout configuration in seconds for the Docker integrations"`
63
51
DockerRefreshIntervalint`default:"15" usage:"Refresh interval in seconds for the Docker integrations"`
64
52
MetricsBackendstring`default:"discard" usage:"Backend to use for metrics exposure/publishing: discard,expvar,influxdb,prometheus"`
65
-
UseProxyProtocolbool`default:"false" usage:"Send PROXY protocol to backend servers"`
66
-
ReceiveProxyProtocolbool`default:"false" usage:"Receive PROXY protocol from backend servers, by default trusts every proxy header that it receives, combine with -trusted-proxies to specify a list of trusted proxies"`
67
-
TrustedProxies []string`usage:"Comma delimited list of CIDR notation IP blocks to trust when receiving PROXY protocol"`
68
-
RecordLoginsbool`default:"false" usage:"Log and generate metrics on player logins. Metrics only supported with influxdb or prometheus backend"`
69
-
MetricsBackendConfigMetricsBackendConfig
53
+
MetricsBackendConfig server.MetricsBackendConfig
54
+
UseProxyProtocolbool`default:"false" usage:"Send PROXY protocol to backend servers"`
55
+
ReceiveProxyProtocolbool`default:"false" usage:"Receive PROXY protocol from backend servers, by default trusts every proxy header that it receives, combine with -trusted-proxies to specify a list of trusted proxies"`
56
+
TrustedProxies[]string`usage:"Comma delimited list of CIDR notation IP blocks to trust when receiving PROXY protocol"`
57
+
RecordLoginsbool`default:"false" usage:"Log and generate metrics on player logins. Metrics only supported with influxdb or prometheus backend"`
70
58
RoutesRoutesConfig
71
59
NgrokTokenstring`usage:"If set, an ngrok tunnel will be established. It is HIGHLY recommended to pass as an environment variable."`
0 commit comments