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:
27
src/main/resources/application-dev.yml
Normal file
27
src/main/resources/application-dev.yml
Normal file
@ -0,0 +1,27 @@
|
||||
server:
|
||||
port: 8080
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:postgresql://postgres:5432/hemhub
|
||||
username: hemhub
|
||||
password: hemhub
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: none
|
||||
flyway:
|
||||
enabled: true
|
||||
security:
|
||||
oauth2:
|
||||
resourceserver:
|
||||
jwt:
|
||||
jwk-set-uri: http://host.docker.internal:8081/realms/hemhub/protocol/openid-connect/certs
|
||||
springdoc:
|
||||
swagger-ui: # (valfritt, behåll om du redan har)
|
||||
url: /v3/api-docs
|
||||
|
||||
logging:
|
||||
level:
|
||||
org.springframework.security: DEBUG
|
||||
org.springframework.security.oauth2: DEBUG
|
||||
|
||||
Reference in New Issue
Block a user