mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-30 02:43:05 +00:00
Merge pull request #486 from e-zk/main
This commit is contained in:
commit
48cec3cd90
1 changed files with 13 additions and 14 deletions
19
api.go
19
api.go
|
@ -45,22 +45,21 @@ type registerWebAPITemplateConfig struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
var registerWebAPITemplate = template.Must(
|
var registerWebAPITemplate = template.Must(
|
||||||
template.New("registerweb").Parse(`<html>
|
template.New("registerweb").Parse(`
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Registration - Headscale</title>
|
||||||
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>headscale</h1>
|
<h1>headscale</h1>
|
||||||
|
<h2>Machine registration</h2>
|
||||||
<p>
|
<p>
|
||||||
Run the command below in the headscale server to add this machine to your network:
|
Run the command below in the headscale server to add this machine to your network:
|
||||||
</p>
|
</p>
|
||||||
|
<pre><code>headscale -n NAMESPACE nodes register --key {{.Key}}</code></pre>
|
||||||
<p>
|
|
||||||
<code>
|
|
||||||
<b>headscale -n NAMESPACE nodes register --key {{.Key}}</b>
|
|
||||||
</code>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>`),
|
</html>
|
||||||
)
|
`))
|
||||||
|
|
||||||
// RegisterWebAPI shows a simple message in the browser to point to the CLI
|
// RegisterWebAPI shows a simple message in the browser to point to the CLI
|
||||||
// Listens in /register.
|
// Listens in /register.
|
||||||
|
|
Loading…
Reference in a new issue