mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-16 10:29:16 +01:00
Add health endpoint to admin panel - Completes #271
This commit is contained in:
parent
900460e958
commit
922902c934
@ -18,6 +18,8 @@
|
||||
const listInfos = ref(null)
|
||||
const isSendingTestEmail = ref(false)
|
||||
const isClearingCache = ref(false)
|
||||
const healthEndPoint = $2fauth.config.subdirectory + '/up'
|
||||
const healthEndPointFullPath = location.hostname + $2fauth.config.subdirectory + '/up'
|
||||
|
||||
/**
|
||||
* Sends a test email
|
||||
@ -76,7 +78,6 @@
|
||||
<VersionChecker />
|
||||
<!-- email config test -->
|
||||
<div class="field">
|
||||
<!-- <h5 class="title is-5">{{ $t('settings.security') }}</h5> -->
|
||||
<label class="label" v-html="$t('admin.forms.test_email.label')" />
|
||||
<p class="help" v-html="$t('admin.forms.test_email.help')" />
|
||||
<p class="help" v-html="$t('admin.forms.test_email.email_will_be_send_to_x', { email: user.email })" />
|
||||
@ -90,9 +91,16 @@
|
||||
<span>{{ $t('commons.send') }}</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4 class="title is-4 pt-4 has-text-grey-light">{{ $t('settings.security') }}</h4>
|
||||
</div>
|
||||
<!-- healthcheck -->
|
||||
<div class="field">
|
||||
<label class="label" v-html="$t('admin.forms.health_endpoint.label')" />
|
||||
<p class="help" v-html="$t('admin.forms.health_endpoint.help')" />
|
||||
</div>
|
||||
<div>
|
||||
<a target="_blank" :href="healthEndPoint">{{ healthEndPointFullPath }}</a>
|
||||
</div>
|
||||
<h4 class="title is-4 pt-5 has-text-grey-light">{{ $t('settings.security') }}</h4>
|
||||
<!-- protect db -->
|
||||
<FormCheckbox v-model="appSettings.useEncryption" @update:model-value="val => useAppSettingsUpdater('useEncryption', val)" fieldName="useEncryption" label="admin.forms.use_encryption.label" help="admin.forms.use_encryption.help" />
|
||||
</form>
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => 'Send a test email to control your instance\'s email configuration. It is important to have a working configuration, otherwise users will not be able to request a reset password.',
|
||||
'email_will_be_send_to_x' => 'The email will be send to <span class="is-family-code has-text-info">:email</span>',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'Health endpoint',
|
||||
'help' => 'URL you can visit to check the health of this 2FAuth instance. This URL can be used to set up a Docker HEALTHCHECK or a Kubernetes HTTPS Liveness probe.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => 'Cache management',
|
||||
'help' => 'Sometimes cache needs to be cleared, for instance after a change to environment variables or an update. You can do it from here.',
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => 'Send a test email to control your instance\'s email configuration. It is important to have a working configuration, otherwise users will not be able to request a reset password.',
|
||||
'email_will_be_send_to_x' => 'The email will be send to <span class="is-family-code has-text-info">:email</span>',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'Health endpoint',
|
||||
'help' => 'URL you can visit to check the health of this 2FAuth instance. This URL can be used to set up a Docker HEALTHCHECK or a Kubernetes HTTPS Liveness probe.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => 'Cache management',
|
||||
'help' => 'Sometimes cache needs to be cleared, for instance after a change to environment variables or an update. You can do it from here.',
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => 'Senden Sie eine Test-E-Mail, um die E-Mail-Konfiguration Ihrer Instanz zu kontrollieren. Es ist wichtig, eine funktionierende Konfiguration zu haben, sonst können Benutzer kein Zurücksetzen des Passworts anfordern.',
|
||||
'email_will_be_send_to_x' => 'Diese E-Mail wird an <span class="is-family-code has-text-info">:email</span> gesendet.',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'Health endpoint',
|
||||
'help' => 'URL you can visit to check the health of this 2FAuth instance. This URL can be used to set up a Docker HEALTHCHECK or a Kubernetes HTTPS Liveness probe.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => 'Cache-Verwaltung',
|
||||
'help' => 'Manchmal muss der Cache geleert werden, zum Beispiel nach einer Änderung an Umgebungsvariablen oder einer Aktualisierung. Sie können es von hier aus tun.',
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => 'Send a test email to control your instance\'s email configuration. It is important to have a working configuration, otherwise users will not be able to request a reset password.',
|
||||
'email_will_be_send_to_x' => 'The email will be send to <span class="is-family-code has-text-info">:email</span>',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'Health endpoint',
|
||||
'help' => 'URL you can visit to check the health of this 2FAuth instance. This URL can be used to set up a Docker HEALTHCHECK or a Kubernetes HTTPS Liveness probe.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => 'Cache management',
|
||||
'help' => 'Sometimes cache needs to be cleared, for instance after a change to environment variables or an update. You can do it from here.',
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => 'Send a test email to control your instance\'s email configuration. It is important to have a working configuration, otherwise users will not be able to request a reset password.',
|
||||
'email_will_be_send_to_x' => 'The email will be send to <span class="is-family-code has-text-info">:email</span>',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'Health endpoint',
|
||||
'help' => 'URL you can visit to check the health of this 2FAuth instance. This URL can be used to set up a Docker HEALTHCHECK or a Kubernetes HTTPS Liveness probe.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => 'Cache management',
|
||||
'help' => 'Sometimes cache needs to be cleared, for instance after a change to environment variables or an update. You can do it from here.',
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => 'Envoyez un email de test pour contrôler la capacité de votre instance à utiliser l\'email. Il est important d\'avoir une configuration fonctionnelle, sans quoi les utilisateurs ne pourront pas demander de réinitialisation de leur mot de passe par exemple.',
|
||||
'email_will_be_send_to_x' => 'L\'email sera envoyé à <span class="is-family-code has-text-info">:email</span>',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'État de santé',
|
||||
'help' => 'URL que vous pouvez visiter pour vérifier l\'état de santé de cette instance 2FAuth. Cette URL peut être utilisée pour configurer une sonde Docker HEALTHCHECK ou une sonde Kubernetes HTTPS Liveness.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => 'Gestion du cache',
|
||||
'help' => 'Parfois le cache doit être effacé, par exemple après une modification de variable d\'environnement ou une mise à jour. Vous pouvez le faire ici.',
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => 'अपने इंस्टेंस के ईमेल कॉन्फ़िगरेशन को नियंत्रित करने के लिए एक परीक्षण ईमेल भेजें। कार्यशील कॉन्फ़िगरेशन होना महत्वपूर्ण है, अन्यथा उपयोगकर्ता रीसेट पासवर्ड का अनुरोध नहीं कर पाएंगे।',
|
||||
'email_will_be_send_to_x' => 'ईमेल <span class=\'is-family-code has-text-info\'>:email</span> पर भेजा जाएगा',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'Health endpoint',
|
||||
'help' => 'URL you can visit to check the health of this 2FAuth instance. This URL can be used to set up a Docker HEALTHCHECK or a Kubernetes HTTPS Liveness probe.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => 'कैश का मैनेजमेन्ट',
|
||||
'help' => 'कभी-कभी कैश को साफ़ करने की आवश्यकता होती है, उदाहरण के लिए एनवायरनमेंट वेरीएबल में बदलाव या अपडेट के बाद। आप इसे यहां से कर सकते हैं.',
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => 'Send a test email to control your instance\'s email configuration. It is important to have a working configuration, otherwise users will not be able to request a reset password.',
|
||||
'email_will_be_send_to_x' => 'The email will be send to <span class="is-family-code has-text-info">:email</span>',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'Health endpoint',
|
||||
'help' => 'URL you can visit to check the health of this 2FAuth instance. This URL can be used to set up a Docker HEALTHCHECK or a Kubernetes HTTPS Liveness probe.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => 'Cache management',
|
||||
'help' => 'Sometimes cache needs to be cleared, for instance after a change to environment variables or an update. You can do it from here.',
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => 'Send a test email to control your instance\'s email configuration. It is important to have a working configuration, otherwise users will not be able to request a reset password.',
|
||||
'email_will_be_send_to_x' => 'The email will be send to <span class="is-family-code has-text-info">:email</span>',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'Health endpoint',
|
||||
'help' => 'URL you can visit to check the health of this 2FAuth instance. This URL can be used to set up a Docker HEALTHCHECK or a Kubernetes HTTPS Liveness probe.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => 'Cache management',
|
||||
'help' => 'Sometimes cache needs to be cleared, for instance after a change to environment variables or an update. You can do it from here.',
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => 'インスタンスのメール設定を確認するためのテストメールを送信します。 メール設定が正しくないと、ユーザーはパスワードリセットを要求できなくなります。',
|
||||
'email_will_be_send_to_x' => '<span class="is-family-code has-text-info">:email</span> にメールを送信',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'Health endpoint',
|
||||
'help' => 'URL you can visit to check the health of this 2FAuth instance. This URL can be used to set up a Docker HEALTHCHECK or a Kubernetes HTTPS Liveness probe.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => 'キャッシュ管理',
|
||||
'help' => '環境変数の変更や更新の後などにキャッシュのクリアが必要になる場合があります。ここから実行できます。',
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => '인스턴스의 이메일 설정을 확인하기 위해 테스트 이메일을 보내세요. 설정이 정상적으로 되어 있지 않으면, 사용자가 비밀번호 재설정을 요청할 수 없습니다.',
|
||||
'email_will_be_send_to_x' => '이메일이 <span class="is-family-code has-text-info">:email</span>로 전송됩니다.',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'Health endpoint',
|
||||
'help' => 'URL you can visit to check the health of this 2FAuth instance. This URL can be used to set up a Docker HEALTHCHECK or a Kubernetes HTTPS Liveness probe.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => '캐시 관리',
|
||||
'help' => '환경 변수를 변경하거나 업데이트한 후와 같은 경우 캐시를 삭제해야 할 수 있습니다. 아래에서 삭제할 수 있습니다.',
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => 'Stuur een test e-mail om de e-mailconfiguratie van uw instantie te beheren. Het is belangrijk om een werkende configuratie te hebben, anders kunnen gebruikers geen nieuw wachtwoord aanvragen.',
|
||||
'email_will_be_send_to_x' => 'De e-mail zal worden verzonden naar <span class="is-family-code has-text-info">:email</span>',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'Health endpoint',
|
||||
'help' => 'URL you can visit to check the health of this 2FAuth instance. This URL can be used to set up a Docker HEALTHCHECK or a Kubernetes HTTPS Liveness probe.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => 'Cachebeheer',
|
||||
'help' => 'Soms moet de cache worden geleegd, bijvoorbeeld na een wijziging in omgevingsvariabelen of een update. Je kunt dit hier doen.',
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => 'Send a test email to control your instance\'s email configuration. It is important to have a working configuration, otherwise users will not be able to request a reset password.',
|
||||
'email_will_be_send_to_x' => 'The email will be send to <span class="is-family-code has-text-info">:email</span>',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'Health endpoint',
|
||||
'help' => 'URL you can visit to check the health of this 2FAuth instance. This URL can be used to set up a Docker HEALTHCHECK or a Kubernetes HTTPS Liveness probe.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => 'Cache management',
|
||||
'help' => 'Sometimes cache needs to be cleared, for instance after a change to environment variables or an update. You can do it from here.',
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => 'Envie um e-mail de teste para verificar a capacidade da sua instância de usar e-mail. É importante ter uma configuração funcional, caso contrário os usuários não poderão solicitar redefinição de senha, por exemplo.',
|
||||
'email_will_be_send_to_x' => 'O e-mail será enviado para <span class="is-family-code has-text-info">:email</span>',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'Health endpoint',
|
||||
'help' => 'URL you can visit to check the health of this 2FAuth instance. This URL can be used to set up a Docker HEALTHCHECK or a Kubernetes HTTPS Liveness probe.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => 'Gerenciamento de Cache',
|
||||
'help' => 'Às vezes, o cache precisa ser limpo, por exemplo, após uma alteração de variáveis de ambiente ou de uma atualização. Você pode fazer isso a partir daqui.',
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => 'Send a test email to control your instance\'s email configuration. It is important to have a working configuration, otherwise users will not be able to request a reset password.',
|
||||
'email_will_be_send_to_x' => 'The email will be send to <span class="is-family-code has-text-info">:email</span>',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'Health endpoint',
|
||||
'help' => 'URL you can visit to check the health of this 2FAuth instance. This URL can be used to set up a Docker HEALTHCHECK or a Kubernetes HTTPS Liveness probe.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => 'Cache management',
|
||||
'help' => 'Sometimes cache needs to be cleared, for instance after a change to environment variables or an update. You can do it from here.',
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => 'Отправить тестовое письмо для проверки конфигурации электронной почты вашего экземпляра 2FAuth. Важно иметь работающую конфигурацию, иначе пользователи не смогут запросить пароль для сброса.',
|
||||
'email_will_be_send_to_x' => 'Письмо будет отправлено на адрес <span class="is-family-code has-text-info">:email</span>',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'Health endpoint',
|
||||
'help' => 'URL you can visit to check the health of this 2FAuth instance. This URL can be used to set up a Docker HEALTHCHECK or a Kubernetes HTTPS Liveness probe.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => 'Управление кэшем',
|
||||
'help' => 'Иногда кэш должен быть очищен, например, после изменения переменных окружения или обновления приложения. Вы можете сделать это отсюда.',
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => 'Send a test email to control your instance\'s email configuration. It is important to have a working configuration, otherwise users will not be able to request a reset password.',
|
||||
'email_will_be_send_to_x' => 'The email will be send to <span class="is-family-code has-text-info">:email</span>',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'Health endpoint',
|
||||
'help' => 'URL you can visit to check the health of this 2FAuth instance. This URL can be used to set up a Docker HEALTHCHECK or a Kubernetes HTTPS Liveness probe.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => 'Cache management',
|
||||
'help' => 'Sometimes cache needs to be cleared, for instance after a change to environment variables or an update. You can do it from here.',
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => 'Uygulamadaki ePosta ayarlarını kontrol etmek için bir kontrol ePostası gönder. Çalışan bir sistemin olması önemlidir aksi takdirde kullanıcılar parola sıfırlama talebi gönderemezler.',
|
||||
'email_will_be_send_to_x' => 'ePosta <span class="is-family-code has-text-info">:email</span> adresine iletilecektir',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'Health endpoint',
|
||||
'help' => 'URL you can visit to check the health of this 2FAuth instance. This URL can be used to set up a Docker HEALTHCHECK or a Kubernetes HTTPS Liveness probe.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => 'Önbellek yönetimi',
|
||||
'help' => 'Önbelleğin zaman zaman, örneğin bir değişkenin değiştirilmesinden veya uygulamanın güncellenmesinden sonra, temizlenmesi gerekir. Buradan yapabilirsiniz.',
|
||||
|
@ -127,6 +127,10 @@
|
||||
'help' => '发送测试邮件来验证送信配置是否正确。如果发送邮件的配置不正确,用户将无法请求重置密码。',
|
||||
'email_will_be_send_to_x' => '邮件将被发送到 <span class="is-family-code has-text-info">:email</span>',
|
||||
],
|
||||
'health_endpoint' => [
|
||||
'label' => 'Health endpoint',
|
||||
'help' => 'URL you can visit to check the health of this 2FAuth instance. This URL can be used to set up a Docker HEALTHCHECK or a Kubernetes HTTPS Liveness probe.',
|
||||
],
|
||||
'cache_management' => [
|
||||
'label' => '缓存管理',
|
||||
'help' => '某些情况下需要清除缓存,例如更改了环境变量,或更新了应用。您可以在此处进行缓存清理。',
|
||||
|
Loading…
Reference in New Issue
Block a user