Add TestSecurityConfig for improved test setup and update configurations
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- Introduce `TestSecurityConfig` to simplify JWT usage in test environments. - Update integration tests to import `TestSecurityConfig`. - Split environment-specific configurations into new `application-dev.yml` and `applications-prod.yml` files. - Adjust `docker-compose.yml` for development-specific settings. - Clean up redundant JWT properties in `application.yml`.
This commit is contained in:
@ -28,6 +28,8 @@ services:
|
||||
KC_HOSTNAME_URL: "http://localhost:8081/"
|
||||
KC_HOSTNAME_ADMIN_URL: "http://localhost:8081/"
|
||||
KC_HOSTNAME_STRICT_HTTPS: "false"
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
|
||||
ports:
|
||||
- "8081:8081"
|
||||
@ -44,6 +46,9 @@ services:
|
||||
depends_on:
|
||||
postgres: { condition: service_healthy }
|
||||
environment:
|
||||
# Aktivera Spring-profilen "dev"
|
||||
SPRING_PROFILES_ACTIVE: dev
|
||||
|
||||
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/hemhub
|
||||
SPRING_DATASOURCE_USERNAME: hemhub
|
||||
SPRING_DATASOURCE_PASSWORD: hemhub
|
||||
|
||||
Reference in New Issue
Block a user