v2: версия 0.5.70 — отображается в /v2 и /v2/app

This commit is contained in:
2026-06-12 17:08:46 +04:00
parent 1a2dd87705
commit 0dc9820a31
4 changed files with 5 additions and 3 deletions
+1
View File
@@ -29,6 +29,7 @@
// ═══════════════════════════════════════════════════════════════════════════════
module.exports = {
version: '0.5.69',
// Keycloak — ТЕСТОВЫЙ (наш на ВМ). Заменить на production через V2_KC_BASE_URL.
kcBaseUrl: process.env.V2_KC_BASE_URL || 'https://italo.kube5s.ru/realms/ipwhitelist',
+2 -1
View File
@@ -8,6 +8,7 @@
const express = require('express');
const q = require('../db/queries');
const config = require('../config');
const { validate } = require('../validators');
function createCrudRouter() {
@@ -171,7 +172,7 @@ function renderApp({ entries, company, limit, used, allCompanies, clId, user, in
</style></head><body>
<div class="bar">
<span><strong>V2 IP WhiteList</strong></span>
<span><strong>V2 IP WhiteList</strong> <small>v${config.version}</small></span>
<span>${user.email} | ${user.fio || ''} ${user.isAdmin ? '| ADMIN' : ''}</span>
<span>
<form method="GET" action="/v2/app" style="display:inline">