/**
 * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org)  Apache License, Version 2.0  http://www.apache.org/licenses/LICENSE-2.0
 */

 define(function() {
     var TemplateConfigBlocks = function () {
        this.sampleDatasourceConfig =  'dataSources: \n' +
           '  - name: SIDDHI_TEST_DB \n' +
           '    description: The datasource used for test database \n' +
           '    jndiConfig: \n' +
           '      name: jdbc/SIDDHI_TEST_DB \n' +
           '    definition: \n' +
           '      type: RDBMS \n' +
           '      configuration: \n' +
           '        jdbcUrl: jdbc:mysql://hostname:port/testdb \n' +
           '        username: root \n' +
           '        password: root \n' +
           '        driverClassName: com.mysql.jdbc.Driver \n' +
           '        maxPoolSize: 10 \n' +
           '        idleTimeout: 60000 \n' +
           '        connectionTestQuery: SELECT 1 \n' +
           '        validationTimeout: 30000 \n' +
           '        isAutoCommit: false \n';
        this.sampleMetricsConfig =  'metrics: \n' +
           '  enabled: true \n' +
           'metrics.prometheus: \n' +
           '  reporting: \n' +
           '    prometheus: \n' +
           '      - name: prometheus \n' +
           '        enabled: true \n' +
           '        serverURL: "http://localhost:9005" \n';
        this.sampleExtensionsConfig =  'extensions: \n' +
           '  - \n' +
           '    extension: \n' +
           '      name: extension_name \n' +
           '      namespace: extension_namespace \n' +
           '      properties: \n' +
           '        key: value \n';
        this.sampleRefsConfig = 'refs: \n' +
           '  - \n' +
           '    ref: \n' +
           '      name: \'name\' \n' +
           '      type: \'type\' \n' +
           '      properties: \n' +
           '        property1: value1 \n' +
           '        property2: value2 \n';
        this.sampleTransportConfig =  'transports: \n' +
           '  http: \n' +
           '    listenerConfigurations: \n' +
           '      -  \n' +
           '        id: "default" \n' +
           '        host: "0.0.0.0" \n' +
           '        port: 9090 \n' +
           '      -  \n' +
           '        id: "msf4j-https" \n' +
           '        host: "0.0.0.0" \n' +
           '        port: 9443 \n' +
           '        scheme: https \n' +
           '        sslConfig: \n' +
           '          keyStore: "${carbon.home}/resources/security/wso2carbon.jks" \n' +
           '          keyStorePassword: wso2carbon \n' +
           '    transportProperties: \n' +
           '      - name: "server.bootstrap.socket.timeout" \n' +
           '        value: 60 \n' +
           '      - name: "latency.metrics.enabled" \n' +
           '        value: false  \n';
     }
     TemplateConfigBlocks.prototype.constructor = TemplateConfigBlocks;
     TemplateConfigBlocks.prototype.getTemplatedConfig = function () {
        var self = this;
        return {
            "sampleDatasourceConfig": self.sampleDatasourceConfig,
            "sampleMetricsConfig": self.sampleMetricsConfig,
            "sampleExtensionsConfig": self.sampleExtensionsConfig,
            "sampleRefsConfig": self.sampleRefsConfig,
            "sampleTransportConfig": self.sampleTransportConfig
        }
     }
     return TemplateConfigBlocks;
 });
@@ -1335,17 +1335,15 @@
 p://
-localhost
+0.0.0.0
 :900

Change localhost to 0.0.0.0