mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
cmd/proxy-to-grafana: add flag for alternative control server
Fixes #12571 Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
5ec01bf3ce
commit
dcb0f189cc
@ -46,6 +46,7 @@
|
|||||||
backendAddr = flag.String("backend-addr", "", "Address of the Grafana server served over HTTP, in host:port format. Typically localhost:nnnn.")
|
backendAddr = flag.String("backend-addr", "", "Address of the Grafana server served over HTTP, in host:port format. Typically localhost:nnnn.")
|
||||||
tailscaleDir = flag.String("state-dir", "./", "Alternate directory to use for Tailscale state storage. If empty, a default is used.")
|
tailscaleDir = flag.String("state-dir", "./", "Alternate directory to use for Tailscale state storage. If empty, a default is used.")
|
||||||
useHTTPS = flag.Bool("use-https", false, "Serve over HTTPS via your *.ts.net subdomain if enabled in Tailscale admin.")
|
useHTTPS = flag.Bool("use-https", false, "Serve over HTTPS via your *.ts.net subdomain if enabled in Tailscale admin.")
|
||||||
|
loginServer = flag.String("login-server", "", "URL to alternative control server. If empty, the default Tailscale control is used.")
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -59,6 +60,7 @@ func main() {
|
|||||||
ts := &tsnet.Server{
|
ts := &tsnet.Server{
|
||||||
Dir: *tailscaleDir,
|
Dir: *tailscaleDir,
|
||||||
Hostname: *hostname,
|
Hostname: *hostname,
|
||||||
|
ControlURL: *loginServer,
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(bradfitz,maisem): move this to a method on tsnet.Server probably.
|
// TODO(bradfitz,maisem): move this to a method on tsnet.Server probably.
|
||||||
|
Loading…
Reference in New Issue
Block a user