This commit is contained in:
2023-08-13 13:53:46 +02:00
parent 653ed199d6
commit 5ab3d8b54d
4 changed files with 41 additions and 29 deletions

View File

@@ -52,6 +52,9 @@ resource "kubectl_manifest" "webmail_deploy" {
resources:
{}
volumeMounts:
- name: config
mountPath: /wildduck/views/index.hbs
subPath: index.hbs
- name: config
mountPath: /app/config/webmail.toml
subPath: webmail.toml
@@ -71,6 +74,19 @@ resource "kubectl_manifest" "webmail_config" {
namespace: "${var.namespace}"
labels: ${jsonencode(local.webmail-labels)}
data:
index.hbs: |-
<div class="row">
<div class="col-md-12">
<h1><span class="glyphicon glyphicon-inbox" aria-hidden="true"></span> {{serviceName}}</h1>
</div>
</div>
<div class="row">
<div class="col-md-12">
<p>
<a class="btn btn-success btn-md" href="/account/login" role="button"><span class="glyphicon glyphicon-log-in" aria-hidden="true"></span> Log in</a>
</p>
</div>
</div>
webmail.toml: |-
name="Wild Duck Mail"