feat: add portfolio ownership model, auth guards, and migration

This commit is contained in:
2026-04-14 00:13:34 +09:00
parent e89690b1dd
commit 9787cf3159
22 changed files with 681 additions and 70 deletions
-20
View File
@@ -57,26 +57,6 @@ uvicorn app.main:app --reload
pytest
```
## Production Deployment (HTTPS with Caddy)
For production, it is recommended to run PortfolioHub behind [Caddy](https://caddyserver.com/), which handles TLS certificate provisioning automatically.
A minimal `Caddyfile`:
```
your-domain.com {
reverse_proxy localhost:8000
}
```
See **[docs/technical/deployment-and-operations.md](docs/technical/deployment-and-operations.md)** for a full guide covering:
- Caddy installation on Linux/Ubuntu
- CORS configuration (`PORTFOLIOHUB_ALLOWED_ORIGINS`)
- Running `uvicorn` as a systemd service
- Docker Compose setup with a Caddy sidecar container
- Firewall port configuration (80, 443)
## CLI
The repository now includes a `portfoliohub` CLI that mirrors the main portfolio flows from `jsbot-kis`.