This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
80 lines (80 loc) · 3.14 KB
/
config.json
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
71
72
73
74
75
76
77
78
79
80
// It's OK to write comments in this JSON configuration file,
// comments will be stripped when this file is loaded.
{
// "development" is the default environment.
// To change, set NODE_ENV (http://expressjs.com/api.html#app.configure).
"development": {
// Port the Express server will listen on.
"port": 3000,
// Use views/unauthorized.hbs for error page.
"errorTemplate": true,
// atlassian-connect-express currently integrates with Sequelize for
// persistence to store the host client information (i.e. client key,
// host public key etc.). When no adapter is specified, it defaults to
// memory.
//
// To specify a storage other than memory, set
// "dialect" to one of Sequelize's other supported dialects:
// http://docs.sequelizejs.com/manual/installation/usage.html#dialects
//
// To use a custom storage adapter, configure it in "store".
// Make sure to register the adapter factory in app.js:
//
// ace.store.register(adapterName, factoryFunction)
//
// At https://bitbucket.org/atlassian/atlassian-connect-express/src/master/lib/store/,
// see index.js and sequelize.js for code demonstrating how to write
// a conformant adapter. The default values are as follows:
//
// "store": {
// "adapter": "sequelize",
// "dialect": "sqlite3",
// "storage": ":memory:"
// },
//
// To configure PostgreSQL, the following can be used:
//
// "store": {
// "adapter": "sequelize",
// "dialect": "postgres",
// "url": "postgres://localhost/my_app_database"
// },
//
// An appropriate DB driver for Sequelize is required for storage other than memory.
// For PostgreSQL, run the following command:
//
// npm install --save pg
"store": {
"adapter": "sequelize",
"dialect": "sqlite3",
"logging": false,
"type": "memory"
}
},
// Configuration for production, which is enabled by setting
// the NODE_ENV=production environment variable.
"production": {
// PaaS like Heroku will provide HTTP port via environement variable.
"port": "$PORT",
// Use views/unauthorized.hbs for error page.
"errorTemplate": true,
// Public URL to production app.
"localBaseUrl": "https://my-subdomain.herokuapp.com",
"store": {
// Don't use memory storage for production, otherwise
// data in the storage will go away when the app server restarts.
// Here, we use PostgreSQL:
"type": "postgres",
// PaaS like Heroku will provide DB connection URL through environment variable.
"url": "$DATABASE_URL"
},
// The app can only be registered by the products on these domains:
"whitelist": [
"*.jira-dev.com",
"*.atlassian.net",
"*.atlassian.com",
"*.jira.com"
]
},
"product": "jira"
}