Skip to content

Commit

Permalink
fix: storage-client config
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Nov 25, 2022
1 parent 52b99aa commit 657360d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion api/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import {createLogger} from '@alwatr/logger';

export const config = {
storage: {
host: process.env.STORAGE_HOST ?? 'http://127.0.0.1:9000',
host: process.env.STORAGE_HOST ?? '127.0.0.1',
port: process.env.STORAGE_PORT != null ? +process.env.STORAGE_PORT : 9000,
name: process.env.STORAGE_NAME ?? 'job',
token: process.env.STORAGE_TOKEN ?? 'YOUR_SECRET_TOKEN',
},
Expand Down
3 changes: 2 additions & 1 deletion crawler/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import {createLogger} from '@alwatr/logger';

export const config = {
storage: {
host: process.env.STORAGE_HOST ?? 'http://127.0.0.1:9000',
host: process.env.STORAGE_HOST ?? '127.0.0.1',
port: process.env.STORAGE_PORT != null ? +process.env.STORAGE_PORT : 9000,
name: process.env.STORAGE_NAME ?? 'job',
token: process.env.STORAGE_TOKEN ?? 'YOUR_SECRET_TOKEN',
},
Expand Down

0 comments on commit 657360d

Please sign in to comment.