Skip to content

Commit

Permalink
feat: expose secured kue http ui
Browse files Browse the repository at this point in the history
  • Loading branch information
lykmapipo committed May 29, 2019
1 parent 3b06969 commit 32f8525
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@ DEBUG=true


# QUEUE
QUEUE_NAME=mongoose
QUEUE_DEFAULT_JOB_TYPE=mongoose
QUEUE_TIMEOUT=5000
QUEUE_CONCURRENCY=10
QUEUE_ATTEMPTS=3
QUEUE_REMOVE_ON_COMPLETE=true
KUE_NAME=mongoose
KUE_JOB_TYPES=mongoose
KUE_TIMEOUT=5000
KUE_CONCURRENCY=10
KUE_MAX_ATTEMPTS=3
KUE_PRIORITY=normal
KUE_JOB_EVENTS=false
KUE_REMOVE_ON_COMPLETE=true
KUE_HTTP_PORT=5000
KUE_HTTP_USERNAME=kue
KUE_HTTP_PASSWORD=kue


# MESSAGE
Expand Down
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const path = require('path');
const _ = require('lodash');
const { getString } = require('@lykmapipo/env');
const kue = require('kue');
const { listen } = require('@lykmapipo/kue-common');
const { worker } = require('mongoose-kue');
const libPath = path.join(__dirname, 'lib');
const Message = require(path.join(libPath, 'message.model'));
Expand Down Expand Up @@ -73,5 +74,9 @@ postman.worker = worker;
postman.httpServer = kue.app;


/* export http server listen */
postman.listen = listen;


/* export postman */
exports = module.exports = postman;
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@
"dependencies": {
"@lykmapipo/env": ">=0.7.8",
"@lykmapipo/express-common": ">=0.17.3",
"@lykmapipo/kue-common": ">=0.3.2",
"@lykmapipo/mongoose-common": ">=0.23.4",
"@lykmapipo/tz-ega-sms": ">=0.5.2",
"async": ">=3.0.1",
"bipsms": ">=0.4.2",
"country-data": "0.0.31",
"is-html": ">=2.0.0",
"kue": ">=0.11.6",
"lodash": ">=4.17.11",
"mongoose-kue": ">=0.8.1",
"mongoose-rest-actions": ">=0.28.1",
Expand Down

0 comments on commit 32f8525

Please sign in to comment.