For the complete documentation index, see https://docs.wallyandcody.com/llms.txt. Every page is also available as Markdown: add .md to its URL, or request it with an Accept: text/markdown header.
Complete environment variable reference for the backend, admin dashboard, public portal, inventory agent, and MCP server.
Configuration
Each service in the platform reads its configuration from environment variables. Copy the corresponding .env.example file to .env and fill in the values before starting the stack.
All .env.example files are in their respective service directories: root .env.example, backend/.env.example, frontend/admin/.env.example, frontend/public/.env.example, inventory-agent/.env.example, and inventory-mcp/.env.example.
Backend
The backend configuration is loaded from backend/.env and parsed by the config module. Variables are grouped by function.
Authentication
Variable
Default
Description
JWT_SECRET_KEY
Required
Access token signing key. Minimum 32 characters.
JWT_EXPIRES_IN
15m
Access token lifetime.
JWT_REFRESH_SECRET_KEY
Required
Refresh token signing key. Minimum 32 characters.
JWT_REFRESH_EXPIRES_IN
7d
Refresh token lifetime.
JWT_ISSUER
shopee-autoredeemer
JWT issuer claim.
JWT_AUDIENCE
shopee-autoredeemer-admin
JWT audience claim.
Server and CORS
Variable
Default
Description
PORT_NUMBER
8080
Backend listen port.
ALLOWED_CORS_HOSTNAMES
Required
Comma-separated list of allowed CORS origins.
PUBLIC_REDEMPTION_PORTAL_HOSTNAME
Required
Public portal URL used to construct /r/:directory_key links.