chore: фронт :3107, API :3001 (Docker, Vite, CORS, доки)

- compose: testing-web 3107:80, testing-backend 3001:3001, PORT+FRONTEND_URL
- nginx → testing-backend:3001; Vite 3107, proxy /api → 3001
- server default PORT 3001; Dockerfile EXPOSE 3001; CORS dev — localhost:3107
- README, журнал, user guide

Made-with: Cursor
This commit is contained in:
Константин Лебединский
2026-04-24 23:14:33 +05:00
parent 42b5e9ad44
commit 47279c72e3
10 changed files with 22 additions and 19 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ server {
}
client_max_body_size 10m;
location /api/ {
proxy_pass http://testing-backend:3107;
proxy_pass http://testing-backend:3001;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
+3 -3
View File
@@ -4,11 +4,11 @@ import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
// Тот же порт, что у API на хосте (docker-compose: 3107:3107) или `npm run dev` в backend
port: 3107,
// UI на 3107; API на 3001 (docker compose и `npm run dev` в backend)
proxy: {
'/api': {
target: 'http://localhost:3107',
target: 'http://localhost:3001',
changeOrigin: true,
},
},