Repository: hiifeng/V2ray-for-Doprax Branch: main Commit: 7f744c067558 Files: 9 Total size: 7.6 KB Directory structure: gitextract_51efm66e/ ├── .github/ │ └── FUNDING.yml ├── Dockerfile ├── README.md ├── compose.yml ├── config.json ├── entrypoint.sh ├── example.txt ├── nginx.conf └── supervisord.conf ================================================ FILE CONTENTS ================================================ ================================================ FILE: .github/FUNDING.yml ================================================ github: hiifeng ================================================ FILE: Dockerfile ================================================ FROM nginx:mainline-alpine-slim MAINTAINER ifeng EXPOSE 80 USER root RUN apk update && apk add --no-cache supervisor wget unzip curl # 定义 UUID 及 伪装路径,请自行修改.(注意:伪装路径以 / 符号开始,为避免不必要的麻烦,请不要使用特殊符号.) ENV UUID de04add9-5c68-8bab-950c-08cd5320df18 ENV VMESS_WSPATH /vmess ENV VLESS_WSPATH /vless COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY nginx.conf /etc/nginx/nginx.conf RUN mkdir /etc/v2ray /usr/local/v2ray COPY config.json /etc/v2ray/ COPY entrypoint.sh /usr/local/v2ray/ # 感谢 fscarmen 大佬提供 Dockerfile 层优化方案 RUN wget -q -O /tmp/v2ray-linux-64.zip https://github.com/v2fly/v2ray-core/releases/download/v4.45.0/v2ray-linux-64.zip && \ unzip -d /usr/local/v2ray /tmp/v2ray-linux-64.zip v2ray && \ wget -q -O /usr/local/v2ray/geosite.dat https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat && \ wget -q -O /usr/local/v2ray/geoip.dat https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat && \ chmod a+x /usr/local/v2ray/entrypoint.sh && \ apk del wget unzip && \ rm -rf /tmp/v2ray-linux-64.zip && \ rm -rf /var/cache/apk/* && \ rm -rf /tmp/* ENTRYPOINT [ "/usr/local/v2ray/entrypoint.sh" ] ================================================ FILE: README.md ================================================ # V2ray for Doprax Create By ifeng
Web Site: https://www.hicairo.com
Telegram: https://t.me/HiaiFeng
# 简介: 本项目用于在 Doprax.com 免费服务上部署 V2ray ,采用的方案为 Nginx + WebSocket + VMess/VLess + TLS。速度与 Replit 相比较慢,但是官方宣传不限流量,服务启动后永不停机。 # 注意事项:

  • 请勿滥用,账号封禁风险自负。
  • 部署完成如发现不能上网,请检查域名是否被墙,可使用 Cloudflare CDN 解决。
  • # 部署:

    1、登录自己的 GitHub 账号后 Fork 该项目。

    2、注册 Doprax.com 账号登录后 Import 该项目。

    详细使用方案请参考:https://www.hicairo.com/post/55.html

    # 使用方法:

    1、服务器端配置

    请使用 第三方工具 生成一个新的 UUID 。在 Doprax.com 登录后依次点击左侧菜单中的 Main ,窗口右侧的 Edit source code ,选择 Dockerfile 文件,编辑 UUID 及伪装地址信息保存后重启服务。

    # 用新生成的 UUID 替换 de04add9-5c68-8bab-950c-08cd5320df18
    ENV UUID de04add9-5c68-8bab-950c-08cd5320df18
    # VMESS_WSPATH / VLESS_WSPATH 两个常量分别定义了 Vmess/VLess 的伪装路径,
    # 请分别修改内容中的vmess或vless。注意:伪装路径以 / 符号开始,为避免不必要的麻烦,请不要使用特殊符号.
    ENV VMESS_WSPATH /vmess
    ENV VLESS_WSPATH /vless
    

    2、客户端配置

    节点客户端配置需要手动进行,下面以 V2rayN 为例。

    下图为 VMess 配置示意图,请修改标示内容,其他设置与图片中显示一致。

    下图为 VLess 配置示意图,请修改标示内容,其他设置与图片中显示一致。

    # 反馈与交流:

    在使用过程中,如果遇到问题,请使用Telegram与我联系。( https://t.me/HiaiFeng )

    大家好,Doprax 非常关注用户使用体验。Hemen 先生及他的团队,为 Doprax 社区创建了 Discord 服务,如果您在使用过程中,遇到 Doprax 平台的相关问题或对平台有一些建议,请使用如下链接与官方联系。 Hello everyone! Doprax pays great attention to user experience. Mr. Hemen and his team have created a Discord service for the Doprax community. If you encounter any problems or have any suggestions related to the Doprax platform during use, please contact the official using the link below. https://discord.gg/pFnGwTuXjk

    ================================================ FILE: compose.yml ================================================ # uffizzi.com 项目由Misaka大佬全网首发( https://github.com/Misaka-blog/xray-for-uffizzi ),感谢御坂分享 uffizzi.com 容器。 # uffizzi.com 项目速度时快时慢,不稳定,推荐配合 Cloudflare CDN 使用。 x-uffizzi: ingress: service: v2ray-for-uffizzi.com port: 80 services: v2ray-for-uffizzi.com: build: . restart: always ================================================ FILE: config.json ================================================ { "log": { "access": "/dev/null", "error": "/dev/null", "loglevel": "warning" }, "inbounds": [{ "port": 10000, "listen": "127.0.0.1", "protocol": "vmess", "settings": { "clients": [{ "id": "UUID", "alterId": 0 }] }, "streamSettings": { "network": "ws", "wsSettings": { "path": "VMESS_WSPATH" } } }, { "port": 20000, "listen": "127.0.0.1", "protocol": "vless", "settings": { "clients": [{ "id": "UUID" }], "decryption": "none" }, "streamSettings": { "network": "ws", "wsSettings": { "path": "VLESS_WSPATH" } } } ], "outbounds": [{ "protocol": "freedom", "settings": {} }], "dns": { "server": [ "8.8.8.8", "8.8.4.4", "localhost" ] } } ================================================ FILE: entrypoint.sh ================================================ #!/bin/sh # Create By ifeng # Web Site:https://www.hicairo.com # Telegram:https://t.me/HiaiFeng sed -i "s#UUID#$UUID#g;s#VMESS_WSPATH#$VMESS_WSPATH#g;s#VLESS_WSPATH#$VLESS_WSPATH#g" /etc/v2ray/config.json sed -i "s#VMESS_WSPATH#$VMESS_WSPATH#g;s#VLESS_WSPATH#$VLESS_WSPATH#g" /etc/nginx/nginx.conf # exec "$@" # 请删掉下一行最前面的 # 号,同时将这行代码中的域名替换成 Replit 为你项目分配的域名。 #while true ;do curl https://xx.xx.repl.co; sleep 300; done & /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf ================================================ FILE: example.txt ================================================ vless://de04add9-5c68-8bab-950c-08cd5320df18@localhost:443?encryption=none&security=tls&type=ws&path=%2Fvless#paas_vless vmess://ew0KICAidiI6ICIyIiwNCiAgInBzIjogInBhYXNfdm1lc3MiLA0KICAiYWRkIjogImxvY2FsaG9zdCIsDQogICJwb3J0IjogIjQ0MyIsDQogICJpZCI6ICJkZTA0YWRkOS01YzY4LThiYWItOTUwYy0wOGNkNTMyMGRmMTgiLA0KICAiYWlkIjogIjAiLA0KICAic2N5IjogImF1dG8iLA0KICAibmV0IjogIndzIiwNCiAgInR5cGUiOiAibm9uZSIsDQogICJob3N0IjogIiIsDQogICJwYXRoIjogIi92bWVzcyIsDQogICJ0bHMiOiAidGxzIiwNCiAgInNuaSI6ICIiLA0KICAiYWxwbiI6ICIiDQp9 ================================================ FILE: nginx.conf ================================================ user nginx; worker_processes auto; error_log /var/log/nginx/error.log notice; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; #gzip on; #include /etc/nginx/conf.d/*.conf; server { listen 80 default_server; listen [::]:80 default_server; server_name _; charset utf-8; root html; location / { root /usr/share/nginx/html; index index.html index.htm; } location VMESS_WSPATH { proxy_redirect off; proxy_pass http://127.0.0.1:10000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection upgrade; proxy_set_header Host $http_host; #proxy_set_header X-Real-IP $remote_addr; #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location VLESS_WSPATH { proxy_redirect off; proxy_pass http://127.0.0.1:20000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection upgrade; proxy_set_header Host $http_host; #proxy_set_header X-Real-IP $remote_addr; #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } } ================================================ FILE: supervisord.conf ================================================ # Create By ifeng # Web Site:https://www.hicairo.com # Telegram:https://t.me/HiaiFeng [supervisord] nodaemon=true logfile=/var/log/supervisord.log pidfile=/run/supervisord.pid [program:v2ray] command=/usr/local/v2ray/v2ray -config=/etc/v2ray/config.json stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 redirect_stderr=true autorestart=false startretries=0 [program:nginx] command=nginx -g 'daemon off;' stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 redirect_stderr=true autorestart=false startretries=0 # The below configure can be applied when Docker orchestrator like Docker Swarm or K8S is used. # By default, supervisor will attempt to restart a failed process. # Refer to http://supervisord.org/configuration.html for more info. #[eventlistener:processes] #command=stop-supervisor.sh #events=PROCESS_STATE_STOPPED, PROCESS_STATE_EXITED, PROCESS_STATE_FATAL