Skip to content

Commit

Permalink
Update documentation to include new OTP/TestFlight URL env variables
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel D’Aquino <[email protected]>
Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
danieldaquino authored and jb55 committed Apr 9, 2024
1 parent ef5da28 commit 7c496d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ The Damus API backend for Damus Purple and other functionality.

- `DB_PATH`: Path to the folder where to save mdb files.
- `DEEPL_KEY`: API key for DeepL translation service (Can be set to something bogus for local testing with mock translations)
- `TESTFLIGHT_URL`: URL for the TestFlight app (optional)

#### Apple In-App Purchase (IAP)

Expand All @@ -32,6 +33,13 @@ The Damus API backend for Damus Purple and other functionality.
- `LN_RUNE`: The public node ID of the Lightning Network node
- `TEST_PRODUCTS`: Set to `"true"` to enable test products for Lightning Network payments with a value of 1 satoshi (for testing only)


#### OTP login

- `OTP_MAX_TRIES`: The maximum number of OTP tries allowed before locking the user out. Defaults to 10.
- `SESSION_EXPIRY`: The time in seconds before a session expires. Defaults to 1 week.
- `OTP_EXPIRY`: The time in seconds before an OTP expires. Defaults to 5 minutes.

#### Extras

- `CORS_ALLOWED_ORIGINS` (optional): Comma separated list of allowed origins for CORS. Generally only needed for testing or staging.
Expand Down

0 comments on commit 7c496d9

Please sign in to comment.