Add initial setup for local HTTPS debugging and Nginx configuration
- Introduce `setup-certs.sh` script for generating trusted local TLS certificates using mkcert. - Add Nginx configuration files for local and Docker environments to handle HTTPS requests and proxy to backend services. - Update `docker-compose.yaml` to include Nginx service for unified TLS entry and adjust frontend service ports for local development. - Create `AGENTS.md` and `README.md` files to document the local HTTPS setup process and usage instructions. - Modify backend startup commands in `README.md` for consistency with new requirements. - Add `.gitignore` to exclude generated certificates from version control.
This commit is contained in:
@@ -68,7 +68,7 @@ uv pip install fastapi "uvicorn[standard]" sqlalchemy asyncpg greenlet python-do
|
||||
|
||||
cp .env.example .env # CRUD 阶段只需 DATABASE_URL;语音再填模型 key
|
||||
# 起 Postgres:在 ai-video/ 下 docker compose up -d postgres
|
||||
.venv/bin/uvicorn app:app --reload --port 8000
|
||||
uv run --with-requirements requirements.txt uvicorn app:app --reload --port 8000
|
||||
```
|
||||
|
||||
> pipecat 相关代码用**惰性导入**,所以阶段 A 不装 pipecat 也能启动并跑 `/api/*` 与 `/health`;
|
||||
@@ -82,7 +82,7 @@ api 服务挂了源码 + `--reload`,前端用 npm dev + HMR,改代码都即时
|
||||
|
||||
```bash
|
||||
cd ai-video
|
||||
docker compose up # 前台起 pg + api(:8000)+ ui(:3000),日志直出
|
||||
docker compose up # 前台起 pg + api(:8000)+ ui(:3030),日志直出
|
||||
docker compose up -d # 后台起;看日志 docker compose logs -f api
|
||||
docker compose down # 停止全部
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""FastAPI 入口。挂载路由,放行前端跨域,启动时建表。
|
||||
|
||||
启动: uvicorn app:app --reload --port 8000
|
||||
启动: uv run --with-requirements requirements.txt uvicorn app:app --reload --port 8000
|
||||
|
||||
路由分组(对齐 dograh 的 routes/ 结构):
|
||||
/health 健康检查
|
||||
|
||||
Reference in New Issue
Block a user