-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.js
More file actions
29 lines (23 loc) · 961 Bytes
/
Copy pathconfig.js
File metadata and controls
29 lines (23 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
exports.config = {
// Two locations are specified: one for the static site,
// and one for the downloads area. Both paths are relative
// to the given rootServerPath.
rootServerPath: __dirname,
staticSiteLoc: 'restricted',
homePage: 'index.html',
downloadsLoc: 'ark',
// This is the anchor text shown to the user to give access
// to the static site.
staticSiteName: 'my site',
// If passwordIsUsername is true, the login screen will have only
// one <input> just for simplicity.
passwordIsUsername: true,
// Next we set up a user list.
// If passwordIsUsername is false, then this is list of space-delimted
// user-pwd pairs. Passwords are plaintext here, but they're not plaintext
// in the server code, in case you want to hook it up to a real database.
userSpecs: ['foobar'],
// Lastly, configure some standard web server stuff.
cookieSecret: 'Blue canary in the outlet by the light switch.',
port: 3000
};