Skip to content

Commit

Permalink
use syfohelsenettproxy in gcp
Browse files Browse the repository at this point in the history
  • Loading branch information
MikAoJk committed Oct 3, 2023
1 parent c9e61f6 commit 2e52d3a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 2 additions & 4 deletions naiserator-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ spec:
- application: flex-syketilfelle
namespace: flex
cluster: dev-gcp
- application: syfohelsenettproxy
external:
- host: syfohelsenettproxy.dev-fss-pub.nais.io
- host: pdl-api.dev-fss-pub.nais.io
- host: smgcp-proxy.dev-fss-pub.nais.io
kafka:
Expand All @@ -62,9 +62,7 @@ spec:
enabled: true
env:
- name: HELSENETT_SCOPE
value: api://dev-fss.teamsykmelding.syfohelsenettproxy/.default
- name: HELSENETT_ENDPOINT_URL
value: https://syfohelsenettproxy.dev-fss-pub.nais.io
value: api://dev-gcp.teamsykmelding.syfohelsenettproxy/.default
- name: SMREGISTER_AUDIENCE
value: api://dev-gcp.teamsykmelding.syfosmregister/.default
- name: PDL_GRAPHQL_PATH
Expand Down
6 changes: 2 additions & 4 deletions naiserator-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ spec:
- application: flex-syketilfelle
namespace: flex
cluster: prod-gcp
- application: syfohelsenettproxy
external:
- host: syfohelsenettproxy.prod-fss-pub.nais.io
- host: pdl-api.prod-fss-pub.nais.io
- host: smgcp-proxy.prod-fss-pub.nais.io
kafka:
Expand All @@ -61,9 +61,7 @@ spec:
enabled: true
env:
- name: HELSENETT_SCOPE
value: api://prod-fss.teamsykmelding.syfohelsenettproxy/.default
- name: HELSENETT_ENDPOINT_URL
value: https://syfohelsenettproxy.prod-fss-pub.nais.io
value: api://prod-gcp.teamsykmelding.syfohelsenettproxy/.default
- name: SMREGISTER_AUDIENCE
value: api://prod-gcp.teamsykmelding.syfosmregister/.default
- name: PDL_GRAPHQL_PATH
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/no/nav/syfo/EnvironmentVariables.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ data class EnvironmentVariables(
val syketilfelleScope: String = getEnvVar("SYKETILLFELLE_SCOPE"),
val applicationPort: Int = getEnvVar("APPLICATION_PORT", "8080").toInt(),
val applicationThreads: Int = getEnvVar("APPLICATION_THREADS", "4").toInt(),
val norskHelsenettEndpointURL: String = getEnvVar("HELSENETT_ENDPOINT_URL"),
val norskHelsenettEndpointURL: String = "http://syfohelsenettproxy",
val aadAccessTokenV2Url: String = getEnvVar("AZURE_OPENID_CONFIG_TOKEN_ENDPOINT"),
val clientIdV2: String = getEnvVar("AZURE_APP_CLIENT_ID"),
val clientSecretV2: String = getEnvVar("AZURE_APP_CLIENT_SECRET"),
Expand Down

0 comments on commit 2e52d3a

Please sign in to comment.