diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -287,10 +287,10 @@ This means CLI flags always take precedence over environment variables, which ta | |||
| 287 | ngit-grasp --help | 287 | ngit-grasp --help |
| 288 | 288 | ||
| 289 | # Run with CLI flags (override everything else) | 289 | # Run with CLI flags (override everything else) |
| 290 | ngit-grasp --domain relay.example.com --owner-npub npub1... --bind-address 0.0.0.0:8080 | 290 | ngit-grasp --domain relay.example.com --relay-owner-nsec nsec1... --bind-address 0.0.0.0:8080 |
| 291 | 291 | ||
| 292 | # Mix CLI flags with environment variables | 292 | # Mix CLI flags with environment variables |
| 293 | NGIT_OWNER_NPUB=npub1... ngit-grasp --domain relay.example.com | 293 | NGIT_RELAY_OWNER_NSEC=nsec1... ngit-grasp --domain relay.example.com |
| 294 | ``` | 294 | ``` |
| 295 | 295 | ||
| 296 | ### Configuration Options | 296 | ### Configuration Options |
| @@ -300,7 +300,7 @@ NGIT_OWNER_NPUB=npub1... ngit-grasp --domain relay.example.com | |||
| 300 | | Option | CLI Flag | Environment Variable | Default | | 300 | | Option | CLI Flag | Environment Variable | Default | |
| 301 | | ----------------- | --------------------- | ------------------------ | -------------------------------------------- | | 301 | | ----------------- | --------------------- | ------------------------ | -------------------------------------------- | |
| 302 | | Domain | `--domain` | `NGIT_DOMAIN` | (required) | | 302 | | Domain | `--domain` | `NGIT_DOMAIN` | (required) | |
| 303 | | Owner npub | `--owner-npub` | `NGIT_OWNER_NPUB` | (optional) | | 303 | | Relay owner nsec | `--relay-owner-nsec` | `NGIT_RELAY_OWNER_NSEC` | `.relay-owner.nsec` file (auto-generated) | |
| 304 | | Relay name | `--relay-name` | `NGIT_RELAY_NAME` | `${domain} grasp relay` | | 304 | | Relay name | `--relay-name` | `NGIT_RELAY_NAME` | `${domain} grasp relay` | |
| 305 | | Relay description | `--relay-description` | `NGIT_RELAY_DESCRIPTION` | `Git Nostr Relay - a grasp implementation` | | 305 | | Relay description | `--relay-description` | `NGIT_RELAY_DESCRIPTION` | `Git Nostr Relay - a grasp implementation` | |
| 306 | | Git data path | `--git-data-path` | `NGIT_GIT_DATA_PATH` | `./data/git` (temp dir for memory backend) | | 306 | | Git data path | `--git-data-path` | `NGIT_GIT_DATA_PATH` | `./data/git` (temp dir for memory backend) | |
| @@ -339,7 +339,7 @@ NGIT_OWNER_NPUB=npub1... ngit-grasp --domain relay.example.com | |||
| 339 | ```bash | 339 | ```bash |
| 340 | # Using environment variables (recommended for production) | 340 | # Using environment variables (recommended for production) |
| 341 | export NGIT_DOMAIN=gitnostr.com | 341 | export NGIT_DOMAIN=gitnostr.com |
| 342 | export NGIT_OWNER_NPUB=npub1... | 342 | export NGIT_RELAY_OWNER_NSEC=nsec1... # Or let it auto-generate from .relay-owner.nsec |
| 343 | export NGIT_BIND_ADDRESS=0.0.0.0:8080 | 343 | export NGIT_BIND_ADDRESS=0.0.0.0:8080 |
| 344 | export NGIT_DATABASE_BACKEND=lmdb | 344 | export NGIT_DATABASE_BACKEND=lmdb |
| 345 | 345 | ||