traefik/configuration.html

93 lines
3.4 KiB
HTML
Raw Normal View History

2015-09-08 11:33:10 +00:00
<!DOCTYPE html>
<html>
<head>
<title>{{.Title}}</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/bootstrap/css/bootstrap-theme.min.css">
<script src="/static/jquery-2.1.4.min.js"></script>
<script src="/static/bootstrap/js/bootstrap.min.js"></script>
<style type="text/css">
body {padding-bottom: 70px;}
.content {margin:10px;}
</style>
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<a class="navbar-brand" href="/html/">Tortuous</a>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li><a href="/html/">Configuration</a></li>
</ul>
</div>
</nav>
2015-09-08 20:03:31 +00:00
<div class="container">
<div class="row">
2015-09-08 20:41:14 +00:00
<div class="panel-default col-md-6">
2015-09-08 20:03:31 +00:00
<div class="panel-heading">Backends</div>
<div class="panel-body">
{{range $keyBackends, $valueBackends := .Configuration.Backends}}
2015-09-08 20:41:14 +00:00
<div class="panel panel-primary" id="{{$keyBackends}}">
2015-09-08 20:03:31 +00:00
<div class="panel-heading">{{$keyBackends}}</div>
<table class="table table-striped table-hover">
<tr>
<td><em>Server</em></td>
<td><em>URL</em></td>
</tr>
{{range $keyServers, $valueServers := $valueBackends.Servers}}
<tr>
<td>{{$keyServers}}</td>
<td><code>{{$valueServers.Url}}</code></td>
</tr>
{{end}}
</table>
</div>
{{end}}
</div>
</div>
2015-09-08 11:33:10 +00:00
2015-09-08 20:41:14 +00:00
<div class="panel-default col-md-6">
2015-09-08 20:03:31 +00:00
<div class="panel-heading">Routes</div>
<div class="panel-body">
{{range $keyRoutes, $valueRoutes := .Configuration.Routes}}
<div class="panel panel-primary">
<div class="panel-heading">{{$keyRoutes}}</div>
<div class="panel-body">
{{range $backend := $valueRoutes.Backends}}
2015-09-08 20:41:14 +00:00
<!--<button type="button" class="btn btn-info">{{$backend}}</button>-->
<a class="btn btn-info" role="button" data-toggle="collapse" href="#{{$backend}}" aria-expanded="false">
{{$backend}}
</a>
2015-09-08 20:03:31 +00:00
{{end}}
</div>
<table class="table table-striped table-hover">
<tr>
<td><em>Rule</em></td>
<td><em>Category</em></td>
<td><em>Value</em></td>
</tr>
{{range $keyRules, $valueRules := $valueRoutes.Rules}}
<tr>
<td>{{$keyRules}}</td>
<td>{{$valueRules.Category}}</td>
<td>{{$valueRules.Value}}</td>
</tr>
{{end}}
</table>
2015-09-08 11:33:10 +00:00
</div>
2015-09-08 20:03:31 +00:00
{{end}}
2015-09-08 11:33:10 +00:00
</div>
</div>
2015-09-08 20:41:14 +00:00
2015-09-08 11:33:10 +00:00
</div>
</div>
2015-09-08 20:41:14 +00:00
2015-09-08 11:33:10 +00:00
</body>
</html>