| giolekva | 4b2934b | 2021-10-08 19:37:12 +0400 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="utf-8" /> |
| 5 | <title>Nebula Mesh VPN Manager</title> |
| 6 | </head> |
| 7 | <body> |
| 8 | <form action="/sign-node" method="POST"> |
| 9 | <label for="ca-name">CA Name:</label><br /> |
| 10 | <input type="text" name="ca-name" /><br /> |
| 11 | <label for="ca-namespace">CA Namespace:</label><br /> |
| 12 | <input type="text" name="ca-namespace" /><br /> |
| 13 | <label for="node-name">Node Name:</label><br /> |
| 14 | <input type="text" name="node-name" /><br /> |
| 15 | <label for="node-namespace">Node Namespace:</label><br /> |
| 16 | <input type="text" name="node-namespace" /><br /> |
| 17 | <label for="ip-cidr">IP/CIDR:</label><br /> |
| 18 | <input type="text" name="ip-cidr" /><br /> |
| 19 | <label for="pub-key">Public Key:</label><br /> |
| 20 | <textarea name="pub-key">Put node public key here</textarea><br /> |
| 21 | <input type="submit" value="Sign node key" /> |
| 22 | </form> |
| 23 | {{range .}} |
| 24 | <a href="/ca/{{.Namespace}}/{{.Name}}"><h1>{{.Name}}</h1></a> |
| 25 | <table> |
| 26 | <tr> |
| 27 | <th>Node</th> |
| 28 | <th>IP</th> |
| 29 | </tr> |
| 30 | {{range .Nodes}} |
| 31 | <tr> |
| 32 | <td> |
| 33 | <a href="/node/{{.Namespace}}/{{.Name}}">{{.Name}}</a> |
| 34 | </td> |
| 35 | <td> |
| 36 | {{.IP}} |
| 37 | </td> |
| 38 | </tr> |
| 39 | {{end}} |
| 40 | </table> |
| 41 | {{end}} |
| 42 | </body> |
| 43 | </html> |
| 44 | |