"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const config_1 = require("@nestjs/config");
exports.default = (0, config_1.registerAs)('rdb', () => {
    console.log('--- Config Factory: rdb is executing ---');
    return {
        mysql_iot: {
            database: process.env.RDB_MYSQL_IOT_DATABASE || "yfios-platform-db",
            username: process.env.RDB_MYSQL_IOT_USERNAME || "root",
            password: process.env.RDB_MYSQL_IOT_PASSWORD || "yfsoft1018#mysql",
            host: process.env.RDB_MYSQL_IOT_HOST || "host.docker.internal",
            port: parseInt(process.env.RDB_MYSQL_IOT_PORT || "13306", 10),
        },
        dataPurgeInterval: parseInt(process.env.RDB_DATA_PURGE_INTERVAL || "30", 10),
    };
});
//# sourceMappingURL=rdb.config.js.map