CORS und uploads-Problem behoben
This commit is contained in:
@@ -1,27 +1,29 @@
|
||||
# Development Environment Configuration
|
||||
NODE_ENV=development
|
||||
# Development Environment - Linux Server
|
||||
# Generated on Mon Sep 22 05:45:27 PM UTC 2025
|
||||
|
||||
# Database Configuration
|
||||
DB_HOST=localhost
|
||||
DB_PORT=3306
|
||||
DB_USER=root
|
||||
DB_PASSWORD=
|
||||
DB_NAME=rezepte_klaus
|
||||
# Server Configuration
|
||||
HOST_IP=192.168.178.94
|
||||
DEVELOPMENT_MODE=true
|
||||
|
||||
# Database URL für Prisma
|
||||
DATABASE_URL=mysql://root:@localhost:3306/rezepte_klaus
|
||||
# Database Configuration (local development DB)
|
||||
MYSQL_PASSWORD=dev_password_123
|
||||
MYSQL_ROOT_PASSWORD=dev_root_password_123
|
||||
|
||||
# Backend Configuration
|
||||
BACKEND_PORT=3001
|
||||
# CORS Configuration for remote access
|
||||
CORS_ORIGIN=*
|
||||
|
||||
# Upload Configuration
|
||||
UPLOAD_DIR=./uploads
|
||||
MAX_FILE_SIZE=10485760
|
||||
ALLOWED_EXTENSIONS=jpg,jpeg,png,webp
|
||||
# Development URLs:
|
||||
# - Frontend: http://192.168.178.94:3000
|
||||
# - Backend API: http://192.168.178.94:3001/api
|
||||
# - phpMyAdmin: http://192.168.178.94:8080
|
||||
# - MySQL: 192.168.178.94:3307
|
||||
|
||||
# Frontend Configuration (Vite Dev Server)
|
||||
VITE_API_URL=http://localhost:3001
|
||||
# Registry Configuration (for image pulls)
|
||||
DOCKER_REGISTRY=docker.citysensor.de
|
||||
# DOCKER_USERNAME=your_username
|
||||
# DOCKER_PASSWORD=your_password
|
||||
|
||||
# Security
|
||||
JWT_SECRET=dev_jwt_secret_change_in_production
|
||||
CORS_ORIGIN=http://localhost:5173
|
||||
# Development Notes:
|
||||
# - Use this for testing Linux-specific behavior
|
||||
# - Access from Mac via: http://192.168.178.94:3000
|
||||
# - SSH tunnel for secure access: ssh -L 3000:192.168.178.94:3000 user@server
|
||||
|
||||
Reference in New Issue
Block a user