"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const config_1 = require("@nestjs/config");
exports.default = (0, config_1.registerAs)('rtb', () => {
    console.log('--- Config Factory: rtb is executing ---');
    return {
        tdengine: {
            path: process.env.RTB_TDENGINE_PATH || "/rest/sql",
            host: process.env.RTB_TDENGINE_HOST || "host.docker.internal",
            port: parseInt(process.env.RTB_TDENGINE_PORT || "16041", 10),
            user: process.env.RTB_TDENGINE_USER || "root",
            passwd: process.env.RTB_TDENGINE_PASSWD || "yfsoft1018#taos",
            databaseName: process.env.RTB_TDENGINE_DATABASENAME || "yfios_iot_db"
        },
        dataPurgeInterval: parseInt(process.env.RTB_DATA_PURGE_INTERVAL || "30", 10),
    };
});
//# sourceMappingURL=rtd.config.js.map