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
11 changes: 11 additions & 0 deletions src/main/environment/1097_ci.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,14 @@ 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@

12 changes: 12 additions & 0 deletions src/main/environment/1097_docker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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}

11 changes: 11 additions & 0 deletions src/main/environment/1097_example.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,14 @@
# 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 27 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=AZ0oi4xFhIRfcnuOxDOh&open=AZ0oi4xFhIRfcnuOxDOh&pullRequest=153

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_example.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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
Expand Down
Loading