fluffy – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | // Main configuration file. |
2 | module.exports = { |
||
3 | // Network related settings. |
||
4 | net: { |
||
5 | // The address or hostname that the HTTP server will be listening on. |
||
6 | address: 'localhost', |
||
7 | // The port that the HTTP server will be listening on. |
||
8 | port: 8070, |
||
9 | }, |
||
10 | log: { |
||
11 | // The relative path to where to place the server log file. |
||
12 | file: 'logs/server.log', |
||
13 | }, |
||
14 | // Authentication settings. |
||
15 | auth: { |
||
16 | // The web locations that require authentication. |
||
17 | locations: [ |
||
18 | '/admin/' |
||
19 | ], |
||
20 | // The authentication realm. |
||
21 | realm: 'Wizardry and Steamworks', |
||
22 | // The path to the password digset file containing users and passwords. |
||
23 | digest: 'auth/htpasswd', |
||
24 | }, |
||
25 | site: { |
||
26 | // The document index that will be served when a directory is requested. |
||
27 | index: 'index.html', |
||
28 | // The web locations for which sending a directory index is allowed. |
||
29 | indexing: [ |
||
30 | '/js/' |
||
31 | ], |
||
32 | // Any file matching these regular expressions will be offered. |
||
33 | accept: [ |
||
34 | /^.+\.html$/, |
||
35 | /^.+\.css$/, |
||
36 | /^.+\.js$/, |
||
37 | /^.+\.png$/, |
||
38 | /^.+\.jpg$/, |
||
39 | /^.+\.gif$/, |
||
40 | /^.+\.ico$/, |
||
41 | /^.+\.woff$/, |
||
42 | /^.+\.woff2$/, |
||
43 | /^.+\.map$/, |
||
44 | /^.+\.ttf$/, |
||
45 | /^.+\.svg$/, |
||
46 | /^.*\.md$/, |
||
47 | /^.*\.pdf$/, |
||
48 | /^.*\.map$/, |
||
49 | /^.*\.json$/ |
||
50 | ], |
||
51 | // Any files matching these regular expressions will never be offered. |
||
52 | reject: [ |
||
53 | /^\.bashrc$/ |
||
54 | ], |
||
55 | // Cache expiry time in seconds for various files - a map of seconds |
||
56 | // to cache to regular expressions matching a local filesystem path. |
||
57 | cache: { |
||
58 | 3600: [ |
||
59 | /\.png$/, |
||
60 | /\.jpg$/, |
||
61 | /\.js$/, |
||
62 | /\.css$/, |
||
63 | /\.map$/ |
||
64 | ], |
||
65 | 60: [ |
||
66 | /\/js\/?$/ |
||
67 | ] |
||
68 | }, |
||
69 | // URL re-writing. |
||
70 | rewrite: { |
||
71 | //'index.html' : /^\/((?!(bower_components|js|css|img|doc))|\/)(.+?)$/g |
||
72 | }, |
||
73 | // The name of the website. |
||
74 | name: 'Wizardry and Steamworks', |
||
75 | }, |
||
76 | ssl: { |
||
77 | // Whether to enable HTTPs through SSL. |
||
78 | enable: true, |
||
79 | // The size of the key to generate for SSL. |
||
80 | privateKeySize: 1024, |
||
81 | // The address or hostname that the HTTPs server will be listening on. |
||
82 | address: 'localhost', |
||
83 | // The port that the HTTPs server will be listening on. |
||
84 | port: 8080 |
||
85 | }, |
||
86 | configuration: { |
||
87 | // Whether to enable sending the server configuration. |
||
88 | enable: true, |
||
89 | // The relative path that must be accessed to retrieve the configuration. |
||
90 | path: '/configuration' |
||
91 | } |
||
92 | } |