Skip to content

Commit

Permalink
IS-2765: Bruke felles Aiven-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
geir-waagboe committed Nov 11, 2024
1 parent 17d9c2a commit 4786fd0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
4 changes: 0 additions & 4 deletions .nais/naiserator-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,9 @@ spec:
access: readwrite
envFrom:
- secret: finnfastlege-session-key
- secret: finnfastlege-redis-password
env:
- name: NODE_ENV
value: production
- name: REDIS_HOST
value: finnfastlege-redis
- name: AUTH_REDIRECT_URI
value: "https://finnfastlege.intern.dev.nav.no/oauth2/callback"
- name: FASTLEGEREST_AAD_APP_CLIENT_ID
Expand Down Expand Up @@ -66,7 +63,6 @@ spec:
- application: fastlegerest
- application: istilgangskontroll
- application: syfoperson
- application: finnfastlege-redis
- application: modiacontextholder
namespace: personoversikt
azure:
Expand Down
4 changes: 0 additions & 4 deletions .nais/naiserator-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,9 @@ spec:
timeout: 5
envFrom:
- secret: finnfastlege-session-key
- secret: finnfastlege-redis-password
env:
- name: NODE_ENV
value: production
- name: REDIS_HOST
value: finnfastlege-redis
- name: AUTH_REDIRECT_URI
value: "https://finnfastlege.intern.nav.no/oauth2/callback"
- name: FASTLEGEREST_AAD_APP_CLIENT_ID
Expand Down Expand Up @@ -63,7 +60,6 @@ spec:
- application: fastlegerest
- application: istilgangskontroll
- application: syfoperson
- application: finnfastlege-redis
- application: modiacontextholder
namespace: personoversikt
azure:
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,4 @@ $ npm install --legacy-peer-deps # installerer avhengigheter

## Redis Cache

Brukes for å cache bruker-sessions. Nais-oppsettet ligger i `.nais/redis.yaml`.
Redis pod deployes automatisk ved endringer i workflow eller config i master,
men kan også deployes manuelt til NAIS ved å kjøre følgdende kommando: `kubectl apply -f .nais/redis.yaml`.
Bruker teamsykefravr sin felles Redis-cache på Aiven for å cache bruker-sessions.

0 comments on commit 4786fd0

Please sign in to comment.