Compare commits
16 Commits
auto-updat
...
auto-updat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0e642e6f1 | ||
| 0498d09aa4 | |||
| fa8962c181 | |||
| c8f9eb09bf | |||
| bd1c56508c | |||
| 7cfeb6cba0 | |||
|
|
d022f99f17 | ||
| 8e26876b9c | |||
| be9eda2de7 | |||
| e10c27aa5a | |||
| 605c7b01f0 | |||
| b6169045fd | |||
| cbe76ad87e | |||
| ef934b3475 | |||
| 07620e8651 | |||
| 2485e1e951 |
@@ -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=30443
|
||||||
|
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
|
||||||
@@ -1,15 +1,16 @@
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: DaemonSet
|
||||||
metadata:
|
metadata:
|
||||||
name: mtproxy
|
name: mtproxy
|
||||||
labels:
|
labels:
|
||||||
app: mtproxy
|
app: mtproxy
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: mtproxy
|
app: mtproxy
|
||||||
|
updateStrategy:
|
||||||
|
type: RollingUpdate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
@@ -20,30 +21,43 @@ spec:
|
|||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
- matchExpressions:
|
- matchExpressions:
|
||||||
- key: xray-node-address
|
- key: mtproxy
|
||||||
operator: Exists
|
operator: Exists
|
||||||
|
hostNetwork: true
|
||||||
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
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
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- >-
|
||||||
|
mtproto-proxy
|
||||||
|
-u nobody
|
||||||
|
-p 8888
|
||||||
|
-H 30443
|
||||||
|
-M 1
|
||||||
|
-S $(SECRET)
|
||||||
|
--aes-pwd /etc/mtproxy/proxy-secret
|
||||||
|
/etc/mtproxy/proxy-multi.conf
|
||||||
env:
|
env:
|
||||||
- name: SECRET
|
- name: SECRET
|
||||||
value: "00baadf00d15abad1deaa51sbaadcafe"
|
value: "4ef8819478eb9c8928ab741300235a8e"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
resources:
|
#resources:
|
||||||
requests:
|
# requests:
|
||||||
memory: "128Mi"
|
# memory: "128Mi"
|
||||||
cpu: "100m"
|
# cpu: "100m"
|
||||||
limits:
|
# limits:
|
||||||
memory: "256Mi"
|
# memory: "256Mi"
|
||||||
cpu: "500m"
|
# cpu: "500m"
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
emptyDir: {}
|
||||||
claimName: mtproxy-data
|
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ kind: Kustomization
|
|||||||
resources:
|
resources:
|
||||||
- ./app.yaml
|
- ./app.yaml
|
||||||
- ./deployment.yaml
|
- ./deployment.yaml
|
||||||
- ./service.yaml
|
# - ./storage.yaml
|
||||||
- ./storage.yaml
|
# - ./service.yaml
|
||||||
|
|||||||
@@ -10,5 +10,7 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: proxy
|
- name: proxy
|
||||||
port: 30443
|
port: 30443
|
||||||
targetPort: 443
|
targetPort: 30443
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
nodePort: 30443
|
||||||
|
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ data:
|
|||||||
var d = "$";
|
var d = "$";
|
||||||
var q = "'";
|
var q = "'";
|
||||||
return d + 'f="' + d + 'env:TEMP\\mc-install.ps1"; iwr -useb https://minecraft.hexor.cy/clients/win-install.ps1 -OutFile '
|
return d + 'f="' + d + 'env:TEMP\\mc-install.ps1"; iwr -useb https://minecraft.hexor.cy/clients/win-install.ps1 -OutFile '
|
||||||
+ d + 'f; & ' + d + 'f -Username ' + q + username + q + '; Remove-Item ' + d + 'f';
|
+ d + 'f; powershell -ExecutionPolicy Bypass -File ' + d + 'f -Username ' + q + username + q + '; Remove-Item ' + d + 'f';
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById("showInstallBtn").addEventListener("click", function(e) {
|
document.getElementById("showInstallBtn").addEventListener("click", function(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user