node-http-server – Diff between revs 7 and 15

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 7 Rev 15
Line -... Line 1...
-   1 // Main configuration file.
1 module.exports = { 2 module.exports = {
-   3 // Network related settings.
2 net: { 4 net: {
-   5 // The address or hostname that the HTTP server will be listening on.
3 address: 'localhost', 6 address: 'localhost',
-   7 // The port that the HTTP server will be listening on.
4 port: 8070, 8 port: 8070,
5 }, 9 },
6 log: { 10 log: {
-   11 // The relative path to where to place the server log file.
7 file: 'logs/server.log', 12 file: 'logs/server.log',
8 }, 13 },
-   14 // Authentication settings.
9 auth: { 15 auth: {
-   16 // The locations that require authentication.
10 paths: [ 17 locations: [
11 '/admin/' 18 '/admin/'
12 ], 19 ],
-   20 // The authentication realm.
13 realm: 'Wizardry and Steamworks', 21 realm: 'Wizardry and Steamworks',
-   22 // The path to the password digset file containing users and passwords.
14 digest: 'auth/htpasswd', 23 digest: 'auth/htpasswd',
15 }, 24 },
16 site: { 25 site: {
-   26 // The document index that will be served when a directory is requested.
17 index: 'index.html', 27 index: 'index.html',
-   28 // The name of the website.
18 name: 'Wizardry and Steamworks', 29 name: 'Wizardry and Steamworks',
19 }, 30 },
20 ssl: { 31 ssl: {
-   32 // Whether to enable HTTPs through SSL.
21 enable: true, 33 enable: true,
-   34 // The size of the key to generate for SSL.
22 privateKeySize: 1024, 35 privateKeySize: 1024,
-   36 // The address or hostname that the HTTPs server will be listening on.
23 address: 'localhost', 37 address: 'localhost',
-   38 // The port that the HTTPs server will be listening on.
24 port: 8080 39 port: 8080
25 } 40 }
26 } 41 }