fix mtls-auth

This commit is contained in:
Frank Elsinga
2026-01-05 22:53:37 +01:00
parent 76eedface6
commit d99b5279b3
2 changed files with 12 additions and 6 deletions
+6
View File
@@ -1246,6 +1246,12 @@
"minimumIntervalWarning": "Intervals below 20 seconds may result in poor performance.",
"lowIntervalWarning": "Are you sure want to set the interval value below 20 seconds? Performance may be degraded, particularly if there are a large number of monitors.",
"imageResetConfirmation": "Image reset to default",
"mtls-auth-server-cert-label": "Cert",
"mtls-auth-server-cert-placeholder": "Cert body",
"mtls-auth-server-key-label": "Key",
"mtls-auth-server-key-placeholder": "Key body",
"mtls-auth-server-ca-label": "CA",
"mtls-auth-server-ca-placeholder": "Server CA",
"avgPing": "Avg Ping",
"maxPing": "Max Ping",
"minPing": "Min Ping"
+6 -6
View File
@@ -1166,16 +1166,16 @@
<template v-if="monitor.authMethod && monitor.authMethod !== null ">
<template v-if="monitor.authMethod === 'mtls' ">
<div class="my-3">
<label for="tls-cert" class="form-label">{{ $t("Cert") }}</label>
<textarea id="tls-cert" v-model="monitor.tlsCert" class="form-control" :placeholder="$t('Cert body')" required></textarea>
<label for="tls-cert" class="form-label">{{ $t("mtls-auth-server-cert-label") }}</label>
<textarea id="tls-cert" v-model="monitor.tlsCert" class="form-control" :placeholder="$t('mtls-auth-server-cert-placeholder')" required></textarea>
</div>
<div class="my-3">
<label for="tls-key" class="form-label">{{ $t("Key") }}</label>
<textarea id="tls-key" v-model="monitor.tlsKey" class="form-control" :placeholder="$t('Key body')" required></textarea>
<label for="tls-key" class="form-label">{{ $t("mtls-auth-server-key-label") }}</label>
<textarea id="tls-key" v-model="monitor.tlsKey" class="form-control" :placeholder="$t('mtls-auth-server-key-placeholder')" required></textarea>
</div>
<div class="my-3">
<label for="tls-ca" class="form-label">{{ $t("CA") }}</label>
<textarea id="tls-ca" v-model="monitor.tlsCa" class="form-control" :placeholder="$t('Server CA')"></textarea>
<label for="tls-ca" class="form-label">{{ $t("mtls-auth-server-ca-label") }}</label>
<textarea id="tls-ca" v-model="monitor.tlsCa" class="form-control" :placeholder="$t('mtls-auth-server-ca-placeholder')"></textarea>
</div>
</template>
<template v-else-if="monitor.authMethod === 'oauth2-cc' ">