feat: add http server with a page serving service informations
This commit is contained in:
1
http/templates/advertising.html
Normal file
1
http/templates/advertising.html
Normal file
@ -0,0 +1 @@
|
||||
{{ define "advertising" }}{{ end }}
|
9
http/templates/footer.html
Normal file
9
http/templates/footer.html
Normal file
@ -0,0 +1,9 @@
|
||||
{{ define "footer" }}
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<div class="content has-text-centered">
|
||||
Ce service est propulsé par Rebound, un logiciel libre diffusé sous licence <a href="#">AGPL-3.0</a>.
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
{{ end }}
|
6
http/templates/head.html
Normal file
6
http/templates/head.html
Normal file
@ -0,0 +1,6 @@
|
||||
{{ define "head" }}
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ .Title }}</title>
|
||||
<link rel="stylesheet" href="assets/bulma-0.9.4.min.css">
|
||||
{{ end }}
|
31
http/templates/index.html
Normal file
31
http/templates/index.html
Normal file
@ -0,0 +1,31 @@
|
||||
{{ define "index" }}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
{{ template "head" }}
|
||||
</head>
|
||||
<body>
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<h1 class="title is-size-1">
|
||||
Besoin de vous échapper ?
|
||||
</h1>
|
||||
<p class="subtitle is-size-3">
|
||||
Bienvenue sur <strong>Rebound</strong>!
|
||||
</p>
|
||||
<div class="content">
|
||||
<p>Rebound est un serveur SSH permettant de créer des tunnels TCP/IP éphémères et privés entre 2 machines positionnées
|
||||
derrière un <abbr title="Network Address Traversal">NAT</abbr>.</p>
|
||||
<p>Pour l'utiliser <strong>un simple client SSH suffit !</strong></p>
|
||||
<pre class="has-background-dark has-text-white-ter is-family-monospace">ssh -R 0:127.0.0.1:<span class="has-text-info"><port></span> rebound@rebound.cadol.es</pre>
|
||||
<p class="is-italic">Où <span class="has-text-info"><port></span> est à remplacer par le port du service
|
||||
s'exécutant sur votre machine en local.</span>
|
||||
<p>Une fois connecté, suivez les instructions. 😉</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ template "advertising" . }}
|
||||
{{ template "footer" . }}
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
Reference in New Issue
Block a user