fix: Mixed Content hatası - API_URL boş string yapıldı + categories proxy eklendi

Ne yaptık:
- admin-panel/src/config/api.js: API_URL default 'http://127.0.0.1:8001' → '' (boş string)
- admin-panel/nginx.conf: /categories/ route için backend proxy location bloğu eklendi

Neden yaptık:
- HTTPS sitesinden (sslip.io) http://127.0.0.1:8001'e istek Mixed Content hatasına yol açıyordu
- Boş string ile relative URL kullanılıyor, nginx /api/ ve /categories/ isteklerini backend'e proxy'liyor
- CategoryManagement.jsx /categories/ prefix'li URL kullandığından nginx'te ayrı proxy bloğu gerekiyordu

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
furkanyigit34
2026-03-31 00:19:13 +03:00
parent 5d976b26f4
commit 1aa626d4b3
2 changed files with 21 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
*/
// API Base URL from environment or default
export const API_URL = import.meta.env.VITE_API_URL ?? 'http://127.0.0.1:8001'
export const API_URL = import.meta.env.VITE_API_URL ?? ''
// Timeout configurations (in milliseconds)
export const TIMEOUT_CONFIG = {