This document describes all environment variables used to configure the Wallet Service.
Copy the example environment file:
cp example.env .env
Edit .env with your values
Restart the service for changes to take effect
| Variable | Type | Default | Description |
|---|---|---|---|
HOST |
string | 0.0.0.0 |
Server bind address |
PORT |
number | 3000 |
Server port |
NODE_ENV |
string | test |
Environment: development, production, test |
HTTPS |
boolean | false |
Enable HTTPS |
WEBSERVICE_URL |
string | localhost |
Public URL of the service |
LANG |
string | de |
Default language |
| Variable | Type | Default | Description |
|---|---|---|---|
LOGGER |
boolean | false |
Enable logging |
LOG_LEVEL |
string | info |
Log level: debug, info, warn, error |
SENTRY_DSN |
string | - | Sentry error tracking DSN |
| Variable | Type | Default | Description |
|---|---|---|---|
AUTH_TOKEN |
string | - | Authentication token for Apple Wallet requests |
CERT_PASSPHRASE |
string | - | Passphrase for Apple certificate |
| Variable | Type | Default | Description |
|---|---|---|---|
PASS_TYPE_IDENTIFIER |
string | pass.de.dotSource.DigitalMembershipCard |
Apple Pass Type ID |
TEAM_IDENTIFIER |
string | - | Apple Developer Team ID |
| Variable | Type | Default | Description |
|---|---|---|---|
SF_USERNAME |
string | - | Salesforce username |
SF_PASSWD |
string | - | Salesforce password |
SF_SECURITY_TOKEN |
string | - | Salesforce security token |
SF_CONSUMER_KEY |
string | - | Connected App consumer key |
SF_CONSUMER_SECERET |
string | - | Connected App consumer secret |
SF_REDIRECT_URI |
string | https://localhost |
OAuth redirect URI |
SF_LOGIN_URL |
string | https://test.salesforce.com |
Salesforce login endpoint |
| Variable | Type | Default | Description |
|---|---|---|---|
SMTP_USERNAME |
string | - | SMTP username/email |
SMTP_PASSWD |
string | - | SMTP password |
# Application
HOST="0.0.0.0"
PORT="3000"
NODE_ENV="production"
WEBSERVICE_URL="wallet.example.com"
# Logging
LOGGER="true"
LOG_LEVEL="info"
SENTRY_DSN="https://your-sentry-dsn"
# Security
AUTH_TOKEN="your-secure-auth-token"
CERT_PASSPHRASE="your-certificate-passphrase"
# Apple Wallet
PASS_TYPE_IDENTIFIER="pass.com.example.membership"
TEAM_IDENTIFIER="ABCD123456"
# Salesforce
SF_USERNAME="api@example.com"
SF_PASSWD="your-password"
SF_SECURITY_TOKEN="your-security-token"
SF_CONSUMER_KEY="your-consumer-key"
SF_CONSUMER_SECERET="your-consumer-secret"
SF_LOGIN_URL="https://login.salesforce.com"
# Email
SMTP_USERNAME="noreply@example.com"
SMTP_PASSWD="your-smtp-password"
To generate Apple Wallet passes, you need:
Place certificates in src/lib/certs/:
src/lib/certs/
├── pass.pem # Your Pass Type ID certificate
├── pass.key # Private key
└── wwdr.pem # Apple WWDR certificate
For Google Wallet integration:
src/lib/assets/key.jsonAUTH_TOKENHTTPS=true and configure TLS certificatesIn production mode (NODE_ENV=production), the service automatically enables:
The service supports multiple deployment platforms:
| Platform | Configuration File |
|---|---|
| Docker | Dockerfile, docker-compose.yml |
| Heroku | Procfile, app.json |
| Railway | railway.json |
| Fly.io | fly.toml |