Make registration screen easier to use (#1975)

This commit is contained in:
Lars Kiesow 2024-06-15 09:40:49 +02:00 committed by GitHub
parent 1f4b59566a
commit 51676c668b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 1 deletions

View file

@ -143,6 +143,18 @@ var registerWebAPITemplate = template.Must(
<html>
<head>
<title>Registration - Headscale</title>
<meta name=viewport content="width=device-width, initial-scale=1">
<style>
body {
font-family: sans;
}
code {
display: block;
padding: 20px;
border: 1px solid #bbb;
background-color: #eee;
}
</style>
</head>
<body>
<h1>headscale</h1>
@ -150,7 +162,7 @@ var registerWebAPITemplate = template.Must(
<p>
Run the command below in the headscale server to add this machine to your network:
</p>
<pre><code>headscale nodes register --user USERNAME --key {{.Key}}</code></pre>
<code>headscale nodes register --user USERNAME --key {{.Key}}</code>
</body>
</html>
`))