Spaces:
Runtime error
Runtime error
Commit
·
e2997bf
1
Parent(s):
861f079
Upload 3 files
Browse files- .gitattributes +1 -0
- Dockerfile +42 -0
- cron +3 -0
- run.sh +13 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
cron filter=lfs diff=lfs merge=lfs -text
|
Dockerfile
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM rafaelcalleja/proxy-flare:0.0.2
|
2 |
+
|
3 |
+
COPY gost /bin/gost
|
4 |
+
COPY cron /bin/cron
|
5 |
+
COPY run.sh /run.sh
|
6 |
+
|
7 |
+
RUN chmod +x /bin/gost
|
8 |
+
RUN chmod +x /bin/cron
|
9 |
+
RUN chmod +x /run.sh
|
10 |
+
|
11 |
+
USER root
|
12 |
+
|
13 |
+
RUN apt-get update && apt-get install -yq \
|
14 |
+
curl \
|
15 |
+
&& rm -rf /var/lib/apt/lists/*
|
16 |
+
|
17 |
+
RUN useradd -m -u 1001 user
|
18 |
+
|
19 |
+
RUN mkdir -p /home/user/.mitmproxy
|
20 |
+
|
21 |
+
RUN chown -R 1000.1000 /app /home/user/.mitmproxy /home/user/
|
22 |
+
|
23 |
+
RUN chmod 777 -R /home/user/.mitmproxy
|
24 |
+
|
25 |
+
ENV MITMPROXY_PATH "/home/user/.mitmproxy"
|
26 |
+
ENV HOME "/home/user/"
|
27 |
+
ENV USER "user"
|
28 |
+
ENV PATH /home/user/.local/bin:$PATH
|
29 |
+
|
30 |
+
ENV PF_PORT "8080"
|
31 |
+
ENV PF_DEBUG "false"
|
32 |
+
ENV PF_INSECURE "false"
|
33 |
+
ENV PF_STICKY_COOKIE "false"
|
34 |
+
ENV PF_USER_AGENT "auto"
|
35 |
+
ENV PF_FLARESOLVERR ""
|
36 |
+
ENV PF_PROXY ""
|
37 |
+
|
38 |
+
ENV TUNNEL_CONFIG ""
|
39 |
+
|
40 |
+
ENTRYPOINT []
|
41 |
+
|
42 |
+
CMD ["/run.sh"]
|
cron
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:21816fb5906f3e48103a59db5001e3a20cd50c1a4d3646026dd546d010550d0f
|
3 |
+
size 2468105
|
run.sh
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
if [[ ! -z "${TUNNEL_CONFIG}" ]];
|
4 |
+
then
|
5 |
+
http_proxy="" https_proxy="" curl -SsL "${TUNNEL_CONFIG}" -o /tmp/gost.yaml
|
6 |
+
cron '@every 3600s' -- timeout 3600 gost -C /tmp/gost.yaml &
|
7 |
+
fi
|
8 |
+
|
9 |
+
cron '@every 3600s' -- timeout 3600 gost -L rtcp://:0/127.0.0.1:8080 -F tunnel+wss://tunnel.gost.plus:443?tunnel.id=${TUNNEL_ID} &
|
10 |
+
|
11 |
+
cron '@every 3600s' -- timeout 3600 gost -L mws://${TUNNEL_USER}:${TUNNEL_PASS}@:7860?path=/ws -L rtcp://:0/127.0.0.1:8081 -F tunnel+wss://tunnel.gost.plus:443?tunnel.id=${TUNNEL_ID_2} &
|
12 |
+
|
13 |
+
python -m ProxyFlare.main
|