Skip to content

Commit

Permalink
application-test.yml hinzugefügt
Browse files Browse the repository at this point in the history
  • Loading branch information
ejcsid committed Aug 30, 2023
1 parent eaa0666 commit 66623ee
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ $(pwd)

# do not check in application profile yml
apigateway/**/application-*.yml
!apigateway/**/application-test.yml
apigateway/**/logback-spring.xml
frontend/.env.development
frontend/.env.production
frontend/package-lock.json
frontend/auto-imports.d.ts
frontend/components.d.ts
frontend/components.d.ts
53 changes: 53 additions & 0 deletions apigateway/src/test/application-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
wiremock:
server:
port: 0
https-port: -1

spring:

# spring cloud gateway config
cloud:
gateway:
actuator:
verbose:
enabled: false
globalcors:
corsConfigurations:
# The cors configuration to allow frontend developers cross origin request via this api gateway
'[/**]':
allowedOrigins:
- "http://localhost:8081"
- "http://127.0.0.1:8081"
allowedMethods: "*"
allowedHeaders: "*"
allowCredentials: true
maxAge: 3600
routes:
- id: backend
uri: http://localhost:${wiremock.server.port}/
predicates:
- Path=/api/isi-backend-service/**
filters:
- RewritePath=/api/isi-backend-service/(?<urlsegments>.*), /$\{urlsegments}
- RemoveResponseHeader=WWW-Authenticate
- TokenRelay=
- id: isi-master-eai
uri: http://localhost:${wiremock.server.port}/
predicates:
- Path=/api/isi-master-eai/**
filters:
- RewritePath=/api/isi-master-eai/(?<urlsegments>.*), /$\{urlsegments}
- RemoveResponseHeader=WWW-Authenticate
default-filters:
- RemoveResponseHeader=Expires
- RemoveRequestHeader=cookie
- RemoveRequestHeader=x-xsrf-token

# security config
security:
# possible values: none, all, changing (With changing, only changing requests such as POST, PUT, DELETE are logged)
logging.requests: all

mvc:
log-request-details: on

0 comments on commit 66623ee

Please sign in to comment.