diff --git a/admin-panel/src/main.jsx b/admin-panel/src/main.jsx index 1ec4825..fd86a2d 100644 --- a/admin-panel/src/main.jsx +++ b/admin-panel/src/main.jsx @@ -3,7 +3,7 @@ import { createRoot } from 'react-dom/client'; import { RefreshCw, Server, ShieldCheck, Wifi } from 'lucide-react'; import './styles.css'; -const API_URL = import.meta.env.VITE_API_URL || 'http://localhost:3000'; +const API_URL = import.meta.env.VITE_API_URL || 'https://api.stackworks.ru'; function App() { const [health, setHealth] = useState(null); @@ -12,7 +12,7 @@ function App() { async function checkHealth() { setLoading(true); try { - const response = await fetch(`${API_URL}/health`); + const response = await fetch(API_URL + '/health'); setHealth(await response.json()); } catch (error) { setHealth({ ok: false, error: error.message }); @@ -29,13 +29,13 @@ function App() {
-

Raspi Telegram Live Chat

-

Админка управления чатом

-

MVP-каркас: backend на Raspberry Pi, фронт на VPS/FastPanel, операторы в Telegram.

+

WSChat

+

Admin panel

+

VPS backend, website widget, Telegram operators.

@@ -50,13 +50,13 @@ function App() {

FastPanel-safe deploy

-

Деплой будет обновлять только static-файлы admin/widget внутри разрешённых webroot-директорий.

+

Deploy updates only widget/admin static files inside the configured webroot.

-

SOCKS5 для Telegram

-

Настройки proxy заложены в backend config и будут вынесены в админку отдельным разделом.

+

Telegram SOCKS5

+

Proxy settings are already supported by backend config and will be moved into admin settings.