Skip to content

Commit

Permalink
Remove unused config and add dev environment setup
Browse files Browse the repository at this point in the history
Removed obsolete port and webproxy settings from config.yml to clean up configuration. Added a new application-dev.yaml file to set up the development environment with the yrkesskade data generator service URL. Updated bean names for gateway filters to improve clarity and maintain consistency.
  • Loading branch information
krharum committed Oct 2, 2024
1 parent d0558c1 commit fd37d8f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 0 additions & 2 deletions proxies/yrkesskade-proxy/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ metadata:
team: dolly
spec:
image: "{{image}}"
port: 8080
webproxy: true
tokenx:
enabled: true
azure:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@ public static void main(String[] args) {

@Bean
public RouteLocator customRouteLocator(RouteLocatorBuilder builder,
GatewayFilter authenticationFilter,
GatewayFilter trygdeetatenAuthenticationFilter,
Consumers consumers) {

return builder
.routes()
.route(spec -> spec
.path("/**")
.filters(f -> f.filter(authenticationFilter))
.filters(f -> f.filter(trygdeetatenAuthenticationFilter))
.uri(consumers.getYrkesskade().getUrl()))
.build();
}

@Bean
GatewayFilter getAuthenticationFilter(
GatewayFilter trygdeetatenAuthenticationFilter(
TrygdeetatenAzureAdTokenService tokenService,
Consumers consumers) {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

consumers:
yrkesskade:
url: https://yrkesskade-datagenerator-service.intern.dev.nav.no

0 comments on commit fd37d8f

Please sign in to comment.