Implement a serverside fix for reverse proxy users (#169)

This commit is contained in:
Luis Novo 2025-10-19 08:02:21 -03:00 committed by GitHub
parent 2fa2956c4c
commit 04b5a9c96a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 409 additions and 20 deletions

View file

@ -1,8 +1,22 @@
# API CONFIGURATION
# URL where the API can be accessed by the browser
# Default: http://localhost:5055 (works for most Docker setups)
# Change this if you're running on a different host/port (e.g., http://your-server-ip:5055)
# This setting allows the frontend to connect to the API at runtime (no rebuild needed!)
#
# IMPORTANT: Do NOT include /api at the end - it will be added automatically!
#
# Common scenarios:
# - Docker on localhost: http://localhost:5055 (default, works for most cases)
# - Docker on LAN/remote server: http://192.168.1.100:5055 or http://your-server-ip:5055
# - Behind reverse proxy with custom domain: https://your-domain.com
# - Behind reverse proxy with subdomain: https://api.your-domain.com
#
# Examples for reverse proxy users:
# - API_URL=https://notebook.example.com (frontend will call https://notebook.example.com/api/*)
# - API_URL=https://api.example.com (frontend will call https://api.example.com/api/*)
#
# Note: If not set, the system will auto-detect based on the incoming request.
# Only set this if you need to override the auto-detection (e.g., reverse proxy scenarios).
API_URL=http://localhost:5055
# SECURITY