From 6ec9f17c137776d70c0e3b8c596be974a16eae25 Mon Sep 17 00:00:00 2001
From: "thibault.capt" <thibault.capt@etu.hesge.ch>
Date: Sun, 12 Jan 2025 17:57:17 +0100
Subject: [PATCH] update

---
 .gitlab-ci.yml                                |  1 +
 backend/src/main/resources/application-ci.yml | 32 +++++++++++++++++++
 .../src/main/resources/application-dev.yml    |  4 +--
 3 files changed, 35 insertions(+), 2 deletions(-)
 create mode 100644 backend/src/main/resources/application-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9fd24b9..f78f59f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,6 +9,7 @@ stages:
   - deploy
 
 variables:
+  SPRING_PROFILES_ACTIVE: ci
   POSTGRES_DB: tunesphere_db
   POSTGRES_USER: username
   POSTGRES_PASSWORD: password
diff --git a/backend/src/main/resources/application-ci.yml b/backend/src/main/resources/application-ci.yml
new file mode 100644
index 0000000..ceaf878
--- /dev/null
+++ b/backend/src/main/resources/application-ci.yml
@@ -0,0 +1,32 @@
+spring:
+  datasource:
+    url: jdbc:postgresql://postgres:5432/tunesphere_db
+    username: username 
+    password: password
+    driver-class-name: org.postgresql.Driver
+
+  jpa:
+    hibernate:
+      ddl-auto: update
+    show-sql: false
+    properties:
+      hibernate:
+        format_sql: true
+    database: postgresql
+    database-platform: org.hibernate.dialect.PostgreSQLDialect
+
+  server:
+    port: 8088
+
+  application:
+    security:
+      jwt:
+        secret: a541e643211a6fd02d1d96b3efd603617eb863887cb58342faa7b395b2732d24
+        expiration: 86400000
+    mailing:
+      frontend:
+        activation-url: http://localhost:4200/activate-account
+
+  app:
+    music:
+      upload-dir: uploads/musics
diff --git a/backend/src/main/resources/application-dev.yml b/backend/src/main/resources/application-dev.yml
index 7f38380..71fed9b 100644
--- a/backend/src/main/resources/application-dev.yml
+++ b/backend/src/main/resources/application-dev.yml
@@ -1,8 +1,8 @@
 spring:
   datasource:
     url: jdbc:postgresql://localhost:5432/tunesphere_db
-    username: username # TODO: Change username
-    password: password # TODO: Change password
+    username: username
+    password: password
     driver-class-name: org.postgresql.Driver
   jpa:
     hibernate:
-- 
GitLab