Skip to content

Commit 51676c6

Browse files
authored
Make registration screen easier to use (juanfont#1975)
1 parent 1f4b595 commit 51676c6

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ after improving the test harness as part of adopting [#1460](https://github.com/
5858
- Log available update as warning [#1877](https://github.com/juanfont/headscale/pull/1877)
5959
- Add `autogroup:internet` to Policy [#1917](https://github.com/juanfont/headscale/pull/1917)
6060
- Restore foreign keys and add constraints [#1562](https://github.com/juanfont/headscale/pull/1562)
61+
- Make registration page easier to use on mobile devices
6162

6263
## 0.22.3 (2023-05-12)
6364

hscontrol/handlers.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,26 @@ var registerWebAPITemplate = template.Must(
143143
<html>
144144
<head>
145145
<title>Registration - Headscale</title>
146+
<meta name=viewport content="width=device-width, initial-scale=1">
147+
<style>
148+
body {
149+
font-family: sans;
150+
}
151+
code {
152+
display: block;
153+
padding: 20px;
154+
border: 1px solid #bbb;
155+
background-color: #eee;
156+
}
157+
</style>
146158
</head>
147159
<body>
148160
<h1>headscale</h1>
149161
<h2>Machine registration</h2>
150162
<p>
151163
Run the command below in the headscale server to add this machine to your network:
152164
</p>
153-
<pre><code>headscale nodes register --user USERNAME --key {{.Key}}</code></pre>
165+
<code>headscale nodes register --user USERNAME --key {{.Key}}</code>
154166
</body>
155167
</html>
156168
`))

0 commit comments

Comments
 (0)