17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM alpine:latest
|
||||
ENV CONFIG='https://raw.githubusercontent.com/ircfspace/warpsub/main/export/warp#WARP%20(IRCF)'
|
||||
ENV VERSION=v0.17.8
|
||||
WORKDIR /opt
|
||||
RUN apk add wget tar gzip libc6-compat
|
||||
RUN export ARCH=$(apk --print-arch) && if [ "$ARCH" = "i386" ]; then ARCH="386"; elif [ "$ARCH" = "x86_64" ]; then ARCH="amd64"; fi && wget https://github.com/hiddify/hiddify-next-core/releases/download/${VERSION}/hiddify-cli-linux-$ARCH.tar.gz -O hiddify-cli.tar.gz
|
||||
RUN tar -xzf hiddify-cli.tar.gz && rm hiddify-cli.tar.gz
|
||||
COPY hiddify.sh .
|
||||
COPY hiddify.json .
|
||||
RUN chmod +x hiddify.sh
|
||||
|
||||
EXPOSE 2334
|
||||
EXPOSE 6756
|
||||
EXPOSE 6450
|
||||
|
||||
|
||||
ENTRYPOINT [ "/opt/hiddify.sh" ]
|
||||
41
hiddify.json
Normal file
41
hiddify.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"service-mode": "proxy",
|
||||
"log-level": "info",
|
||||
"resolve-destination": true,
|
||||
"ipv6-mode": "prefer_ipv4",
|
||||
"remote-dns-address": "tcp://1.1.1.1",
|
||||
"remote-dns-domain-strategy": "",
|
||||
"direct-dns-address": "1.1.1.1",
|
||||
"direct-dns-domain-strategy": "",
|
||||
"mixed-port": 2334,
|
||||
"local-dns-port": 6450,
|
||||
"tun-implementation": "mixed",
|
||||
"mtu": 9000,
|
||||
"strict-route": false,
|
||||
"connection-test-url": "https://www.gstatic.com/generate_204",
|
||||
"url-test-interval": 600,
|
||||
"enable-clash-api": true,
|
||||
"clash-api-port": 6756,
|
||||
"bypass-lan": false,
|
||||
"allow-connection-from-lan": true,
|
||||
"enable-fake-dns": false,
|
||||
"enable-dns-routing": true,
|
||||
"independent-dns-cache": true,
|
||||
"enable-tls-fragment": false,
|
||||
"tls-fragment-size": "20-70",
|
||||
"tls-fragment-sleep": "10-30",
|
||||
"enable-tls-mixed-sni-case": false,
|
||||
"enable-tls-padding": false,
|
||||
"tls-padding-size": "15-30",
|
||||
"enable-mux": false,
|
||||
"mux-padding": false,
|
||||
"mux-max-streams": 4,
|
||||
"mux-protocol": "h2mux",
|
||||
"enable-warp": false,
|
||||
"warp-detour-mode": "outbound",
|
||||
"warp-license-key": "",
|
||||
"warp-clean-ip": "auto",
|
||||
"warp-port": 0,
|
||||
"warp-noise": "5-10",
|
||||
"warp-noise-delay": "20-200"
|
||||
}
|
||||
2
hiddify.sh
Normal file
2
hiddify.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
/opt/HiddifyCli run --config $CONFIG -h /opt/hiddify.json
|
||||
Reference in New Issue
Block a user