-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
local.js.sample
70 lines (60 loc) · 2.38 KB
/
local.js.sample
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/**
* COPY ME TO config/local.js
*
* DON'T DELETE ME!!!
* The setup.js script requires a `local.js.sample` file to work.
* Additionally, if you change anything here, the setup script will likely need to be modified to match.
*/
/**
* Local environment settings
*
* Use this file to specify configuration settings for use while developing
* the app on your personal system.
*
* For more information, check out:
* https://sailsjs.com/docs/concepts/configuration/the-local-js-file
*/
module.exports = {
appName: 'My App (LOCAL)',
// assetsUrl: 'http://localhost:8080/', // Front-end URL. Used only if assets aren't being served by Sails (or Webpack).
baseUrl: 'http://localhost:1337', // API URL
datastores: {
default: {
host: 'localhost',
user: 'root',
password: 'my@w3s0m3password',
database: 'myapp',
port: 3306,
ssl: false
}
},
models: {
migrate: 'alter', // Automatically modify the datastores to match our models.
// enforceForeignKeys: false // Use this when testing PRODUCTION, and you don't want to validate foreign keys.
dataEncryptionKeys: {
// Run this to generate a new key: `npm run generate:dek`
default: '{{DEK here}}' // NEVER STORE THIS FOR PRODUCTION PURPOSES!!!
},
//validateOnBootstrap: false, // Disable datastores validation (when running as PRODUCTION).
//enforceForeignKeys: false // Don't enforce foreign keys in the datastores (when running as PRODUCTION).
},
// Configuration options for ngrok.js script.
ngrok: {
// auth: 'username:notSoSecretPassword', // Set a basic-auth user/password for the Ngrok tunnel. Password must be between 8 and 128 characters.
// buildAssets: false, // Disable asset building for faster launches.
domain: 'my-ngrok-domain.ngrok-free.app',
token: '{{ngrok authtoken}}'
},
// The port to attach the API to.
port: 1337,
security: {
// checkPwnedPasswords: false // Disable the PwnedPasswords.com integration. See config/security.js for more.
},
session: {
// RECOMMENDED TO USE A DIFFERENT ONE FOR EACH ENVIRONMENT!
// CHANGING THIS WILL INVALIDATE ALL CURRENT SESSIONS!
// GENERATE A NEW ONE:
// npm run generate:token
secret: '{{session secret here}}'
}
};