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
14 changes: 13 additions & 1 deletion src/main/environment/1097_ci.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
spring.datasource.url=@env.DATABASE_1097_IDENTITY_URL@
spring.datasource.username=@env.DATABASE_IDENTITY_USERNAME@
spring.datasource.password=@env.DATABASE_IDENTITY_PASSWORD@
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

#ELK logging file name
logging.path=logs/
Expand All @@ -23,3 +23,15 @@ fhir-url=@env.FHIR_API@
spring.redis.host=@env.REDIS_HOST@

cors.allowed-origins=@env.CORS_ALLOWED_ORIGINS@


# Elasticsearch Configuration
elasticsearch.host=@env.ELASTICSEARCH_HOST@
elasticsearch.port=@env.ELASTICSEARCH_PORT@
elasticsearch.username=@env.ELASTICSEARCH_USERNAME@
elasticsearch.password=@env.ELASTICSEARCH_PASSWORD@
elasticsearch.index.beneficiary=@env.ELASTICSEARCH_INDEX_BENEFICIARY@

# Enable/Disable ES (for gradual rollout)
elasticsearch.enabled=@env.ELASTICSEARCH_ENABLED@

14 changes: 13 additions & 1 deletion src/main/environment/1097_docker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
spring.datasource.url=${DATABASE_1097_IDENTITY_URL}
spring.datasource.username=${DATABASE_IDENTITY_USERNAME}
spring.datasource.password=${DATABASE_IDENTITY_PASSWORD}
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

#ELK logging file name
logging.path=logs/
Expand All @@ -22,3 +22,15 @@ fhir-url=${FHIR_API}
spring.redis.host=${REDIS_HOST}

cors.allowed-origins=${CORS_ALLOWED_ORIGINS}


# Elasticsearch Configuration
elasticsearch.host=${ELASTICSEARCH_HOST}
elasticsearch.port=${ELASTICSEARCH_PORT}
elasticsearch.username=${ELASTICSEARCH_USERNAME}
elasticsearch.password=${ELASTICSEARCH_PASSWORD}
elasticsearch.index.beneficiary=${ELASTICSEARCH_INDEX_BENEFICIARY}

# Enable/Disable ES (for gradual rollout)
elasticsearch.enabled=${ELASTICSEARCH_ENABLED}

15 changes: 14 additions & 1 deletion src/main/environment/1097_example.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
spring.datasource.url=jdbc:mysql://localhost:3306/db_1097_identity
spring.datasource.username=root
spring.datasource.password=1234
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

jwt.secret=my-32-character-ultra-secure-and-ultra-long-secret
logging.path=logs/
Expand All @@ -19,3 +19,16 @@
# Redis Config
spring.redis.host=localhost
cors.allowed-origins=http://localhost:*


# Elasticsearch Configuration
elasticsearch.host=localhost
elasticsearch.port=9200
elasticsearch.username=elastic
elasticsearch.password=piramalES

Check warning on line 28 in src/main/environment/1097_example.properties

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Make sure these credentials get revoked, changed, and removed from the code.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AZ2-_p43AoJmzSlDjm2w&open=AZ2-_p43AoJmzSlDjm2w&pullRequest=155

Check notice

Code scanning / SonarCloud

Credentials should not be hard-coded Low

Make sure these credentials get revoked, changed, and removed from the code. See more on SonarQube Cloud
elasticsearch.index.beneficiary=beneficiary_index

# Enable/Disable ES (for gradual rollout)
elasticsearch.enabled=true


2 changes: 1 addition & 1 deletion src/main/environment/common_ci.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
spring.datasource.url=@env.DATABASE_IDENTITY_URL@
spring.datasource.username=@env.DATABASE_IDENTITY_USERNAME@
spring.datasource.password=@env.DATABASE_IDENTITY_PASSWORD@
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

#ELK logging file name
logging.path=logs/
Expand Down
2 changes: 1 addition & 1 deletion src/main/environment/common_docker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
spring.datasource.url=${DATABASE_IDENTITY_URL}
spring.datasource.username=${DATABASE_IDENTITY_USERNAME}
spring.datasource.password=${DATABASE_IDENTITY_PASSWORD}
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

#ELK logging file name
logging.path=logs/
Expand Down
4 changes: 2 additions & 2 deletions src/main/environment/common_example.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
server.port=8094
# DataSource settings: set here your own configurations for the database
spring.datasource.url=jdbc:mysql://localhost:3306/db_iemr
spring.datasource.url=jdbc:mysql://localhost:3306/db_identity
spring.datasource.username=root
spring.datasource.password=1234
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

jwt.secret=my-32-character-ultra-secure-and-ultra-long-secret
logging.path=logs/
Expand Down
Loading