From ff9d73ea3552cc2dc87119b71b12d690e2faa816 Mon Sep 17 00:00:00 2001 From: KronosDP <darrel.danadyaksa19@gmail.com> Date: Sat, 8 Mar 2025 18:59:21 +0700 Subject: [PATCH] [CONFIG] Update JWT secret key in application properties for development and testing environments --- src/main/resources/application-dev.properties | 6 ++---- src/main/resources/application.properties | 2 +- src/test/resources/application-dev.properties | 2 +- src/test/resources/application-test.properties | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index b7c904d..4e6def6 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -1,12 +1,10 @@ spring.application.name=authentication - spring.datasource.url=jdbc:postgresql://localhost:5432/be-authentication spring.datasource.username=postgres spring.datasource.password=postgres - spring.datasource.driver-class-name=org.postgresql.Driver spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect - # Hibernate Properties spring.jpa.hibernate.ddl-auto=update -spring.jpa.show-sql=true \ No newline at end of file +spring.jpa.show-sql=true +JWT_SECRET_KEY=73278e829cef5513e97c375786c1d583dc4bf0bf41e293b36fa63b73cdf1438d \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 9b8952e..622947d 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -10,4 +10,4 @@ spring.mail.properties.mail.smtp.auth=true spring.mail.properties.mail.smtp.starttls.enable=true spring.mail.properties.mail.smtp.starttls.required=true -JWT_SECRET_KEY={$JWT_SECRET_KEY} \ No newline at end of file +JWT_SECRET_KEY=73278e829cef5513e97c375786c1d583dc4bf0bf41e293b36fa63b73cdf1438d diff --git a/src/test/resources/application-dev.properties b/src/test/resources/application-dev.properties index 143b39c..fec2b92 100644 --- a/src/test/resources/application-dev.properties +++ b/src/test/resources/application-dev.properties @@ -9,4 +9,4 @@ spring.jpa.database-platform=org.hibernate.dialect.H2Dialect spring.jpa.hibernate.ddl-auto=create-drop # (Optional) Enable SQL logging spring.jpa.show-sql=true -JWT_SECRET_KEY={$JWT_SECRET_KEY} \ No newline at end of file +JWT_SECRET_KEY=73278e829cef5513e97c375786c1d583dc4bf0bf41e293b36fa63b73cdf1438d \ No newline at end of file diff --git a/src/test/resources/application-test.properties b/src/test/resources/application-test.properties index 24763b5..b5165ee 100644 --- a/src/test/resources/application-test.properties +++ b/src/test/resources/application-test.properties @@ -5,4 +5,4 @@ spring.mail.password=secret123 spring.mail.properties.mail.smtp.auth=true spring.mail.properties.mail.smtp.starttls.enable=false spring.mail.properties.mail.smtp.starttls.required=false -JWT_SECRET_KEY={$JWT_SECRET_KEY} \ No newline at end of file +JWT_SECRET_KEY=73278e829cef5513e97c375786c1d583dc4bf0bf41e293b36fa63b73cdf1438d -- GitLab