You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

The server configuration is tailored from 2 configuration files, but the starting point is config/server/config.jsThis file will merge the configuration files inside the config/server/env folder.


Example all.js
const DOMAIN_NAME = 'localhost'
const SERVER_PORT = process.env.PORT || 3000

module.exports = {
    domain: DOMAIN_NAME,
    app: {
        title: 'Enterprise Search',
        description: 'Enterprise Search',
        keywords: 'Enterprise Search, Independent'
    },
    port: SERVER_PORT,
    logging: { . . . },
    esui: {
        baseUrl: `http://${DOMAIN_NAME}:4200`
    },
    security: { . . . },
    mailer: { . . .},
    analytics: {
        enable: true
    },
    chat_forum: {
        enable: false,
        history_size: 100
    },
    // ElasticSearch connection for permissions, and other features
    elastic: {
        schema: 'http',
        host: 'localhost',
        port: 9200,
        indexName: 'esui'
    }
}


  • No labels