diff --git a/.env.example b/.env.example index a41c8bf..029102b 100644 --- a/.env.example +++ b/.env.example @@ -1 +1,2 @@ +REMNAWAVE_URL=https://panel.example.com REMNAWAVE_API_TOKEN=your-token-from-remnawave-panel \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 491caac..3b4226c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uvpn-backend" -version = "0.7.10" +version = "0.7.11" description = "FastAPI backend with Docker for uvpn.shop" readme = "README.md" requires-python = ">=3.12" diff --git a/routers/hosts.py b/routers/hosts.py index 3af936d..8b459fd 100644 --- a/routers/hosts.py +++ b/routers/hosts.py @@ -10,7 +10,7 @@ import re logging.basicConfig(level=logging.INFO) router = APIRouter(prefix='/api/v1', tags=['hosts']) -remnawave = RemnawaveSDK(base_url='http://remnawave:3000', token=getenv('REMNAWAVE_API_TOKEN')) +remnawave = RemnawaveSDK(base_url=getenv('REMNAWAVE_URL'), token=getenv('REMNAWAVE_API_TOKEN')) def clean_host_name(name):