diff --git a/k8s/apps/mtproxy/daemonset.yaml b/k8s/apps/mtproxy/daemonset.yaml index 1ddff48..3e3f95a 100644 --- a/k8s/apps/mtproxy/daemonset.yaml +++ b/k8s/apps/mtproxy/daemonset.yaml @@ -78,14 +78,16 @@ spec: - /bin/sh - -c - >- + curl -s https://core.telegram.org/getProxySecret -o proxy-secret && \ + curl -s https://core.telegram.org/getProxyConfig -o proxy-multi.conf && \ mtproto-proxy -u nobody -p 8888 -H $(PORT) -M 1 -S $(SECRET) - --aes-pwd /etc/mtproxy/proxy-secret - /etc/mtproxy/proxy-multi.conf + --aes-pwd proxy-secret + proxy-multi.conf env: - name: SECRET valueFrom: