vouch-proxy/templates/index.tmpl

52 lines
1.7 KiB
Cheetah

<!DOCTYPE html>
<html>
<head>
<link rel="icon" type="image/png" href="{{ .DocumentRoot }}/static/img/favicon.ico" />
<link rel="stylesheet" href="{{ .DocumentRoot }}/static/css/main.css" />
<meta name="robots" content="noindex, nofollow" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=7"
/>
<title>Vouch Proxy - {{ .Msg }}</title>
</head>
<body>
<div class="top">
<a href="https://github.com/vouch/vouch-proxy"><img src="{{ .DocumentRoot }}/static/img/multicolor_V_500x500.png"/></a>
<a href="https://github.com/vouch/vouch-proxy"><span>Vouch Proxy</span></a>
</div>
<div class="content">
<h1>{{ .Msg }}</h1>
{{ if .Testing }}
<p class="test">
<h2>-- test mode --</h2>
The config file includes <code>testing: true</code>
<p/>
All 302 redirects will be captured and presented as links here
<ul>
<li><a href="{{ .DocumentRoot }}/login">login</a></li>
<li><a href="{{ .DocumentRoot }}/logout">logout</a></li>
<li><a href="{{ .DocumentRoot }}/validate">validate</a></li>
{{ if .TestURLs }}
{{ range $url := .TestURLs}}
<li><a href="{{ $url }}">{{ $url }}</a></li>
{{ end }}
{{ end }}
</ul>
{{ end }}
<div class="bottom">
For support, please contact your network administrator or whomever configured Nginx to use Vouch Proxy.
<p/>
For help with <a href="https://github.com/vouch/vouch-proxy">Vouch Proxy</a> or to file a bug report, please visit <a href="https://github.com/vouch/vouch-proxy">https://github.com/vouch/vouch-proxy</a>
<p/>
</div>
</div>
</body>
</html>