DumbWareio_DumbAssets/.env.example
abite 52f3be257f
feat: add multi-currency support via environment variables (#66)
- Add CURRENCY_CODE and CURRENCY_LOCALE environment variables in server.js
- Inject currency configuration into frontend via dynamic config.js endpoint
- Update formatCurrency() function to use global app config for dynamic currency formatting
- Support any ISO 4217 currency code with proper locale-specific formatting
- Add comprehensive currency configuration documentation (CURRENCY_CONFIG.md)
- Update README.md with currency environment variables and collapsible configuration guide
- Include Docker/Docker Compose configuration examples for currency settings
- Maintain backward compatibility with USD/en-US defaults

Supported currencies include USD, EUR, GBP, CAD, AUD, JPY, and any valid ISO 4217 code.
Currency formatting respects locale-specific conventions (e.g., €1.234,56 for de-DE).

add docs folder

Stringify currency object and update docs

Adding responsive card values to wrap large values
2025-06-09 00:53:40 -04:00

29 lines
623 B
Plaintext

# Server Configuration
PORT=3000
NODE_ENV=production # or development
DEBUG=TRUE
DEMO_MODE=false
# Site Configuration
SITE_TITLE=DumbAssets
# Base URL Configuration (optional)
# Can be a full URL or just a path
# Examples:
# BASE_URL=https://example.com/myapp
# BASE_URL=/myapp
BASE_URL=
# PIN Protection
# The PIN environment variable is based on the package name
DUMBASSETS_PIN=1234
ALLOWED_ORIGINS=*
# Apprise Configuration
APPRISE_URL=
# Currency Configuration (Optional: defaults to USD)
# Uncomment and set the following lines if you want to use a specific currency
# CURRENCY_CODE=EUR
# CURRENCY_LOCALE=de-DE