Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/cleanup gateway #76

Merged
merged 7 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .run/ApiGatewayApplication.run.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="ApiGatewayApplication" type="SpringBootApplicationConfigurationType"
factoryName="Spring Boot" nameIsGenerated="true">
<option name="ACTIVE_PROFILES" value="local,local-conf,hazelcast-local"/>
<option name="ACTIVE_PROFILES" value="local,hazelcast-local"/>
<module name="refarch-gateway"/>
<option name="SPRING_BOOT_MAIN_CLASS" value="de.muenchen.refarch.gateway.ApiGatewayApplication"/>
<extension name="net.ashald.envfile">
Expand Down
20 changes: 20 additions & 0 deletions refarch-gateway/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
SSO_ISSUER_URL: http://localhost:8100/auth/realms/local_realm
SSO_CLIENT_ID: local
SSO_CLIENT_SECRET: client_secret
server:
port: 8083
spring:
cloud:
gateway:
routes:
- id: backend
uri: http://localhost:39146/
predicates:
- "Path=/api/backend-service/rest/**"
filters:
- RewritePath=/api/digitalwf-backend-service/(?<urlsegments>.*), /$\{urlsegments}
- "RemoveResponseHeader=WWW-Authenticate"
- id: frontend
uri: http://localhost:4173/
predicates:
- "Path=/**"
13 changes: 0 additions & 13 deletions refarch-gateway/src/main/resources/application-no-security.yml

This file was deleted.

2 changes: 1 addition & 1 deletion refarch-gateway/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</appender>

<!-- Logger -->
<logger name="de.muenchen.oss.refarch.gateway"
<logger name="de.muenchen.refarch.gateway"
level="debug"
additivity="false">
<appender-ref ref="STDOUT"/>
Expand Down