mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-04-28 11:30:00 +00:00
Implement a serverside fix for reverse proxy users (#169)
This commit is contained in:
parent
2fa2956c4c
commit
04b5a9c96a
11 changed files with 409 additions and 20 deletions
18
.env.example
18
.env.example
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue