feat: Enhance server security and performance by adding helmet for security headers, implementing rate limiting, and centralizing error handling; update frontend API calls to use a dedicated api module for consistency
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 4m37s

This commit is contained in:
2025-08-11 19:11:30 +07:00
parent 087e0eb491
commit 6afd43f9e8
13 changed files with 98 additions and 358 deletions
+7 -7
View File
@@ -1,6 +1,6 @@
import { useState, useEffect } from 'react';
import { Link } from 'react-router-dom';
import axios from 'axios';
import api from './lib/api.js';
import {
IconWorld,
IconNetwork,
@@ -80,12 +80,12 @@ function Dashboard() {
try {
// Загружаем данные с обработкой ошибок для каждого endpoint
const results = await Promise.allSettled([
axios.get('/api/domains-new', { params: { countOnly: true } }),
axios.get('/api/ip-ranges', { params: { countOnly: true } }),
axios.get('/api/asns', { params: { countOnly: true } }),
axios.get('/api/servers'),
axios.get('/api/servers/availability', { params: { ttlSeconds: 60 } }),
axios.get('/api/s3/last-modified')
api.get('/domains-new', { params: { countOnly: true } }),
api.get('/ip-ranges', { params: { countOnly: true } }),
api.get('/asns', { params: { countOnly: true } }),
api.get('/servers'),
api.get('/servers/availability', { params: { ttlSeconds: 60 } }),
api.get('/s3/last-modified')
]);
// Обрабатываем результаты