diff --git a/backend/src/main/resources/application.yml b/backend/src/main/resources/application.yml index a5f2e8d54..f9cc3c191 100644 --- a/backend/src/main/resources/application.yml +++ b/backend/src/main/resources/application.yml @@ -107,6 +107,67 @@ management: monitoring-profile: develop +--- +spring: + config: + activate: + on-profile: test + datasource: + url: ${DB_URL} + driver-class-name: com.mysql.cj.jdbc.Driver + username: ${DB_USER} + password: ${DB_PASSWORD} + flyway: + enabled: true + baseline-on-migrate: true + jpa: + show-sql: true + properties: + hibernate: + dialect: org.hibernate.dialect.MySQL8Dialect + hibernate: + ddl-auto: ${DDL_AUTO} + defer-datasource-initialization: false + +security: + jwt: + token: + secret-key: ${JWT_TOKEN_SECRET_KEY} + expire-length: ${JWT_TOKEN_EXPIRE_CYCLE} + algorithm: ${JWT_SIGN_ALGORITHM} + +cookie: + access-token-key: ${COOKIE_ACCESS_TOKEN_KEY} + http-only: ${COOKIE_HTTP_ONLY} + secure: ${COOKIE_SECURE} + domain: ${COOKIE_DOMAIN} + path: ${COOKIE_PATH} + same-site: ${COOKIE_SAME_SITE} + max-age: ${COOKIE_MAX_AGE} + +dataloader: + enable: false +server: + port: ${SERVER_PORT} + +management: + server: + port: ${MONITORING_PORT} + endpoints: + web: + base-path: ${MONITORING_BASE_PATH} + exposure: + include: prometheus + enabled-by-default: false + jmx: + exposure: + exclude: "*" + endpoint: + prometheus: + enabled: true + +monitoring-profile: test + --- spring: config: