summaryrefslogtreecommitdiff
path: root/app.json
diff options
context:
space:
mode:
authorYukai Huang2016-10-16 11:37:50 +0800
committerYukai Huang2016-10-16 11:41:11 +0800
commitbd7efb80962442cfd010620411d8ee8829c334a4 (patch)
tree0d2dfb9207b555db9a639adf9f7a34b0d0b7e9c6 /app.json
parent9f63581c61249703cb057547360782728b97e81e (diff)
Add more config variable
Diffstat (limited to 'app.json')
-rw-r--r--app.json136
1 files changed, 107 insertions, 29 deletions
diff --git a/app.json b/app.json
index 2ed96935..95c2ffbf 100644
--- a/app.json
+++ b/app.json
@@ -1,33 +1,111 @@
{
- "name": "HackMD",
- "description": "Realtime collaborative markdown notes on all platforms",
- "keywords": [
- "Collaborative",
- "Markdown",
- "Notes"
- ],
- "website": "https://hackmd.io",
- "repository": "https://github.com/hackmdio/hackmd",
- "logo": "https://github.com/hackmdio/hackmd/raw/master/public/hackmd-icon-1024.png",
- "success_url": "/",
- "scripts": {
- "postdeploy": "./node_modules/.bin/sequelize db:migrate"
- },
- "env": {
- "BUILD_ASSETS": {
- "description": "Our build script variable",
- "value": "true"
+ "name": "HackMD",
+ "description": "Realtime collaborative markdown notes on all platforms",
+ "keywords": [
+ "Collaborative",
+ "Markdown",
+ "Notes"
+ ],
+ "website": "https://hackmd.io",
+ "repository": "https://github.com/hackmdio/hackmd",
+ "logo": "https://github.com/hackmdio/hackmd/raw/master/public/hackmd-icon-1024.png",
+ "success_url": "/",
+ "scripts": {
+ "postdeploy": "./node_modules/.bin/sequelize db:migrate"
},
- "NPM_CONFIG_PRODUCTION": {
- "description": "Let npm also install development build tool",
- "value": "false"
+ "env": {
+ "BUILD_ASSETS": {
+ "description": "Our build script variable",
+ "value": "true"
+ },
+ "NPM_CONFIG_PRODUCTION": {
+ "description": "Let npm also install development build tool",
+ "value": "false"
+ },
+ "DB_TYPE": {
+ "description": "Specify database type. See sequelize available databases. Default using postgres",
+ "value": "postgres"
+ },
+
+ "HMD_DOMAIN": {
+ "description": "domain name",
+ "required": false
+ },
+ "HMD_URL_PATH": {
+ "description": "sub url path, like `www.example.com/<URL_PATH>`",
+ "required": false
+ },
+ "HMD_ALLOW_ORIGIN": {
+ "description": "web app port",
+ "required": false,
+ "value": "80"
+ },
+ "HMD_PROTOCOL_USESSL": {
+ "description": "set to use ssl protocol for resources path (only applied when domain is set)",
+ "required": false
+ },
+ "HMD_URL_ADDPORT": {
+ "description": "set to add port on callback url (port 80 or 443 won't applied) (only applied when domain is set)",
+ "required": false
+ },
+ "HMD_FACEBOOK_CLIENTID": {
+ "description": "Facebook API client id",
+ "required": false
+ },
+ "HMD_FACEBOOK_CLIENTSECRET": {
+ "description": "Facebook API client secret",
+ "required": false
+ },
+ "HMD_TWITTER_CONSUMERKEY": {
+ "description": "Twitter API consumer key",
+ "required": false
+ },
+ "HMD_TWITTER_CONSUMERSECRET": {
+ "description": "Twitter API consumer secret",
+ "required": false
+ },
+ "HMD_GITHUB_CLIENTID": {
+ "description": "GitHub API client id",
+ "required": false
+ },
+ "HMD_GITHUB_CLIENTSECRET": {
+ "description": "GitHub API client secret",
+ "required": false
+ },
+ "HMD_GITLAB_BASEURL": {
+ "description": "GitLab authentication endpoint, set to use other endpoint than GitLab.com (optional)",
+ "required": false
+ },
+ "HMD_GITLAB_CLIENTID": {
+ "description": "GitLab API client id",
+ "required": false
+ },
+ "HMD_GITLAB_CLIENTSECRET": {
+ "description": "GitLab API client secret",
+ "required": false
+ },
+ "HMD_DROPBOX_CLIENTID": {
+ "description": "Dropbox API client id",
+ "required": false
+ },
+ "HMD_DROPBOX_CLIENTSECRET": {
+ "description": "Dropbox API client secret",
+ "required": false
+ },
+ "HMD_GOOGLE_CLIENTID": {
+ "description": "Google API client id",
+ "required": false
+ },
+ "HMD_GOOGLE_CLIENTSECRET": {
+ "description": "Google API client secret",
+ "required": false
+ },
+ "HMD_IMGUR_CLIENTID": {
+ "description": "Imgur API client id",
+ "required": false
+ }
},
- "DB_TYPE": {
- "description": "Specify database type. See sequelize available databases. Default using postgres",
- "value": "postgres"
- }
- },
- "addons": [
- "heroku-postgresql"
- ]
+ "addons": [
+ "heroku-postgresql"
+ ]
}