UNPKG

@teclone/r-server

Version:

A lightweight, extensible web-server with inbuilt routing-engine, static file server, file upload handler, request body parser, middleware support and lots more

38 lines (34 loc) 880 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var rServerConfig = { errorLog: 'logs/error.log', accessLog: 'logs/access.log', tempDir: 'tmp/uploads', publicPaths: ['public'], cacheControl: 'no-cache, max-age=86400', encoding: 'latin1', maxMemory: '50mb', defaultDocuments: ['index.html', 'index.js', 'index.css'], httpErrors: { // base dir to all errors baseDir: '', 404: '', 500: '' }, port: 8000, https: { enabled: false, port: 9000, /* enforce https by redirecting all http request to https */ enforce: false, /* https credentials, use */ credentials: { key: '.cert/server.key', cert: '.cert/server.crt', //'pfx': 'relativePath', passphrase: 'pfx passphrase' } } }; exports.rServerConfig = rServerConfig; //# sourceMappingURL=.server.config.js.map