From 2475f5a8b92ef0dd28e7af5f36d01b25243ed778 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Thu, 6 Feb 2025 15:22:34 +0000 Subject: Initial commit --- web/index.html | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ web/web.go | 13 +++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 web/index.html create mode 100644 web/web.go (limited to 'web') diff --git a/web/index.html b/web/index.html new file mode 100644 index 0000000..cdb46ed --- /dev/null +++ b/web/index.html @@ -0,0 +1,59 @@ + + + + + {{.Host}} tunneling service + + + + + +

{{.Host}} tunneling service

+

+ This service uses WireGuard to expose your local server to the Internet. + (No custom client needed!) +

+ +

Usage

+ +

+ In your terminal: +

+ +
+curl -sSL http://{{.Host}}/[PORT YOU WANT TO FORWARD] | sh
+    
+ +

+ For example, to forward port 8080: +

+ +
+curl -sSL http://{{.Host}}/8080 | sh
+    
+ +

+ You will receive a URL that you can use to access your server from anywhere. +

+ +

Policy

+ +
+
Interface name: {{.Iface}}
+
The automated set up script will overwrite any existing interface with this name with its own.
+ +
Inactivity time: {{.ExpireAfter}} seconds
+
Tunnels will expire after this amount of time. (You will need to re-create a new one.)
+
+ + + + \ No newline at end of file diff --git a/web/web.go b/web/web.go new file mode 100644 index 0000000..eb955fe --- /dev/null +++ b/web/web.go @@ -0,0 +1,13 @@ +package web + +import ( + "embed" + "html/template" +) + +//go:embed * +var files embed.FS + +func Index() *template.Template { + return template.Must(template.ParseFS(files, "index.html")) +} -- cgit v1.2.3-70-g09d2