Compare commits

..

5 Commits

Author SHA1 Message Date
Gitea Actions Bot
d84476df69 Auto-update README with current k8s applications
All checks were successful
Terraform / Terraform (pull_request) Successful in 19s
Generated by CI/CD workflow on 2026-02-11 18:55:32

This PR updates the README.md file with the current list of applications found in the k8s/ directory structure.
2026-02-11 18:55:32 +00:00
AB
8e26876b9c Added dockerfile for mtproxy
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 6s
Check with kubeconform / lint (push) Successful in 6s
Auto-update README / Generate README and Create MR (push) Successful in 6s
2026-02-11 20:55:07 +02:00
AB
be9eda2de7 Added dockerfile for mtproxy
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 6s
Check with kubeconform / lint (push) Successful in 6s
Auto-update README / Generate README and Create MR (push) Successful in 7s
2026-02-11 20:45:49 +02:00
AB
e10c27aa5a Fix mtproxy ports
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 8s
Check with kubeconform / lint (push) Successful in 7s
Auto-update README / Generate README and Create MR (push) Successful in 7s
2026-02-11 20:33:08 +02:00
AB
605c7b01f0 Fix mtproxy ports
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 8s
Check with kubeconform / lint (push) Successful in 7s
Auto-update README / Generate README and Create MR (push) Successful in 7s
2026-02-11 17:35:01 +02:00
3 changed files with 41 additions and 5 deletions

View 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

View File

@@ -21,19 +21,19 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: xray-node-address
- key: mtproxy
operator: Exists
containers:
- name: mtproxy
image: telegrammessenger/proxy:latest
image: ultradesu/mtproxy:v0.02
imagePullPolicy: Always
ports:
- name: proxy
containerPort: 443
containerPort: 30443
protocol: TCP
env:
- name: SECRET
value: "00baadf00d15abad1deaa51abaadcafe"
value: "4ef8819478eb9c8928ab741300235a8e"
volumeMounts:
- name: data
mountPath: /data

View File

@@ -10,4 +10,7 @@ spec:
ports:
- name: proxy
port: 30443
targetPort: 443
targetPort: 30443
protocol: TCP
nodePort: 30443