"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const config_1 = require("@nestjs/config");
exports.default = (0, config_1.registerAs)('mqtt', () => {
    console.log('--- Config Factory: mqtt is executing ---');
    return {
        brokeType: "emqx",
        nanoMQ_HttpServer: {
            url: process.env.MQTT_NANO_MQ_HTTP_SERVER_URL || 'http://127.0.0.1:8880',
            username: process.env.MQTT_NANO_MQ_HTTP_SERVER_USERNAME || "admin",
            password: process.env.MQTT_NANO_MQ_HTTP_SERVER_PASSWORD || "public",
        },
        emqx_HttpServer: {
            url: process.env.MQTT_EMQX_HTTP_SERVER_URL || 'http://127.0.0.1:18083',
            apiKey: process.env.MQTT_EMQX_HTTP_SERVER_API_KEY || "4a277cb0000a961d",
            secretKey: process.env.MQTT_EMQX_HTTP_SERVER_SECRET_KEY || "ANr0VVcP5K3Ee9AldRMDHPhwc3j49CRHB9CREqzjV3ffjG",
        },
        internalMqttTcp: process.env.MQTT_INTERNAL_MQTT_TCP || "mqtt://127.0.0.1:1883",
        mqttTcp: process.env.MQTT_MQTT_TCP || "mqtt://iot.yfios.net:1883",
        mqttTls: process.env.MQTT_MQTT_TLS || "mqtts://iot.yfios.net:8883",
        mqttWs: process.env.MQTT_MQTT_WS || "ws://iot.yfios.net:1888",
        emqx_mqttWs: process.env.MQTT_EMQX_MQTT_WS || "ws://iot.yfios.net:8083",
        mqttWss: process.env.MQTT_MQTT_WSS || "wss://iot.yfios.net:8888",
        mqttWebPassword: process.env.MQTT_MQTT_WEB_PASSWORD || "mqtt_web_pwd_yfsoft@1018",
        mqttAppPassword: process.env.MQTT_MQTT_APP_PASSWORD || "mqtt_app_pwd_yfsoft@1018",
        mqttConnectPassword: process.env.MQTT_MQTT_CONNECT_PASSWORD || "mqtt_connect_pwd_yfsoft@1018",
    };
});
//# sourceMappingURL=mqtt.config.js.map