summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-12-11 20:14:34 +0100
committerSanto Cariotti <santo@dcariotti.me>2024-12-11 20:14:34 +0100
commit137c520f02c15bae932e06611268e6f5135ed42c (patch)
tree88475fda13a15bfc8c21618335271b55bff29103
parent12919b86d99d577d8ecd768d932c606967e54eb8 (diff)
Add audio env var
-rw-r--r--README.md2
-rw-r--r--yaml/configs/cas.yaml1
-rw-r--r--yaml/deployments/cas.yaml5
3 files changed, 8 insertions, 0 deletions
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