diff --git a/.env.example b/.env.example index 9ee65a4..63140b1 100644 --- a/.env.example +++ b/.env.example @@ -19,6 +19,25 @@ EBAY_SANDBOX_CERT_ID= # production | sandbox EBAY_ENV=production +# ── eBay OAuth — Authorization Code (user account connection) ───────────────── +# Enables paid-tier users to connect their personal eBay account for instant +# trust scoring via Trading API GetUser (account age + per-category feedback). +# Without this, Snipe falls back to Shopping API + Playwright scraping. +# +# Setup steps: +# 1. Go to https://developer.ebay.com/my/keys → select your Production app +# 2. Under "Auth Accepted URL / RuName", create a new entry: +# - Callback URL: https://your-domain/api/ebay/callback +# (e.g. https://menagerie.circuitforge.tech/snipe/api/ebay/callback) +# - Snipe generates the redirect automatically — just register the URL above +# 3. Copy the RuName value (looks like "YourName-AppName-PRD-xxx-yyy") +# and paste it as EBAY_RUNAME below. +# 4. Set EBAY_OAUTH_REDIRECT_URI to the same HTTPS callback URL. +# +# Self-hosted: your callback URL must be HTTPS and publicly reachable. +# EBAY_RUNAME=YourName-AppName-PRD-xxxxxxxx-xxxxxxxx +# EBAY_OAUTH_REDIRECT_URI=https://your-domain/api/ebay/callback + # ── eBay Account Deletion Webhook ────────────────────────────────────────────── # Register endpoint at https://developer.ebay.com/my/notification — required for # production key activation. Set EBAY_NOTIFICATION_ENDPOINT to the public HTTPS @@ -32,6 +51,9 @@ EBAY_WEBHOOK_VERIFY_SIGNATURES=true # ── Database ─────────────────────────────────────────────────────────────────── SNIPE_DB=data/snipe.db +# Product identifier reported in cf-orch coordinator analytics for per-app breakdown +CF_APP_NAME=snipe + # ── Cloud mode (managed / menagerie instance only) ───────────────────────────── # Leave unset for self-hosted / local use. When set, per-user DB isolation # and Heimdall licensing are enabled. compose.cloud.yml sets CLOUD_MODE=true