From 1f57b690dd29b5d455608b362dfc6d0febf4330e Mon Sep 17 00:00:00 2001 From: randogoth Date: Mon, 8 Jun 2026 10:29:16 +0300 Subject: [PATCH] Update README and declare missing dependencies Add JIRORIAN_BASE_URL, JIRORIAN_PORT, JIRORIAN_APP_SECRETS to env var table, fix dev command path (src/jirorian/), and explicitly declare coincurve and cryptography in pyproject.toml. Co-Authored-By: Claude Sonnet 4.6 --- README.md | 7 +++++-- pyproject.toml | 2 ++ uv.lock | 4 ++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b93e877..7590235 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,10 @@ All configuration is via environment variables: | Variable | Description | |---|---| +| `JIRORIAN_BASE_URL` | Public base URL of this service (e.g. `https://upload.example.com`) | +| `JIRORIAN_PORT` | Port to listen on (default: `8000`) | +| `JIRORIAN_DB` | SQLite DB path (default: `jirorian.db`) | +| `JIRORIAN_APP_SECRETS` | JSON object mapping app names to their shared secrets, e.g. `{"myapp": "secret123"}` | | `R2_ENDPOINT` | `https://.r2.cloudflarestorage.com` | | `R2_ACCESS_KEY_ID` | R2 access key | | `R2_SECRET_ACCESS_KEY` | R2 secret key | @@ -23,13 +27,12 @@ All configuration is via environment variables: | `R2_CDN_URL` | Public CDN base URL | | `SERVICE_NOSTR_PRIVKEY` | Service Nostr private key (hex) | | `SERVICE_RELAY_URL` | Relay to subscribe to for registrations | -| `JIRORIAN_DB` | SQLite DB path (default: `jirorian.db`) | ## Development ```bash nix develop # enter dev shell with uv + virtualenv -uv run fastapi dev jirorian/main.py +uv run fastapi dev src/jirorian/main.py ``` ## Deployment diff --git a/pyproject.toml b/pyproject.toml index 73ab4cd..dd241de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,6 +8,8 @@ dependencies = [ "boto3>=1.35.0", "pynostr>=0.6.2", "websockets>=13.0", + "coincurve>=21.0.0", + "cryptography>=44.0.0", ] [project.scripts] diff --git a/uv.lock b/uv.lock index 4b21e70..c0190df 100644 --- a/uv.lock +++ b/uv.lock @@ -579,6 +579,8 @@ version = "0.1.0" source = { editable = "." } dependencies = [ { name = "boto3" }, + { name = "coincurve" }, + { name = "cryptography" }, { name = "fastapi", extra = ["standard"] }, { name = "pynostr" }, { name = "websockets" }, @@ -587,6 +589,8 @@ dependencies = [ [package.metadata] requires-dist = [ { name = "boto3", specifier = ">=1.35.0" }, + { name = "coincurve", specifier = ">=21.0.0" }, + { name = "cryptography", specifier = ">=44.0.0" }, { name = "fastapi", extras = ["standard"], specifier = ">=0.115.0" }, { name = "pynostr", specifier = ">=0.6.2" }, { name = "websockets", specifier = ">=13.0" },