-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HRIS-360 Implement Slack notification if user is not yet Logged In
- Loading branch information
sun-asterisk
authored and
sun-asterisk
committed
Jun 14, 2024
1 parent
1f09f8b
commit fbb8828
Showing
39 changed files
with
1,745 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
JWT_SECRET_KEY= | ||
JWT_SECRET_KEY= | ||
SLACK_O_AUTH_TOKEN= | ||
JWT_SIGNING_EXPIRATION= | ||
JWT_SIGNING_ALGORITHM= | ||
CACHE_TTL= | ||
HRIS_GRAPHQL_API_ENDPOINT= | ||
QUEUE_HOST= | ||
QUEUE_PORT= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
JWT_SECRET_KEY= | ||
SLACK_O_AUTH_TOKEN= | ||
JWT_SIGNING_EXPIRATION= | ||
JWT_SIGNING_ALGORITHM= | ||
CACHE_TTL= | ||
HRIS_GRAPHQL_API_ENDPOINT= | ||
QUEUE_HOST= | ||
QUEUE_PORT= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { BullModuleOptions, BullOptionsFactory } from "@nestjs/bull"; | ||
|
||
export class BullConfigService implements BullOptionsFactory { | ||
|
||
createBullOptions(): BullModuleOptions { | ||
return { | ||
redis: { | ||
host: process.env.QUEUE_HOST || 'localhost', | ||
port: process.env.QUEUE_PORT ? parseInt(process.env.QUEUE_PORT) : 6379 | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default () => ({ | ||
cacheTTL: process.env.CACHE_TTL || '3600', | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default () => ({ | ||
hrisApiGraphQLEndpoint: process.env.HRIS_API_GRAPHQL_ENDPOINT || 'http://localhost:5257/graphql', | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export default () => ({ | ||
jwtSecret: process.env.JWT_SECRET_KEY | ||
jwtSecret: process.env.JWT_SECRET_KEY, | ||
jwtSigningExpiration: process.env.JWT_SIGNING_EXPIRATION || '7d', | ||
jwtSigningAlgorithm: process.env.JWT_SIGNING_ALGORITHM || 'HS256', | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default () => ({ | ||
queueHost: process.env.QUEUE_HOST || 'localhost', | ||
queuePort: process.env.QUEUE_PORT || 6379 | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default () => ({ | ||
slackOAuthToken: process.env.SLACK_O_AUTH_TOKEN | ||
}) |
Binary file not shown.
Oops, something went wrong.