mirror of
https://github.com/johndoe6345789/snippet-pastebin.git
synced 2026-04-24 13:34:55 +00:00
Generated by Spark: Should handle caprover / cloudflare cors - Check frontend and backend config. example setup: https://frontend.example.com https://backend.example.com
This commit is contained in:
18
.env.example
18
.env.example
@@ -1,4 +1,16 @@
|
||||
# Flask Backend Configuration (Optional)
|
||||
# If set, the app will automatically use Flask backend instead of IndexedDB
|
||||
# Example: VITE_FLASK_BACKEND_URL=http://localhost:5000
|
||||
# Frontend Configuration
|
||||
# Flask Backend URL - If set, the app will automatically use Flask backend instead of IndexedDB
|
||||
# Development: VITE_FLASK_BACKEND_URL=http://localhost:5000
|
||||
# Production: VITE_FLASK_BACKEND_URL=https://backend.example.com
|
||||
VITE_FLASK_BACKEND_URL=
|
||||
|
||||
# Backend Configuration (for backend/app.py)
|
||||
# CORS Allowed Origins - Comma-separated list of allowed frontend URLs
|
||||
# Development: CORS_ALLOWED_ORIGINS=*
|
||||
# Production: CORS_ALLOWED_ORIGINS=https://frontend.example.com
|
||||
# Multiple: CORS_ALLOWED_ORIGINS=https://frontend.example.com,https://app.example.com
|
||||
CORS_ALLOWED_ORIGINS=*
|
||||
|
||||
# Database Path - Location of SQLite database file in backend
|
||||
# Default: DATABASE_PATH=/app/data/snippets.db
|
||||
DATABASE_PATH=/app/data/snippets.db
|
||||
|
||||
Reference in New Issue
Block a user