Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,6 @@ Elevate user services can be setup in local using two methods:
# Database connectivity url
MONGODB_URL = mongodb://localhost:27017/db-name

# Number of rounds for encryption
SALT_ROUNDS = 10

# Token secret to generate access token
ACCESS_TOKEN_SECRET = 'access-token-secret'

Expand Down Expand Up @@ -230,12 +227,6 @@ Elevate user services can be setup in local using two methods:
# Internal access token for communicationcation between services via network call
INTERNAL_ACCESS_TOKEN = 'internal-access-token'

# Mentor screct code for registering
MENTOR_SECRET_CODE = 'secret-code'

#Enable logging of network request
ENABLE_LOG = true

# JWT Access Token expiry In Days
ACCESS_TOKEN_EXPIRY = '1'

Expand Down
12 changes: 0 additions & 12 deletions dev-ops/integration_test.env
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ APPLICATION_ENV = development
# Database connectivity url
MONGODB_URL = mongodb://mongo:27017/elevate-mentoring


# Number of rounds for encryption
SALT_ROUNDS = 10

# Token secret to generate access token
ACCESS_TOKEN_SECRET = 'test'

Expand Down Expand Up @@ -70,12 +66,6 @@ DEFAULT_AZURE_CONTAINER_NAME = 'azure-container-storage-name'
# Internal access token for communicationcation between services via network call
INTERNAL_ACCESS_TOKEN = 'internal-access-token'

# Mentor screct code for registering
MENTOR_SECRET_CODE = 'secret-code'

#Enable logging of network request
ENABLE_LOG = true

# JWT Access Token expiry In Days
ACCESS_TOKEN_EXPIRY = '1'

Expand All @@ -102,8 +92,6 @@ SUPPORT_EMAIL_ID = 'support@xyz.com,team@xyz.com'

#Email template code for reported issue.
REPORT_ISSUE_EMAIL_TEMPLATE_CODE = 'user_issue_reported'
#kafka rating topic
RATING_KAFKA_TOPIC = 'Rating'

#Internal cache expiry time
INTERNAL_CACHE_EXP_TIME = 86400
Expand Down
15 changes: 0 additions & 15 deletions src/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ APPLICATION_ENV = development
# Database connectivity url
MONGODB_URL = mongodb://localhost:27017/db-name

# Number of rounds for encryption
SALT_ROUNDS = 10

# Token secret to generate access token
ACCESS_TOKEN_SECRET = 'access-token-secret'

Expand Down Expand Up @@ -84,9 +81,6 @@ OCI_BUCKET_REGION= 'ap-hyderabad-1'
# Internal access token for communicationcation between services via network call
INTERNAL_ACCESS_TOKEN = 'internal-access-token'

# Mentor screct code for registering
MENTOR_SECRET_CODE = 'secret-code'

# JWT Access Token expiry In Days
ACCESS_TOKEN_EXPIRY = '1'

Expand All @@ -105,9 +99,6 @@ ENABLE_EMAIL_OTP_VERIFICATION = true
# Api doc url
API_DOC_URL = '/api-doc'

#kafka rating topic
RATING_KAFKA_TOPIC = 'Rating'

#Internal cache expiry time
INTERNAL_CACHE_EXP_TIME = 86400

Expand Down Expand Up @@ -144,12 +135,6 @@ MENTORING_SERVICE_URL=http://localhost:3000
#Default queue for process invitee upload
DEFAULT_QUEUE=user-queue

#Email template for mentor invitation
MENTOR_INVITATION_EMAIL_TEMPLATE_CODE=invite_mentor

#Email template for mentee invitation
MENTEE_INVITATION_EMAIL_TEMPLATE_CODE=invite_mentee

#Email template for mentor role request accepted
MENTOR_REQUEST_ACCEPTED_EMAIL_TEMPLATE_CODE=mentor_request_accepted

Expand Down
2 changes: 1 addition & 1 deletion src/configs/kafka.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = async () => {
})

const subscribeToConsumer = async () => {
await consumer.subscribe({ topics: [process.env.RATING_KAFKA_TOPIC, process.env.CLEAR_INTERNAL_CACHE] })
await consumer.subscribe({ topics: [process.env.CLEAR_INTERNAL_CACHE] })
await consumer.run({
eachMessage: async ({ topic, partition, message }) => {
try {
Expand Down
21 changes: 0 additions & 21 deletions src/envVariables.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ let enviromentVariables = {
message: 'Required mongodb url',
optional: false,
},
SALT_ROUNDS: {
message: 'Required salt rounds for encryption',
optional: false,
},
ACCESS_TOKEN_SECRET: {
message: 'Required access token secret',
optional: false,
Expand Down Expand Up @@ -103,10 +99,6 @@ let enviromentVariables = {
message: 'Required azure container name',
optional: process.env.CLOUD_STORAGE === 'AZURE' ? false : true,
},
MENTOR_SECRET_CODE: {
message: 'Required mentor secret code',
optional: false,
},
ACCESS_TOKEN_EXPIRY: {
message: 'Required access token expiry in days',
optional: false,
Expand All @@ -123,11 +115,6 @@ let enviromentVariables = {
message: 'Internal Cache Expiry Time',
optional: false,
},

RATING_KAFKA_TOPIC: {
message: 'Kafka Rating Topic',
optional: false,
},
REDIS_HOST: {
message: 'Redis Host Url',
optional: false,
Expand Down Expand Up @@ -189,14 +176,6 @@ let enviromentVariables = {
message: 'Required Mentoring Service Url',
optional: false,
},
MENTOR_INVITATION_EMAIL_TEMPLATE_CODE: {
message: 'Required mentor invitation email template code',
optional: false,
},
MENTEE_INVITATION_EMAIL_TEMPLATE_CODE: {
message: 'Required mentee invitation email template code',
optional: false,
},
ADMIN_INVITEE_UPLOAD_EMAIL_TEMPLATE_CODE: {
message: 'Required admin upload invitee email template code',
optional: false,
Expand Down