mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-30 21:59:46 +02:00
refactor(backend): derive frontend and backend urls from SURFSENSE_PUBLIC_URL
This commit is contained in:
parent
1d050e7d40
commit
2a840fcc10
1 changed files with 3 additions and 2 deletions
|
|
@ -535,9 +535,10 @@ class Config:
|
||||||
# Platform web search (SearXNG)
|
# Platform web search (SearXNG)
|
||||||
SEARXNG_DEFAULT_HOST = os.getenv("SEARXNG_DEFAULT_HOST")
|
SEARXNG_DEFAULT_HOST = os.getenv("SEARXNG_DEFAULT_HOST")
|
||||||
|
|
||||||
NEXT_FRONTEND_URL = os.getenv("NEXT_FRONTEND_URL")
|
SURFSENSE_PUBLIC_URL = os.getenv("SURFSENSE_PUBLIC_URL")
|
||||||
|
NEXT_FRONTEND_URL = os.getenv("NEXT_FRONTEND_URL") or SURFSENSE_PUBLIC_URL
|
||||||
# Backend URL to override the http to https in the OAuth redirect URI
|
# Backend URL to override the http to https in the OAuth redirect URI
|
||||||
BACKEND_URL = os.getenv("BACKEND_URL")
|
BACKEND_URL = os.getenv("BACKEND_URL") or SURFSENSE_PUBLIC_URL
|
||||||
|
|
||||||
# Messaging gateway (Telegram v1)
|
# Messaging gateway (Telegram v1)
|
||||||
# Global master switch: when FALSE, no gateway supervisors/workers start and all
|
# Global master switch: when FALSE, no gateway supervisors/workers start and all
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue