Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Commit

Permalink
Move parser middlewares before swagger-tools middlewares. Add slack t…
Browse files Browse the repository at this point in the history
…ransport and report errors in notarization process.
  • Loading branch information
nicoayala committed Sep 6, 2019
1 parent ef1d751 commit 085ebe4
Show file tree
Hide file tree
Showing 12 changed files with 5,344 additions and 4,673 deletions.
1 change: 1 addition & 0 deletions notary-api/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ BODY_SIZE_LIMIT=1000kb
LOG_TYPE=combined
ERROR_LOG=/path/to/error.log
COMBINED_LOG=/path/to/combined.log
SLACK_LOG='https://hooks.slack.com/services/foo/bar/baz'

CACHE=enabled
CACHE_ADAPTER=memory
Expand Down
6 changes: 6 additions & 0 deletions notary-api/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ Object.defineProperty(exports, '__esModule', {
const { env } = process;

const config = {
app: {
name: env.npm_package_name,
version: env.npm_package_version,
repositoryUrl: env.npm_package_repository_url.replace(/(\.git|git\+)/g, ''),
},
env: env.NODE_ENV,
port: env.PORT,
host: env.HOST,
Expand Down Expand Up @@ -43,6 +48,7 @@ const config = {
log: {
error: env.ERROR_LOG,
combined: env.COMBINED_LOG,
slack: env.SLACK_LOG,
},
web3: {
provider: env.WEB3_PROVIDER,
Expand Down
Loading

0 comments on commit 085ebe4

Please sign in to comment.