Allow exposing graphdb and phpmyadmin via config

This commit is contained in:
Tom Wiesing 2023-11-02 13:31:54 +01:00
parent 9f7ec20593
commit a90c68bf5e
No known key found for this signature in database
8 changed files with 139 additions and 14 deletions

View file

@ -32,22 +32,14 @@
</table>
</div>
<div class="pure-u-1-1">
<h2 id="overview">Distillery Configuration</h2>
</div>
<div class="pure-u-1-1">
<pre>
<code class="language-yaml">{{ .Config.MarshalSensitive }}</code>
</pre>
</div>
<div class="pure-u-1-1">
<h2 id="overview">Distillery Passwords</h2>
<h2 id="overview">Distillery Services</h2>
<table class="pure-table pure-table-bordered padding">
<thead>
<tr>
<th>Service</th>
<th>Interface</th>
<th>Username</th>
<th>Password</th>
</tr>
@ -57,6 +49,14 @@
<td>
SQL
</td>
<td>
{{ $pma := .Config.HTTP.PhpMyAdminURL }}
{{ if $pma }}
<a href="{{ $pma }}" class="pure-button pure-button-small" target="_blank" rel="noopener noreferer">PHPMyAdmin</a>
{{ else }}
(accessible via SSH)
{{ end }}
</td>
<td>
<code class="copy">{{ .Config.SQL.AdminUsername }}</code>
</td>
@ -68,6 +68,14 @@
<td>
Triplestore
</td>
<td>
{{ $ts := .Config.HTTP.TSURL }}
{{ if $ts }}
<a href="{{ $ts }}" class="pure-button pure-button-small" target="_blank" rel="noopener noreferer">Workbench</a>
{{ else }}
(accessible via SSH)
{{ end }}
</td>
<td>
<code class="copy">{{ .Config.TS.AdminUsername }}</code>
</td>
@ -77,4 +85,14 @@
</tr>
</tbody>
</table>
</div>
</div>
<div class="pure-u-1-1">
<h2 id="overview">Distillery Configuration</h2>
</div>
<div class="pure-u-1-1">
<pre>
<code class="language-yaml">{{ .Config.MarshalSensitive }}</code>
</pre>
</div>