Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker changes #319

Open
wants to merge 176 commits into
base: develop-2.5
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
18fb9ae
email content fix
Apr 19, 2023
966220b
updated env variable
priyanka-TL Jul 31, 2023
4e61001
Merge branch 'master' into fixEnvVariable
priyanka-TL Jul 31, 2023
d238b37
Merge pull request #140 from ELEVATE-Project/fixEnvVariable
joffinjoy Aug 11, 2023
3c8b7bc
updated ACCESS_TOKEN_EXPIRED response msg
nevil-mathew Aug 23, 2023
7948f9d
Merge pull request #152 from ELEVATE-Project/bug-880/responseMessage
joffinjoy Aug 24, 2023
9c0bfa5
added script to update AP email templates
nevil-mathew Sep 5, 2023
6a20218
Merge pull request #155 from ELEVATE-Project/ap-email-template-update
rakeshSgr Sep 5, 2023
129b789
Added Specific MongoDB Version Information
joffinjoy Sep 20, 2023
8b4c1a3
User Role model change - Katha 1050
adithyadinesh0412 Dec 11, 2023
f3a8871
User Role model change (review cmds) - Katha 1050
adithyadinesh0412 Dec 11, 2023
4a04672
Removed default org value from userRoles model.
adithyadinesh0412 Dec 11, 2023
028aed8
Updated the seeders to accommodate new changes.
adithyadinesh0412 Dec 11, 2023
4586051
Merge pull request #289 from ELEVATE-Project/develop-2.5
joffinjoy Dec 12, 2023
8cee478
updated models to take constants from common file
adithyadinesh0412 Dec 14, 2023
160b807
Merge pull request #287 from adithyadinesh0412/develop-2.6
rakeshSgr Dec 14, 2023
4bb43a7
duplicate issue
priyanka-TL Dec 15, 2023
dc536d3
dc changes
priyanka-TL Dec 15, 2023
cb2c5a5
fix for popup issue
priyanka-TL Dec 15, 2023
be1c40c
userRole Changes story -1046 & 1047
sumanvpacewisdom Dec 18, 2023
2dac02a
userRole api-doc
sumanvpacewisdom Dec 18, 2023
37ba37b
userRole api-doc conflict changes
sumanvpacewisdom Dec 18, 2023
70291e0
userRole api-doc conflict changes
sumanvpacewisdom Dec 18, 2023
04a7d44
userRole APIs
sumanvpacewisdom Dec 18, 2023
b2a9cc0
Merge pull request #300 from ELEVATE-Project/develop-2.5
joffinjoy Dec 19, 2023
6ec4789
pull from upstream branch
sumanvpacewisdom Dec 19, 2023
4d8c854
comment changes 21/12
sumanvpacewisdom Dec 21, 2023
d8ec394
api-doc updated 21/12
sumanvpacewisdom Dec 21, 2023
47645ed
Conflict Resolution
joffinjoy Dec 21, 2023
6e1bc21
userRole changes for organization_id
sumanvpacewisdom Dec 22, 2023
92d0bde
Comment changes 26/12
sumanvpacewisdom Dec 26, 2023
96c0221
List changes 26/12
sumanvpacewisdom Dec 26, 2023
5f36fd9
Comment changes 26/12
sumanvpacewisdom Dec 26, 2023
5da4bdb
Comment changes 26/12
sumanvpacewisdom Dec 26, 2023
fa100dc
Comment changes 26/12
sumanvpacewisdom Dec 26, 2023
870a5c5
Comment changes 26/12
sumanvpacewisdom Dec 26, 2023
27424d9
Merge pull request #307 from ELEVATE-Project/master
joffinjoy Dec 28, 2023
8f291df
optimizes entity types queries
nevil-mathew Dec 28, 2023
c1aef43
DC Query Optimization
priyanka-TL Dec 28, 2023
548db46
conflict fix
priyanka-TL Dec 28, 2023
7be4687
error fix for csv process
priyanka-TL Dec 28, 2023
dfe289a
Merge pull request #308 from ELEVATE-Project/query-optimization
joffinjoy Dec 29, 2023
5363b25
Merge pull request #310 from ELEVATE-Project/develop-2.6
joffinjoy Dec 29, 2023
9e37644
Merge pull request #293 from ELEVATE-Project/bug#1126
joffinjoy Jan 2, 2024
634856e
Merge pull request #309 from ELEVATE-Project/dcQueryChanges
joffinjoy Jan 2, 2024
38e832d
Merge pull request #311 from ELEVATE-Project/develop-2.6
joffinjoy Jan 2, 2024
64cc239
Added Email Encryption Utils & Generation Script
joffinjoy Jan 2, 2024
7ff54fc
Added Env Validators
joffinjoy Jan 2, 2024
83623c5
Modified Registration OTP To Use Encrypted Email Ids
joffinjoy Jan 2, 2024
51cd604
Refactored RegistrationOtp API
joffinjoy Jan 2, 2024
ba8f8b8
Modified Account Create API To Use Encrypted Email
joffinjoy Jan 2, 2024
0df1197
Create API Fix + Modified Login API To Work With Encrypted Email
joffinjoy Jan 2, 2024
63b0f70
Mentee list search - Katha 1065
adithyadinesh0412 Jan 2, 2024
2957a1d
Modified GenerateOTP API To Use Encrypted EmailId
joffinjoy Jan 2, 2024
0820bfa
Modified ResetPassword API To Work With Encrypted EmailId
joffinjoy Jan 2, 2024
2ddd83b
Modified Change Role API To Use Encrypted EmailId
joffinjoy Jan 2, 2024
5b5e824
Removed Depreciated BulkCreateMentors API + Minor Commons Fix
joffinjoy Jan 2, 2024
4cfea28
Removed Unnecessary CSV Package Import
joffinjoy Jan 2, 2024
e42571e
Modified OrgAdmin BulkUserCreate API To Use Decrypted EmailId Of Org-…
joffinjoy Jan 2, 2024
3865771
Partial Implementation To Make BulkUpload Work With Encrypted EmailId
joffinjoy Jan 2, 2024
846a238
filter changes 03/01/24
sumanvpacewisdom Jan 3, 2024
ba30bd1
api doc and testcases updated 03/01/24
sumanvpacewisdom Jan 3, 2024
505e416
Merge branch 'ELEVATE-Project:master' into new-develop-2.6
sumanvpacewisdom Jan 3, 2024
3125ce9
Merge remote-tracking branch 'upstream/develop-2.6' into new-develop-2.6
sumanvpacewisdom Jan 3, 2024
57a3241
merge with develop-2.6
sumanvpacewisdom Jan 3, 2024
5436967
merge changes
sumanvpacewisdom Jan 3, 2024
6f41d6e
conflict changes
sumanvpacewisdom Jan 3, 2024
e9a42d8
Merge pull request #294 from ELEVATE-Project/Bug#1124
aks30 Jan 3, 2024
5e35718
Modified InviteQueue Handler Function To Use Encrypted EmailId (Unopt…
joffinjoy Jan 3, 2024
4677534
Merge pull request #301 from sumanvpacewisdom/new-develop-2.6
rakeshSgr Jan 3, 2024
c0dc8fe
Minor Optimisation
joffinjoy Jan 3, 2024
b37fc58
Modified Admin Create & Login APIs to Use Encrypted Passwords
joffinjoy Jan 3, 2024
9d8c2af
org filter list changes
priyanka-TL Jan 3, 2024
8893b3b
Added Script To Bulk Encrypt Decrypt Emails In Tables
joffinjoy Jan 3, 2024
a48c271
Merge branch 'develop-2.6' into develop
adithyadinesh0412 Jan 3, 2024
0c3d0dc
Modified Organization Create API To Work With Encrypted Email
joffinjoy Jan 4, 2024
003c86c
Modified Admin AddOrgAdmin API To Work With Encrypted Email
joffinjoy Jan 4, 2024
0d8b197
Modified Org-admin DeactivateUser API To Make Use Of Encrypted Email
joffinjoy Jan 4, 2024
5a47ecc
Modified Admin DeactivateUser API To Use Encrypted Email
joffinjoy Jan 4, 2024
46e3f01
docker changes
Jan 5, 2024
c8c5761
enabled full/partial search for email
adithyadinesh0412 Jan 5, 2024
dc6da36
env added
Jan 8, 2024
25403ae
Merge branch 'develop' of https://github.com/ELEVATE-Project/user int…
Jan 8, 2024
4c0caee
docker compose file update
Jan 8, 2024
75d99d1
Issue:1157 Modified RestructureBody And ProcessDbResponse Function To…
joffinjoy Jan 8, 2024
6e7fcaf
added event workflow for name update
nevil-mathew Jan 8, 2024
a748315
removed a comment
nevil-mathew Jan 8, 2024
cbc0efd
Merge pull request #320 from ELEVATE-Project/hotfix-2.5
joffinjoy Jan 9, 2024
59fdf03
Added Readme For Script
joffinjoy Jan 9, 2024
4956b33
Merge pull request #321 from ELEVATE-Project/story#1066-attributes-of…
rakeshSgr Jan 9, 2024
02a396f
user search added email in response
adithyadinesh0412 Jan 9, 2024
6b65038
Merge pull request #317 from adithyadinesh0412/develop
rakeshSgr Jan 9, 2024
0199192
Merge pull request #316 from ELEVATE-Project/story#1065
joffinjoy Jan 9, 2024
778a27c
Merge pull request #313 from ELEVATE-Project/email_id_encryption
aks30 Jan 9, 2024
f58ae23
account search email regex
adithyadinesh0412 Jan 9, 2024
cf2d4c4
Merge branch 'develop' of https://github.com/ELEVATE-Project/user int…
adithyadinesh0412 Jan 9, 2024
762d345
Added Languages EntityType DataType Fix Migration
joffinjoy Jan 9, 2024
0478021
Added Preferred Language EntityType And Entities Migration
joffinjoy Jan 9, 2024
ddfb088
Fixed The EntityType Seeder
joffinjoy Jan 9, 2024
aa74cf1
Made the Datafix Migration As Non-blocking As It Is Likely To Cause A…
joffinjoy Jan 9, 2024
9e817df
Merge branch 'develop' of https://github.com/ELEVATE-Project/user int…
Jan 9, 2024
51f6260
ansible fix
Jan 9, 2024
9ad3dbd
Merge pull request #322 from ELEVATE-Project/entity_types_fix_migrations
aks30 Jan 9, 2024
37e6497
Merge pull request #323 from ELEVATE-Project/ansible_script_fix
rakeshSgr Jan 9, 2024
a1ac1d9
Merge pull request #324 from ELEVATE-Project/bug-1157
joffinjoy Jan 9, 2024
d67fe20
user search with multiple emails
adithyadinesh0412 Jan 9, 2024
0c17226
Merge pull request #325 from adithyadinesh0412/develop
rakeshSgr Jan 10, 2024
92fc838
Added Email Encryption Migration
joffinjoy Jan 10, 2024
4660378
ansible fix
Jan 10, 2024
de3cf32
Added 2.6.0 Release Note File
joffinjoy Jan 10, 2024
041b631
ansible fix
Jan 10, 2024
4434ce4
Merge pull request #327 from ELEVATE-Project/ansible_script_fix
rakeshSgr Jan 10, 2024
b13b736
Removed Encrypted Email From Output CSV
joffinjoy Jan 10, 2024
4cb8b14
Merge pull request #328 from ELEVATE-Project/user-invites-output-csv-fix
joffinjoy Jan 10, 2024
0e820c9
Merge pull request #326 from ELEVATE-Project/encryption-migration
rakeshSgr Jan 11, 2024
9abc507
Fix For Single Select Entity Type
joffinjoy Jan 11, 2024
5de98d4
Merge pull request #330 from ELEVATE-Project/single-entity-type-fix
joffinjoy Jan 11, 2024
aa529e9
Merge pull request #331 from ELEVATE-Project/hotfix-2.5
joffinjoy Jan 11, 2024
955c4c0
Migration Fix For Email Encryption
joffinjoy Jan 11, 2024
e31f025
Merge pull request #332 from ELEVATE-Project/email-encryption-migrati…
rakeshSgr Jan 11, 2024
64af0a2
Added Transcation Rollbacks
joffinjoy Jan 11, 2024
b5eb129
Added console log
joffinjoy Jan 11, 2024
9e9ae7e
Merge pull request #333 from ELEVATE-Project/email-encryption-migrati…
joffinjoy Jan 11, 2024
7504c6d
Fixed Migration - Ignores Offending Rows
joffinjoy Jan 11, 2024
1692446
Merge pull request #334 from ELEVATE-Project/email-encryption-migrati…
joffinjoy Jan 11, 2024
dc5cbf9
Merge pull request #336 from ELEVATE-Project/develop
rakeshSgr Jan 12, 2024
5eb4f2a
New APi default list
sumanvpacewisdom Jan 12, 2024
ce505c9
DefaultList API DOC AND COLLECTION
sumanvpacewisdom Jan 12, 2024
37f8f50
added session manger role in sample csv
priyanka-TL Jan 14, 2024
c78ece0
updated search to handle multiple roles
nevil-mathew Jan 16, 2024
2e9ee72
Merge pull request #338 from ELEVATE-Project/modify-search-api
rakeshSgr Jan 16, 2024
ffad898
fixed an issue with search API
nevil-mathew Jan 16, 2024
40d04c3
Merge pull request #339 from ELEVATE-Project/modify-search-api
rakeshSgr Jan 17, 2024
4872598
Fixed CSV Upload Issue
joffinjoy Jan 17, 2024
3203c6f
Merge pull request #340 from ELEVATE-Project/csv-upload-fix
aks30 Jan 17, 2024
8b431c3
Merge branch 'develop' of https://github.com/ELEVATE-Project/user int…
adithyadinesh0412 Jan 18, 2024
7513acc
fixed an issue with viewsScript
nevil-mathew Jan 18, 2024
0460b8f
Merge pull request #342 from ELEVATE-Project/views-script-fix
rakeshSgr Jan 18, 2024
443cbb0
Modified Validation
joffinjoy Jan 18, 2024
319f677
Merge pull request #344 from ELEVATE-Project/validation-fix
aks30 Jan 18, 2024
b548146
Minor Fix
joffinjoy Jan 18, 2024
f934368
Merge pull request #346 from ELEVATE-Project/validation-fix
joffinjoy Jan 18, 2024
e9255c4
count issue fix
adithyadinesh0412 Jan 19, 2024
4b2d9ab
Merge pull request #348 from adithyadinesh0412/develop
rakeshSgr Jan 19, 2024
b37123e
Merge pull request #337 from sumanvpacewisdom/new-develop-2.6
rakeshSgr Jan 19, 2024
40ba5d4
api-doc changes
sumanvpacewisdom Jan 19, 2024
693c227
Merge pull request #349 from sumanvpacewisdom/new-develop-2.6
joffinjoy Jan 19, 2024
16429cf
Migration Changes
sumanvpacewisdom Jan 19, 2024
e3dc270
Merge pull request #354 from sumanvpacewisdom/new-dev-2.6
joffinjoy Jan 19, 2024
8fdb575
mutiple role assignment through csv and new notification template cre…
priyanka-TL Jan 20, 2024
6401d67
registration email changes
priyanka-TL Jan 22, 2024
d212706
added portal url is registration template
priyanka-TL Jan 22, 2024
1b7c7a2
convert seeder to migration file
priyanka-TL Jan 22, 2024
bdd1752
Merge pull request #355 from ELEVATE-Project/story#1054
rakeshSgr Jan 22, 2024
b07dcd0
Encryted Email Id Fix
joffinjoy Jan 23, 2024
ad161dc
migration for update session manager role
priyanka-TL Jan 23, 2024
928d940
Merge pull request #359 from ELEVATE-Project/fixCSVIssues
rakeshSgr Jan 23, 2024
a6d5cbd
updated validators to handle new fields
nevil-mathew Jan 23, 2024
3ef5e2c
updated entity type queries
nevil-mathew Jan 23, 2024
f651e41
email issue fix for mentor request approval
priyanka-TL Jan 23, 2024
96ef99d
Merge pull request #362 from ELEVATE-Project/fixCSVIssues
rakeshSgr Jan 23, 2024
1a00573
updated name
nevil-mathew Jan 23, 2024
bbe1aac
Merge pull request #361 from ELEVATE-Project/entity-type-validations
rakeshSgr Jan 23, 2024
a6ffb9a
mentor role request issue fix
priyanka-TL Jan 23, 2024
74c88e7
Merge pull request #364 from ELEVATE-Project/fixCSVIssues
rakeshSgr Jan 23, 2024
d468cdc
Merge pull request #358 from ELEVATE-Project/email-fix
rakeshSgr Jan 23, 2024
ae5beaf
roles issue fix in email
priyanka-TL Jan 23, 2024
7bf645f
Merge pull request #368 from ELEVATE-Project/fixCSVIssues
rakeshSgr Jan 23, 2024
185a7d8
fixed an issue with email decrypt
nevil-mathew Jan 24, 2024
4557943
Merge pull request #370 from ELEVATE-Project/email-decryption-fix
rakeshSgr Jan 24, 2024
c74fb59
clear env variables
priyanka-TL Jan 24, 2024
f273e9f
removed all mongo related dependencies
nevil-mathew Jan 24, 2024
454353c
Merge pull request #372 from ELEVATE-Project/remove-mongo-dep
rakeshSgr Jan 24, 2024
2cef4a8
Merge pull request #371 from ELEVATE-Project/task#2420
rakeshSgr Jan 25, 2024
2ecf626
merge with develop
Jan 25, 2024
40bbe17
integration test env
Jan 25, 2024
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
16 changes: 3 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Elevate user services can be setup in local using two methods:

### Local Dependencies Steps

1. Update dependency (Mongo, Kafka etc) IP addresses in .env with "**host.docker.internal**".
1. Update dependency (Mongo v4.1.4, Kafka etc) IP addresses in .env with "**host.docker.internal**".

Eg:

Expand Down Expand Up @@ -102,7 +102,7 @@ Elevate user services can be setup in local using two methods:

### Remote Dependencies Steps

1. Update dependency (Mongo, Kafka etc) Ip addresses in .env with respective remote server IPs.
1. Update dependency (Mongo v4.1.4, Kafka etc) Ip addresses in .env with respective remote server IPs.

Eg:

Expand Down 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 Expand Up @@ -279,7 +270,7 @@ Elevate user services can be setup in local using two methods:
- Node - 16.0.0
- Kafka - 3.1.0
- Jest - 28.1.1
- MongoDB - 4.4.14
- MongoDB - 4.1.4
- Redis - 7.0.0

# Migrations Commands
Expand Down Expand Up @@ -405,4 +396,3 @@ Several open source dependencies that have aided user service development:

<!-- ![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white)
![CircleCI](https://img.shields.io/badge/circle%20ci-%23161616.svg?style=for-the-badge&logo=circleci&logoColor=white) -->

12 changes: 8 additions & 4 deletions deployment/ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@
# src={{ release_path }}
# dest={{ current_path }}
# state=link

- name: Delete old pm2 process
command: pm2 delete elevate-user
ignore_errors: yes

- name: set permission
shell: chmod 744 {{ current_path }}/src/scripts/json2env.sh
Expand All @@ -78,6 +74,14 @@
register: apiDocResponse
- debug: msg=" Api-doc {{ apiDocResponse }} "


- name: Run Migrations
command: "chdir={{current_path}}/src npx sequelize-cli db:migrate"

- name: Delete old pm2 process
command: pm2 delete elevate-user
ignore_errors: yes

- name: Delete release folder
shell: rm -rf {{ release_path }}

Expand Down
45 changes: 24 additions & 21 deletions dev-ops/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,39 @@
version: '3'
services:
zookeeper:
image: 'bitnami/zookeeper:3.8.0'
image: 'confluentinc/cp-zookeeper:7.3.0'
ports:
- '2181:2181'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
- ZOOKEEPER_CLIENT_PORT=2181
- ZOOKEEPER_TICK_TIME=2000
networks:
- elevate_net
logging:
driver: none
driver: json-file
kafka:
image: 'bitnami/kafka:3.1.0'
image: 'confluentinc/cp-kafka:7.3.0'
ports:
- '9092:9092'
environment:
- KAFKA_BROKER_ID=1
- KAFKA_CFG_LISTENERS=CLIENT://:9092,EXTERNAL://:9093
- KAFKA_CFG_ADVERTISED_LISTENERS=CLIENT://kafka:9092,EXTERNAL://localhost:9093
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CLIENT:PLAINTEXT,EXTERNAL:PLAINTEXT
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=CLIENT
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:9093
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
depends_on:
- zookeeper
networks:
- elevate_net

logging:
driver: none
mongo:
image: 'mongo:4.4.14'
driver: json-file
postgres:
image: 'postgres:16'
restart: 'always'
ports:
- '27017:27017'
- '5432:5432'
networks:
- elevate_net
logging:
Expand All @@ -42,24 +46,23 @@ services:
networks:
- elevate_net
logging:
driver: none
user_test:
driver: json-file
user_elevate_2.5:
build: '../'
image: elevate/user:1.0
# image: elevate/user:1.0
volumes:
- ../src/:/var/src
ports:
- '3001:3001'
- '5001:5001'
command: [ 'nodemon', 'app.js' ]
environment:
- MONGODB_URL=mongodb://mongo:27017/elevate-mentoring
- KAFKA_URL=kafka:9092
- REDIS_HOST=redis://redis:6379
env_file:
- integration_test.env
depends_on:
- kafka
- mongo
- postgres
- redis
networks:
- elevate_net
Expand Down
225 changes: 98 additions & 127 deletions dev-ops/integration_test.env
Original file line number Diff line number Diff line change
@@ -1,127 +1,98 @@
#User Service Config

# Port on which service runs
APPLICATION_PORT = 3001

# Service environment
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'

# Token secret to generate refresh token
REFRESH_TOKEN_SECRET = 'refresh-token-secret'

# Kafka hosted server url
KAFKA_URL = localhost:9092

# Kafka group to which consumer belongs
KAFKA_GROUP_ID = userservice

# Kafka topic to consume data from
KAFKA_TOPIC = 'testTopic'

# Kafka topic to push notification data
NOTIFICATION_KAFKA_TOPIC = 'testTopic'

# Any one of three features available for cloud storage
CLOUD_STORAGE = 'AWS'

# Gcp json config file path
GCP_PATH = 'gcp.json'

# Gcp bucket name which stores files
DEFAULT_GCP_BUCKET_NAME = 'gcp-bucket-storage-name'

# Gcp project id
GCP_PROJECT_ID = 'project-id'

# Aws access key id
AWS_ACCESS_KEY_ID = 'aws-access-key-id'

# Aws secret access key
AWS_SECRET_ACCESS_KEY = 'aws-secret-access-key'

# Aws region where bucket will be located
AWS_BUCKET_REGION = 'ap-south-1'

# Aws end point
AWS_BUCKET_ENDPOINT = 's3.ap-south-1.amazonaws.com'

# Aws bucket name which stores files
DEFAULT_AWS_BUCKET_NAME = 'aws-bucket-storage-name'

# Azure storage account name
AZURE_ACCOUNT_NAME = 'account-name'

# Azure storage account key
AZURE_ACCOUNT_KEY = 'azure-account-key'

# Azure storage container which stores files
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'

# JWT Refresh Token expiry In Days
REFRESH_TOKEN_EXPIRY = '183'

# Redis Host connectivity url
REDIS_HOST = 'redis://localhost:6379'

# Otp expiration time for forgetpassword or registration process
OTP_EXP_TIME = 86400

# Enable email based otp verification for registration process
ENABLE_EMAIL_OTP_VERIFICATION = false

# Api doc url
API_DOC_URL = '/api-doc'

#Enable email for reported issue.
ENABLE_EMAIL_FOR_REPORT_ISSUE = true

#Email id of the support team.
SUPPORT_EMAIL_ID = '[email protected],[email protected]'

#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

#Kafka internal communicationcation
CLEAR_INTERNAL_CACHE = 'userInternal'

APP_NAME = 'user'

REGISTRATION_EMAIL_TEMPLATE_CODE = 'code'

OTP_EMAIL_TEMPLATE_CODE = 'ssss'
REDIS_CACHE_EXP_TIME = 11

KEY="g5MQ7HG/r5gPCPQQCwfBBEduAt72ewJIY/gWc0RNoak="
IV="2lIctRkqzYMWbwlW1jCC9A=="

ERROR_LOG_LEVEL='silly'
DISABLE_LOG=false

ADMIN_SECRET_CODE=W5bF7gesuS0xsNWmpsKy
ACCESS_TOKEN_EXPIRY=1
ACCESS_TOKEN_SECRET=bsj82AHBxahusub12yexlashsbxAXADHBlaj
API_DOC_URL = /user/api-doc
APP_NAME=MentorED
APPLICATION_ENV=development

#APPLICATION_PORT=3001

#CLOUD SERVICE DETAILS
AWS_ACCESS_KEY_ID= "test"
AWS_BUCKET_ENDPOINT= "s3.ap-south-1.amazonaws.com"
AWS_BUCKET_REGION= "ap-south-1"
AWS_SECRET_ACCESS_KEY= "/0UfS/0ooVQAwQMcwaW9yi"

AZURE_ACCOUNT_KEY=test
AZURE_ACCOUNT_NAME=mentoring
CLEAR_INTERNAL_CACHE=userinternal
CLOUD_STORAGE=AWS

DEFAULT_AWS_BUCKET_NAME=mentoring-dev-storage
DEFAULT_AZURE_CONTAINER_NAME=mentoring-images
DEFAULT_GCP_BUCKET_NAME=mentoring-dev-storage
ENABLE_EMAIL_OTP_VERIFICATION=false

GCP_PATH=gcp.json
GCP_PROJECT_ID=sl-dev-project
INTERNAL_ACCESS_TOKEN=internal_access_token
INTERNAL_CACHE_EXP_TIME=86400
IV=LHYOA5YnTonqcgrm15k3/Q==

#KAFKA
KAFKA_GROUP_ID=mentoring
KAFKA_TOPIC= mentoring
#KAFKA_URL= localhost:9092
KEY=E/m3RD/aM3Ed3lLfYVcKizakG9R+bFybAPZSLjIP2hY=

NOTIFICATION_KAFKA_TOPIC=dev.notifications
OTP_EMAIL_TEMPLATE_CODE=emailotp
OTP_EXP_TIME=86400

#REDIS_HOST=redis://localhost:6379

#refresh tokens deatils
REFRESH_TOKEN_EXPIRY=183
REFRESH_TOKEN_SECRET=371hkjkjady2y3ihdkajshdkiq23iuekw71yekhaskdvkvegavy23t78veqwexqvxveit6ttxyeeytt62tx236vv

#EMAIL TEMPLATES
REGISTRATION_EMAIL_TEMPLATE_CODE=registration
REGISTRATION_OTP_EMAIL_TEMPLATE_CODE=registrationotp


DEFAULT_OCI_BUCKET_NAME= dev-mentoring
OCI_ACCESS_KEY_ID= 23b90f80de10cc226f7a4d617e0f4012a544d01d
OCI_BUCKET_ENDPOINT= https://axgqmpkrpmt5.compat.objectstorage.ap-hyderabad-1.oraclecloud.com
OCI_BUCKET_REGION= ap-hyderabad-1
OCI_SECRET_ACCESS_KEY= 22levMw5Cinz6/NsAKXXakZMpzCet9yu6nn4dVeSmNE=


ERROR_LOG_LEVEL= silly
DISABLE_LOG= false
DEFAULT_ORGANISATION_CODE=default_code

#new
DEV_DATABASE_URL=postgres://postgres:postgres@localhost:5432/user-local
ADMIN_SECRET_CODE=W5bF7gesuS0xsNWmpsKy
MENTORING_SERVICE_URL= test
DEFAULT_QUEUE="test"

INVITEE_EMAIL_TEMPLATE_CODE='test'
ADMIN_INVITEE_UPLOAD_EMAIL_TEMPLATE_CODE='test'
MENTOR_INVITATION_EMAIL_TEMPLATE_CODE="test"
MENTEE_INVITATION_EMAIL_TEMPLATE_CODE="test"
#Default role
DEFAULT_ROLE="mentee"

#sample file upload path
SAMPLE_CSV_FILE_PATH=sample/bulk_user_creation.csv

#Email template for org admin invitation
ORG_ADMIN_INVITATION_EMAIL_TEMPLATE_CODE=invite_org_admin
DEFAULT_ORG_ID=1
MENTORING_SERVICE_URL=http://mentoring:3002
#Email template for mentor role request accepted
MENTOR_REQUEST_ACCEPTED_EMAIL_TEMPLATE_CODE=mentor_request_accepted

#Email template for mentor role request rejected
MENTOR_REQUEST_REJECTED_EMAIL_TEMPLATE_CODE=mentor_request_rejected
DEFAULT_ROLE=mentee
PORTAL_URL = 'https://mentored.shikshalokam.org/auth/login'

#Host name for scheduler service
SCHEDULER_SERVICE_HOST="http://localhost:4000"

#base URL for scheduler service
SCHEDULER_SERVICE_BASE_URL= /scheduler/

#Refresh interval for materialized views
REFRESH_VIEW_INTERVAL= 540000
Loading