diff options
author | Santo Cariotti <santo@dcariotti.me> | 2025-01-17 16:32:26 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2025-01-17 16:32:51 +0100 |
commit | 24f2680f2f97fb8e3d3eff829d1a41416bdd6562 (patch) | |
tree | 4f64cd96e93037fa3bfcc4c19e4bf613915db143 | |
parent | d57741c8e744652c30912e89627f17f69bbf0c94 (diff) |
Move UNREALSPEECH_TOKEN to config
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | yaml/backend.yaml | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -22,7 +22,7 @@ Now, you can proceed to set up some environment variables: - `JWT_SECRET`: the base64 version of the secret used for JWT tokens. - `EXPO_ACCESS_TOKEN`: the base64 version of the [Expo](https://expo.dev) access token. -- `UNREALSPEECH_TOKEN`: the base64 version of the [Unrealspeech](https://unrealspeech.com/) access token. +- `UNREALSPEECH_TOKEN`: [Unrealspeech](https://unrealspeech.com/) access token. - `RUST_LOG`: level of Rust logging. - `VITE_API_URL`: url for the backend API. diff --git a/yaml/backend.yaml b/yaml/backend.yaml index 9967ddb..ba3ea05 100644 --- a/yaml/backend.yaml +++ b/yaml/backend.yaml @@ -7,6 +7,7 @@ data: DATABASE_URL: "postgres://postgres:password@postgres-service:5432/gis" ALLOWED_HOST: "0.0.0.0:8000" AUDIO_PATH: "./assets" + UNREALSPEECH_TOKEN: ${UNREALSPEECH_TOKEN} --- apiVersion: v1 kind: Secret @@ -16,7 +17,6 @@ type: Opaque data: JWT_SECRET: ${JWT_SECRET} EXPO_ACCESS_TOKEN: ${EXPO_ACCESS_TOKEN} - UNREALSPEECH_TOKEN: ${UNREALSPEECH_TOKEN} --- apiVersion: apps/v1 kind: Deployment @@ -75,8 +75,8 @@ spec: key: EXPO_ACCESS_TOKEN - name: UNREALSPEECH_TOKEN valueFrom: - secretKeyRef: - name: cas-backend-secret + configMapKeyRef: + name: cas-backend-config key: UNREALSPEECH_TOKEN - name: ALLOWED_HOST valueFrom: |