node-wsjtx-companion – Blame information for rev 5
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | // Main configuration file. |
2 | module.exports = { |
||
3 | // HAM related settings. |
||
4 | ham: { |
||
5 | // Your own callsign. |
||
6 | me: 'XX0XXX', |
||
7 | udpPort: 2237, |
||
5 | office | 8 | udpAddress: '224.0.0.1', |
1 | office | 9 | // The QSL template to use for substitution. |
10 | qslTemplate: 'qsl.txt', |
||
11 | qslTemplateMap: { |
||
12 | 'this': 'XXXXXXXXXXX', |
||
13 | 'call': 'AAAAAAAAAAAAAAAA', |
||
14 | 'date': 'DDDDDDDDDDDDDDDD', |
||
15 | 'conn': 'FFFFFFFFFFFFFFFF', |
||
16 | 'sign': 'SSSSSSSSSSSSSSSS' |
||
17 | } |
||
18 | }, |
||
19 | // Network related settings. |
||
20 | net: { |
||
21 | // The address or hostname that the HTTP server will be listening on. |
||
22 | address: '0.0.0.0', |
||
23 | // The port that the HTTP server will be listening on. |
||
24 | port: 8070, |
||
25 | }, |
||
26 | log: { |
||
27 | // The relative path to where to place the server log file. |
||
28 | file: 'logs/server.log', |
||
29 | }, |
||
30 | // Authentication settings. |
||
31 | auth: { |
||
32 | // The web locations that require authentication. |
||
33 | locations: [ |
||
34 | '/admin/' |
||
35 | ], |
||
36 | // The authentication realm. |
||
37 | realm: 'QSL', |
||
38 | // The path to the password digset file containing users and passwords. |
||
39 | digest: 'auth/htpasswd', |
||
40 | }, |
||
41 | site: { |
||
42 | // The document index that will be served when a directory is requested. |
||
43 | index: 'index.html', |
||
44 | // The web locations for which sending a directory index is allowed. |
||
45 | indexing: [ |
||
46 | '/qsl' |
||
47 | ], |
||
48 | // Any file matching these regular expressions will be offered. |
||
49 | accept: [ |
||
50 | /^.+\.txt$/, |
||
51 | /^.+\.html$/, |
||
52 | /^.+\.css$/, |
||
53 | /^.+\.js$/, |
||
54 | /^.*\.map$/ |
||
55 | ], |
||
56 | // Any files matching these regular expressions will never be offered. |
||
57 | reject: [ |
||
58 | /^\.bashrc$/ |
||
59 | ], |
||
60 | // URL re-writing. |
||
61 | rewrite: { |
||
62 | //'index.html' : /^\/((?!(bower_components|js|css|img|doc))|\/)(.+?)$/g |
||
63 | }, |
||
64 | // The name of the website. |
||
65 | name: 'QSL', |
||
66 | }, |
||
67 | ssl: { |
||
68 | // Whether to enable HTTPs through SSL. |
||
69 | enable: false, |
||
70 | // The size of the key to generate for SSL. |
||
71 | privateKeySize: 1024, |
||
72 | // The address or hostname that the HTTPs server will be listening on. |
||
73 | address: 'localhost', |
||
74 | // The port that the HTTPs server will be listening on. |
||
75 | port: 8080 |
||
76 | }, |
||
77 | configuration: { |
||
78 | // Whether to enable sending the server configuration. |
||
79 | enable: false, |
||
80 | // The relative path that must be accessed to retrieve the configuration. |
||
81 | path: '/configuration' |
||
82 | } |
||
83 | } |