"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = () => ({
    db: {
        url: process.env.DATABASE_URL,
        host: process.env.DB_HOST || 'localhost',
        port: parseInt(process.env.DB_PORT || '') || 3306,
        username: process.env.DB_USERNAME,
        password: process.env.DB_PASSWORD,
        database: process.env.DB_DATABASE,
    },
    mail: {
        host: process.env.MAIL_HOST,
        port: parseInt(process.env.MAIL_PORT || '') || 465,
        username: process.env.MAIL_USERNAME,
        password: process.env.MAIL_PASSWORD,
        from: process.env.MAIL_FROM,
    },
    throttle: {
        ttl: parseInt(process.env.THROTTLE_TTL || ''),
        limit: parseInt(process.env.THROTTLE_LIMIT || ''),
    },
    jwt: {
        secret: process.env.JWT_SECRET,
        expireIn: process.env.JWT_EXPIRE_IN,
    },
    server: {
        file: process.env.DEFAULT_FILE_URL,
        profile: process.env.DEFAULT_PROFILE_URL,
        port: process.env.PORT,
        host: process.env.SERVER_HOST,
    },
    redis: {
        url: process.env.REDIS_URL,
    },
});
//# sourceMappingURL=env.config.js.map