diff --git a/nais/nais-dev-gcp.yaml b/nais/nais-dev-gcp.yaml index 7a7acd29e..3306385b3 100644 --- a/nais/nais-dev-gcp.yaml +++ b/nais/nais-dev-gcp.yaml @@ -85,6 +85,7 @@ spec: - host: veilarbdialog.dev-fss-pub.nais.io - host: dab-unleash-api.nav.cloud.nais.io - host: orkivar.intern.dev.nav.no + - host: axsys.dev-fss-pub.nais.io rules: - application: poao-tilgang namespace: poao @@ -130,3 +131,5 @@ spec: value: "api://dev-fss.pdl.pdl-api/.default" - name: FSS_PROXY_ENABLED value: "false" + - name: AXSYS_URL + value: "https://axsys.dev-fss-pub.nais.io" diff --git a/nais/nais-prod-gcp.yaml b/nais/nais-prod-gcp.yaml index b0beafc46..31d1b2cd0 100644 --- a/nais/nais-prod-gcp.yaml +++ b/nais/nais-prod-gcp.yaml @@ -81,6 +81,7 @@ spec: - host: veilarbdialog.prod-fss-pub.nais.io - host: dab-unleash-api.nav.cloud.nais.io - host: orkivar.intern.nav.no + - host: axsys.prod-fss-pub.nais.io rules: - application: poao-tilgang namespace: poao @@ -128,3 +129,5 @@ spec: value: "api://prod-fss.pdl.pdl-api/.default" - name: FSS_PROXY_ENABLED value: "false" + - name: AXSYS_URL + value: "https://axsys.prod-fss-pub.nais.io" diff --git a/src/main/kotlin/no/nav/veilarbaktivitet/unleash/AxsysClientConfig.kt b/src/main/kotlin/no/nav/veilarbaktivitet/unleash/AxsysClientConfig.kt index 53448129d..c29039d92 100644 --- a/src/main/kotlin/no/nav/veilarbaktivitet/unleash/AxsysClientConfig.kt +++ b/src/main/kotlin/no/nav/veilarbaktivitet/unleash/AxsysClientConfig.kt @@ -6,6 +6,7 @@ import no.nav.common.client.axsys.CachedAxsysClient import no.nav.common.token_client.client.AzureAdMachineToMachineTokenClient import no.nav.common.utils.EnvironmentUtils import no.nav.veilarbaktivitet.config.EnvironmentProperties +import org.springframework.beans.factory.annotation.Value import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import org.springframework.context.annotation.Profile @@ -18,7 +19,8 @@ open class AxsysClientConfig { if (EnvironmentUtils.isProduction().orElse(false)) "prod" else "dev" ) - private val axsysUrl = "http://axsys.org.svc.nais.local" + @Value("\${axsys.url}") + private lateinit var axsysUrl: String; @Bean open fun axsysClient( diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 43297b856..6bdbdba12 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -46,6 +46,7 @@ app.datasource.password=${DB_PASSWORD} orkivar.url=${ORKIVAR_URL} veilarbdialog.url=${VEILARBDIALOG_URL} +axsys.url=${AXSYS_URL} veilarbaktivitet-fss.url=${VEILARBAKTIVITET_FSS_URL} pdl.url=${PDL_URL} pdl.scope=${PDL_SCOPE}