mirror of
https://github.com/itzg/mc-router.git
synced 2024-11-21 11:25:41 +01:00
parent
69568f88c3
commit
520d0c79da
@ -22,8 +22,6 @@ Routes Minecraft client connections to backend servers based upon the requested
|
|||||||
Use in-cluster kubernetes config (env IN_KUBE_CLUSTER)
|
Use in-cluster kubernetes config (env IN_KUBE_CLUSTER)
|
||||||
-kube-config string
|
-kube-config string
|
||||||
The path to a kubernetes configuration file (env KUBE_CONFIG)
|
The path to a kubernetes configuration file (env KUBE_CONFIG)
|
||||||
-kube-discovery
|
|
||||||
Enables discovery of annotated kubernetes services (env KUBE_DISCOVERY)
|
|
||||||
-mapping string
|
-mapping string
|
||||||
Comma-separated mappings of externalHostname=host:port (env MAPPING)
|
Comma-separated mappings of externalHostname=host:port (env MAPPING)
|
||||||
-metrics-backend string
|
-metrics-backend string
|
||||||
|
@ -3,9 +3,6 @@ package main
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/itzg/go-flagsfiller"
|
|
||||||
"github.com/itzg/mc-router/server"
|
|
||||||
"github.com/sirupsen/logrus"
|
|
||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
@ -14,6 +11,10 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/itzg/go-flagsfiller"
|
||||||
|
"github.com/itzg/mc-router/server"
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MetricsBackendConfig struct {
|
type MetricsBackendConfig struct {
|
||||||
@ -36,11 +37,10 @@ type Config struct {
|
|||||||
CpuProfile string `usage:"Enables CPU profiling and writes to given path"`
|
CpuProfile string `usage:"Enables CPU profiling and writes to given path"`
|
||||||
Debug bool `usage:"Enable debug logs"`
|
Debug bool `usage:"Enable debug logs"`
|
||||||
ConnectionRateLimit int `default:"1" usage:"Max number of connections to allow per second"`
|
ConnectionRateLimit int `default:"1" usage:"Max number of connections to allow per second"`
|
||||||
KubeDiscovery bool `usage:"Enables discovery of annotated kubernetes services"`
|
|
||||||
InKubeCluster bool `usage:"Use in-cluster kubernetes config"`
|
InKubeCluster bool `usage:"Use in-cluster kubernetes config"`
|
||||||
KubeConfig string `usage:"The path to a kubernetes configuration file"`
|
KubeConfig string `usage:"The path to a kubernetes configuration file"`
|
||||||
MetricsBackend string `default:"discard" usage:"Backend to use for metrics exposure/publishing: discard,expvar,influxdb"`
|
MetricsBackend string `default:"discard" usage:"Backend to use for metrics exposure/publishing: discard,expvar,influxdb"`
|
||||||
UseProxyProtocol bool `default:"false" usage:"Send PROXY protocol to backend servers"`
|
UseProxyProtocol bool `default:"false" usage:"Send PROXY protocol to backend servers"`
|
||||||
MetricsBackendConfig MetricsBackendConfig
|
MetricsBackendConfig MetricsBackendConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user