Compare commits
3 Commits
auto-updat
...
auto-updat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d84476df69 | ||
| 8e26876b9c | |||
| be9eda2de7 |
@@ -45,6 +45,7 @@ ArgoCD homelab project
|
|||||||
| **jellyfin** | [](https://ag.hexor.cy/applications/argocd/jellyfin) |
|
| **jellyfin** | [](https://ag.hexor.cy/applications/argocd/jellyfin) |
|
||||||
| **k8s-secrets** | [](https://ag.hexor.cy/applications/argocd/k8s-secrets) |
|
| **k8s-secrets** | [](https://ag.hexor.cy/applications/argocd/k8s-secrets) |
|
||||||
| **khm** | [](https://ag.hexor.cy/applications/argocd/khm) |
|
| **khm** | [](https://ag.hexor.cy/applications/argocd/khm) |
|
||||||
|
| **mtproxy** | [](https://ag.hexor.cy/applications/argocd/mtproxy) |
|
||||||
| **n8n** | [](https://ag.hexor.cy/applications/argocd/n8n) |
|
| **n8n** | [](https://ag.hexor.cy/applications/argocd/n8n) |
|
||||||
| **ollama** | [](https://ag.hexor.cy/applications/argocd/ollama) |
|
| **ollama** | [](https://ag.hexor.cy/applications/argocd/ollama) |
|
||||||
| **paperless** | [](https://ag.hexor.cy/applications/argocd/paperless) |
|
| **paperless** | [](https://ag.hexor.cy/applications/argocd/paperless) |
|
||||||
|
|||||||
33
k8s/apps/mtproxy/Dockerfile
Normal file
33
k8s/apps/mtproxy/Dockerfile
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
FROM debian:bookworm-slim AS builder
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
git curl build-essential libssl-dev zlib1g-dev \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN git clone https://github.com/TelegramMessenger/MTProxy.git /src
|
||||||
|
WORKDIR /src
|
||||||
|
RUN make -j$(nproc)
|
||||||
|
|
||||||
|
FROM debian:bookworm-slim
|
||||||
|
|
||||||
|
ENV PROXY_PORT=443
|
||||||
|
ENV STATS_PORT=8888
|
||||||
|
ENV WORKERS=1
|
||||||
|
ENV RUN_USER=nobody
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
curl libssl3 zlib1g xxd \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
COPY --from=builder /src/objs/bin/mtproto-proxy /usr/local/bin/mtproto-proxy
|
||||||
|
|
||||||
|
RUN curl -s https://core.telegram.org/getProxySecret -o /etc/mtproxy/proxy-secret --create-dirs && \
|
||||||
|
curl -s https://core.telegram.org/getProxyConfig -o /etc/mtproxy/proxy-multi.conf
|
||||||
|
|
||||||
|
ENTRYPOINT mtproto-proxy \
|
||||||
|
-u ${RUN_USER} \
|
||||||
|
-p ${STATS_PORT} \
|
||||||
|
-H ${PROXY_PORT} \
|
||||||
|
-M ${WORKERS} \
|
||||||
|
--aes-pwd /etc/mtproxy/proxy-secret \
|
||||||
|
/etc/mtproxy/proxy-multi.conf
|
||||||
@@ -25,11 +25,11 @@ spec:
|
|||||||
operator: Exists
|
operator: Exists
|
||||||
containers:
|
containers:
|
||||||
- name: mtproxy
|
- name: mtproxy
|
||||||
image: telegrammessenger/proxy:latest
|
image: ultradesu/mtproxy:v0.02
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- name: proxy
|
- name: proxy
|
||||||
containerPort: 443
|
containerPort: 30443
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
env:
|
env:
|
||||||
- name: SECRET
|
- name: SECRET
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: proxy
|
- name: proxy
|
||||||
port: 30443
|
port: 30443
|
||||||
targetPort: 443
|
targetPort: 30443
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
nodePort: 30443
|
nodePort: 30443
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user