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 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ipwhitelist",
"version": "0.5.69",
"version": "0.5.70",
"description": "IP WhiteList microservice for cloud provider",
"main": "server.js",
"scripts": {
+1 -1
View File
@@ -46,7 +46,7 @@ function createV2Router() {
.logout { color: #ef5350; }
.label { color: #888; }
</style></head><body>
<h2>✅ Вход выполнен</h2>
<h2>✅ Вход выполнен <small style="color:#888">v${config.version}</small></h2>
<p><span class="label">Email:</span> ${u.email}</p>
<p><span class="label">clientId:</span> ${u.clientId} <span class="label">(активная компания)</span></p>
<p><span class="label">Компания:</span> ${u.companyName}</p>
+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">