From a710b729a282d6d28d37ae5695ffc8010b7f4deb Mon Sep 17 00:00:00 2001 From: Saurav Mishra <80103738+SauravBizbRolly@users.noreply.github.com> Date: Wed, 28 Jan 2026 17:05:31 +0530 Subject: [PATCH 1/2] remove cors from properties file (#346) --- src/main/java/com/iemr/common/config/CorsConfig.java | 2 +- src/main/java/com/iemr/common/utils/FilterConfig.java | 2 +- src/main/resources/application.properties | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/iemr/common/config/CorsConfig.java b/src/main/java/com/iemr/common/config/CorsConfig.java index bdee1beb..fdd9b494 100644 --- a/src/main/java/com/iemr/common/config/CorsConfig.java +++ b/src/main/java/com/iemr/common/config/CorsConfig.java @@ -9,7 +9,7 @@ @Configuration public class CorsConfig implements WebMvcConfigurer { - @Value("${cors.allowed-origin}") + @Value("${cors.allowed-origins}") private String allowedOrigins; @Override public void addCorsMappings(CorsRegistry registry) { diff --git a/src/main/java/com/iemr/common/utils/FilterConfig.java b/src/main/java/com/iemr/common/utils/FilterConfig.java index 379eb180..9f6efb13 100644 --- a/src/main/java/com/iemr/common/utils/FilterConfig.java +++ b/src/main/java/com/iemr/common/utils/FilterConfig.java @@ -9,7 +9,7 @@ @Configuration public class FilterConfig { - @Value("${cors.allowed-origin}") + @Value("${cors.allowed-origins}") private String allowedOrigins; @Bean diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index beefff31..71bf5aa0 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -371,6 +371,4 @@ video-call-url = allowed.file.extensions=msg,pdf,png,jpeg,doc,docx,xlsx,xls,csv,txt ##sms details for beneficiary otp cosent -sms-template-name = otp_consent - -cors.allowed-origin = +sms-template-name = otp_consent \ No newline at end of file From 2694d8dd5c388ddf5442e97bb8c01f946812a712 Mon Sep 17 00:00:00 2001 From: Sachin Kadam <152252767+sac2kadam@users.noreply.github.com> Date: Wed, 28 Jan 2026 18:15:59 +0530 Subject: [PATCH 2/2] fix: update env --- src/main/environment/common_ci.properties | 1 + src/main/environment/common_docker.properties | 2 +- src/main/resources/application.properties | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/environment/common_ci.properties b/src/main/environment/common_ci.properties index 0184b32f..cf057475 100644 --- a/src/main/environment/common_ci.properties +++ b/src/main/environment/common_ci.properties @@ -172,6 +172,7 @@ grievanceUserName = @env.GRIEVANCE_USERNAME@ grievancePassword = @env.GRIEVANCE_PASSWORD@ grievanceUserAuthenticate = @env.GRIEVANCE_USER_AUTHENTICATE@ grievanceDataSyncDuration = @env.GRIEVANCE_DATA_SYNC_DURATION@ +tempFilePath=@env.TEMP_FILE_PATH@ springdoc.api-docs.enabled=@env.SWAGGER_DOC_ENABLED@ springdoc.swagger-ui.enabled=@env.SWAGGER_DOC_ENABLED@ diff --git a/src/main/environment/common_docker.properties b/src/main/environment/common_docker.properties index a81ea62e..d9a81929 100644 --- a/src/main/environment/common_docker.properties +++ b/src/main/environment/common_docker.properties @@ -158,7 +158,7 @@ jwt.secret=${JWT_SECRET_KEY} #ELK logging file name logging.path=logs/ logging.file.name=${COMMON_API_LOGGING_FILE_NAME} - +tempFilePath=${TEMP_FILE_PATH} ##grievance API call updateGrievanceDetails = ${GRIEVANCE_API_BASE_URL}/grsbepro/igemr1097/public/api/v1/state-wise/grievance-list?page=PageNumber¤tpage=1 diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 46c4b26a..f80011f6 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -28,7 +28,7 @@ BeneficiarySmsTemplate=Beneficiary UPTSU SMS future-days=7 ## Path where the files would be stored before uploading to KM server -tempFilePath=c:/temp/ +##tempFilePath=c:/temp/ ## swaasa file path lungAssessmentPath=c:/swaasa_audio/