diff --git a/main.go b/main.go index 5cd75eb..e726f2b 100644 --- a/main.go +++ b/main.go @@ -109,6 +109,8 @@ func (ph *PHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { } var allowedEnvs = []string{ + "SHORT_NAME", + "CONTACT_NAME", "CONTACT_PHONE", "CONTACT_SMS", "CONTACT_IMESSAGE", diff --git a/static/index.html b/static/index.html index 880243e..a797a75 100644 --- a/static/index.html +++ b/static/index.html @@ -23,7 +23,7 @@ a { } .contact { - margin-bottom: 10px; + margin-bottom: 16px; white-space: nowrap; } @@ -31,7 +31,7 @@ a { margin-right: 10px; } - Page Ian + Page {{.SHORT_NAME}} @@ -50,7 +50,7 @@ function error(err1, err2) { document.getElementById('err').show(); } -async function pageIan() { +async function page() { const msg = document.getElementById('message').value; if (msg == '') { @@ -94,7 +94,7 @@ async function pageIan() {
- Page Ian + Page {{.SHORT_NAME}}

@@ -166,7 +166,7 @@ async function pageIan() { {{end}} -
+
@@ -177,6 +177,45 @@ async function pageIan() { document.getElementById('curl').innerText = `curl -d 'msg=Test page' ${window.location.href}`;
+ +
+ + +