Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions aastar/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,8 @@ EMAIL_FROM=hi@aastar.io
# allowed redirect_uri prefixes (fail-closed: empty/unset rejects every SSO authorize).
SSO_JWT_SECRET=<32-byte-hex-secret-distinct-from-JWT_SECRET>
SSO_ALLOWED_REDIRECTS=http://localhost:5175,https://myvote.example.com

# MyTask challenge indexer (A-8 consumer, PR #20). Defaults to the MT-8 Sepolia deployment.
# Empty MYTASK_ESCROW_ADDRESS disables MyTask indexing (skips at boot, does not crash).
MYTASK_ESCROW_ADDRESS=0x171234DD282eF2909ec20dafC3F81deBa6761178
MYTASK_INDEX_FROM_BLOCK=11269271
10 changes: 10 additions & 0 deletions ecosystem.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ module.exports = {
PIMLICO_API_KEY: process.env.PIMLICO_API_KEY,
KMS_ENABLED: "true",
KMS_ENDPOINT: "https://kms.aastar.io",
// MyVote SSO (PR #18): SsoService FAILS FAST on boot if SSO_JWT_SECRET is unset — must be
// passed through here or the PM2/Docker backend crashes at startup. Must differ from
// JWT_SECRET. SSO_ALLOWED_REDIRECTS is a comma-separated exact-URL whitelist (empty =
// reject all, fail-closed) — set it to MyVote's `https://<myvote>/sso/callback`.
SSO_JWT_SECRET: process.env.SSO_JWT_SECRET,
SSO_ALLOWED_REDIRECTS: process.env.SSO_ALLOWED_REDIRECTS || "",
// MyTask challenge indexer (PR #20): defaults to the MT-8 Sepolia deployment; override per
// environment. Empty MYTASK_ESCROW_ADDRESS disables the indexer (skips, does not crash).
MYTASK_ESCROW_ADDRESS: process.env.MYTASK_ESCROW_ADDRESS,
MYTASK_INDEX_FROM_BLOCK: process.env.MYTASK_INDEX_FROM_BLOCK,
},
},
{
Expand Down
Loading