diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9fd24b9b792488584243634bf5608374f53b3544..f78f59f7262c73aa72732e536117433fbdb5d37e 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 0000000000000000000000000000000000000000..ceaf87898e27a3de1f60f12f0cfb6003a3795bdf --- /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 7f38380b4ab85a87702dead1644cdfc1de1c072a..71fed9b3557f1c4c542a5d18309e3b07355dbf62 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: