23 lines
777 B
Python
23 lines
777 B
Python
import reflex as rx
|
||
from reflex.plugins import SitemapPlugin
|
||
from reflex_components_radix.plugin import RadixThemesPlugin
|
||
|
||
config = rx.Config(
|
||
appearance="dark",
|
||
app_name="app",
|
||
frontend_port=3000,
|
||
backend_port=3001,
|
||
# Absolute API‑URL über Nginx mit Hostname
|
||
api_url="https://man-dan-05/api",
|
||
backend_host="0.0.0.0",
|
||
frontend_host="0.0.0.0",
|
||
# WebSocket über Nginx (wss) mit Hostname und Pfad /api/_event
|
||
backend_ws_url="wss://man-dan-05/api/_event",
|
||
cors_allowed_origins=["https://localhost", "http://localhost:3000", "https://man-dan-05"],
|
||
cors_credentials=True,
|
||
plugins=[RadixThemesPlugin()],
|
||
disable_plugins=[SitemapPlugin],
|
||
vite_allowed_hosts=["localhost", "127.0.0.1", "man-dan-05"],
|
||
env=rx.Env.DEV,
|
||
)
|