feat: add http server with a page serving service informations

This commit is contained in:
2023-09-20 21:54:08 -06:00
parent 56d7174b96
commit fdaffca43f
23 changed files with 605 additions and 135 deletions

View File

@ -0,0 +1 @@
{{ define "advertising" }}{{ end }}

View 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
View 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
View 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">&lt;port&gt;</span> rebound@rebound.cadol.es</pre>
<p class="is-italic"><span class="has-text-info">&lt;port&gt;</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 }}