From 137c520f02c15bae932e06611268e6f5135ed42c Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 11 Dec 2024 20:14:34 +0100 Subject: Add audio env var --- README.md | 2 ++ yaml/configs/cas.yaml | 1 + yaml/deployments/cas.yaml | 5 +++++ 3 files changed, 8 insertions(+) diff --git a/README.md b/README.md index aa5586f..e166503 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ you Minikube in this case) you have to set up the environment: - `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. - `RUST_LOG`: level of Rust logging +- `AUDIO_PATH`: path for the audio folder +- `ALLOWED_HOST`: host for the app After that just run diff --git a/yaml/configs/cas.yaml b/yaml/configs/cas.yaml index a7aa9d8..34d5d58 100644 --- a/yaml/configs/cas.yaml +++ b/yaml/configs/cas.yaml @@ -6,3 +6,4 @@ data: RUST_LOG: ${RUST_LOG} DATABASE_URL: "postgres://postgres:password@postgres-service:5432/gis" ALLOWED_HOST: "0.0.0.0:8000" + AUDIO_PATH: "./assets" diff --git a/yaml/deployments/cas.yaml b/yaml/deployments/cas.yaml index fc0289a..f7814ad 100644 --- a/yaml/deployments/cas.yaml +++ b/yaml/deployments/cas.yaml @@ -47,6 +47,11 @@ spec: configMapKeyRef: name: cas-config key: ALLOWED_HOST + - name: AUDIO_PATH + valueFrom: + configMapKeyRef: + name: cas-config + key: AUDIO_PATH ports: - containerPort: 8000 restartPolicy: Always -- cgit v1.2.3-18-g5258