Introduction
Configuration files are stored in src/config directory of application or package.
Configuration is structured to following sections:
- Application
- Access Control List (ACL)
- Cache
- Database
- Filesystem
- Image processing
- Logging
- Media
- Metrics
- Package import / export
- PDF generation
- Pub-sub
- Queue
- Rate limiter
- Security
- Services
- Session
Redis
Redis is used by several parts of the system (cache, pub-sub, queue, rate limiter, session). Each of them has its own {SECTION}_REDIS_* connection settings, so they can be configured independently if needed.
Common connection settings below are used as a fallback for any section, which does not define its own {SECTION}_REDIS_* variable.
URL
Connection URL, e.g. redis://localhost:6379/0. Takes precedence over host / port / database settings.
- dotenv var:
REDIS_URL - type:
string - default:
undefined
Host
- dotenv var:
REDIS_HOST - type:
string - default:
'localhost'
Port
- dotenv var:
REDIS_PORT - type:
number - default:
6379
Database
- dotenv var:
REDIS_DATABASE - type:
number - default:
0