diff --git a/README.md b/README.md index 25bf2fb..ed0805c 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ ```bash cd frontend npm install -npm run dev # http://localhost:5173, /api и /auth проксируются на :8134 +npm run dev # http://localhost:15134, /api и /auth проксируются на :8134 ``` Прод-сборка: `docker compose up -d --build` (настройки — `.env`, шаблон `.env.example`). diff --git a/backend/app/config.py b/backend/app/config.py index cd45ef3..4b452ac 100644 --- a/backend/app/config.py +++ b/backend/app/config.py @@ -12,7 +12,7 @@ gauth_base_url: str = "https://auth.gnexus.space" gauth_client_id: str = "" gauth_client_secret: str = "" - gauth_redirect_uri: str = "http://localhost:5173/auth/callback" + gauth_redirect_uri: str = "http://localhost:8134/auth/callback" # Database database_url: str = "postgresql+psycopg://gntodo:gntodo@localhost:5432/gntodo" diff --git a/backend/app/main.py b/backend/app/main.py index aa498a8..43efc48 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -14,7 +14,7 @@ settings = get_settings() app.add_middleware( CORSMiddleware, - allow_origins=["http://localhost:5173"], + allow_origins=["http://localhost:15134"], allow_credentials=True, allow_methods=["*"], allow_headers=["*"], diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 1fa4f2f..0beaf31 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -5,6 +5,7 @@ export default defineConfig({ plugins: [vue()], server: { + port: 15134, // 5173 занят другими проектами; мнемоника: 1 + API 8134 proxy: { '/api': { target: 'http://localhost:8134',