feat: add portfolio ownership model, auth guards, and migration
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user