Skip to content

Commit

Permalink
Renamer LOADBALANCER_URL til UNG_SAK_WEB_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ramrock93 committed Nov 19, 2024
1 parent 101fe63 commit e0b63ea
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions deploy/dev-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ spec:
- name: BOOTSTRAP_SERVERS
value: b27apvl00045.preprod.local:8443,b27apvl00046.preprod.local:8443,b27apvl00047.preprod.local:8443

# Loadbalancerconfig
- name: LOADBALANCER_URL
- name: UNG_SAK_WEB_URL
value: https://ung.intern.dev.nav.no

# LDAP
Expand Down
2 changes: 1 addition & 1 deletion deploy/prod-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ spec:
value: k9saksbehandling.k9-infotrygd-feed-hendelse

# Loadbalancerconfig
- name: LOADBALANCER_URL
- name: UNG_SAK_WEB_URL
value: https://ung.intern.nav.no

# LDAP
Expand Down
2 changes: 1 addition & 1 deletion web/app-vtp.properties
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ token.x.well.known.url=http://vtp:8060/rest/tokenx/.well-known/oauth-authorizati
token.x.client.id=dev-fss:k9saksbehandling:ung-sak

# LDAP
loadbalancer.url=http://localhost:8080
ung.sak.web.url=http://localhost:8080
ldap.url=ldap://localhost:8389/
ldap.auth=none
ldap.user.basedn=ou\=NAV,ou\=BusinessUnits,dc\=test,dc\=local
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

public class RedirectExceptionMapper implements ExceptionMapper<Throwable> {

private String loadBalancerUrl = System.getProperty("loadbalancer.url");
private String ungSakWebUrl = System.getProperty("ung.sak.web.url");

private KnownExceptionMappers exceptionMappers = new KnownExceptionMappers();

Expand All @@ -34,6 +34,6 @@ public Response toResponse(Throwable exception) {


protected String getBaseUrl() {
return loadBalancerUrl + ContextPathHolder.instance().getContextPath();
return ungSakWebUrl + ContextPathHolder.instance().getContextPath();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class RedirectFactory {

private String loadBalancerUrl;
private String ungSakWebUrl;

//TODO (TOR) Denne bør ikkje ligga på server, men heller automatisk redirecte i klient. (Men dette er tryggast løysing tett opptil release)
private String defaultPartUrl = "?punkt=default&fakta=default";
Expand All @@ -23,11 +23,11 @@ String lagRedirect(OppgaveRedirectData data) {
}

protected String getBaseUrl() {
return loadBalancerUrl + ContextPathHolder.instance().getContextPath();
return ungSakWebUrl + ContextPathHolder.instance().getContextPath();
}

@Inject
public void setLoadBalancerUrl(@KonfigVerdi("loadbalancer.url") String loadBalancerUrl) {
this.loadBalancerUrl = loadBalancerUrl;
public void setUngSakWebUrl(@KonfigVerdi("ung.sak.web.url") String ungSakWebUrl) {
this.ungSakWebUrl = ungSakWebUrl;
}
}

0 comments on commit e0b63ea

Please sign in to comment.