infra/k8s/matrix/bridge.yaml
2024-06-04 09:06:08 -07:00

14 lines
428 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: bridge-init
namespace: matrix
data:
initialize-bridge.sh: |
#!/bin/bash
set -euo pipefail
cp /config/config.yaml /data/config.yaml
sed -i "s#AS_TOKEN#${AS_TOKEN}#g" /data/config.yaml
sed -i "s#HS_TOKEN#${HS_TOKEN}#g" /data/config.yaml
sed -i "s#TG_API_ID#${TG_API_ID}#g" /data/config.yaml
sed -i "s#TG_API_HASH#${TG_API_HASH}#g" /data/config.yaml