node-wsjtx-companion – Rev 5

Subversion Repositories:
Rev:
// Main configuration file.
module.exports = {
    // HAM related settings.
    ham: {
        // Your own callsign.
        me: 'XX0XXX',
        udpPort: 2237,
        udpAddress: '224.0.0.1',
        // The QSL template to use for substitution.
        qslTemplate: 'qsl.txt',
        qslTemplateMap: {
            'this': 'XXXXXXXXXXX',
            'call': 'AAAAAAAAAAAAAAAA',
            'date': 'DDDDDDDDDDDDDDDD',
            'conn': 'FFFFFFFFFFFFFFFF',
            'sign': 'SSSSSSSSSSSSSSSS'
        }
    },
    // Network related settings.
    net: {
        // The address or hostname that the HTTP server will be listening on.
        address: '0.0.0.0',
        // The port that the HTTP server will be listening on.
        port: 8070,
    },
    log: {
        // The relative path to where to place the server log file.
        file: 'logs/server.log',
    },
    // Authentication settings.
    auth: {
        // The web locations that require authentication.
        locations: [
            '/admin/'
        ],
        // The authentication realm.
        realm: 'QSL',
        // The path to the password digset file containing users and passwords.
        digest: 'auth/htpasswd',
    },
    site: {
        // The document index that will be served when a directory is requested.
        index: 'index.html',
        // The web locations for which sending a directory index is allowed.
        indexing: [
            '/qsl'
        ],
        // Any file matching these regular expressions will be offered.
        accept: [
            /^.+\.txt$/,
            /^.+\.html$/,
            /^.+\.css$/,
            /^.+\.js$/,
            /^.*\.map$/
        ],
        // Any files matching these regular expressions will never be offered.
        reject: [
            /^\.bashrc$/
        ],
        // URL re-writing.
        rewrite: {
            //'index.html' : /^\/((?!(bower_components|js|css|img|doc))|\/)(.+?)$/g
        },
        //  The name of the website.
        name: 'QSL',
    },
    ssl: {
        // Whether to enable HTTPs through SSL.
        enable: false,
        // The size of the key to generate for SSL.
        privateKeySize: 1024,
        // The address or hostname that the HTTPs server will be listening on.
        address: 'localhost',
        // The port that the HTTPs server will be listening on.
        port: 8080
    },
    configuration: {
        // Whether to enable sending the server configuration.
        enable: false,
        // The relative path that must be accessed to retrieve the configuration.
        path: '/configuration'
    }
}