Coder Social home page Coder Social logo

x-ui-acme's Introduction

介绍

该项目依托于dockerdocker-composex-uiacme.sh,能够快速搭建出跳跃节点。

使用docker-compose示例

docker-compose配置文件说明

version: '3'
services:
    acme.sh:
        image: neilpang/acme.sh
        restart: always
        volumes:
            - "$PWD/out:/acme.sh:z"
        environment:
            - CF_Key="xxxxxxxxxxxxxxxxxxxx"
            - CF_Email="[email protected]"
        command: daemon
    x-ui:
        image: srcrs/x-ui
        restart: always
        network_mode: "host"
        volumes:
            - "$PWD/out:/root/out"
        command:
            - /bin/bash
            - -c
            - |
                x-ui start
                sleep infinity

CF_Key位于api-tokens页,Global API Key。

CF_Email是cloudflare登陆的邮箱。

out文件夹用于存储acme生成的证书。

生成域名证书

#注册邮箱
docker-compose run acme.sh --register-account -m [email protected] --debug
#以下二选一
#泛域名证书
docker-compose run acme.sh --issue --dns dns_cf -d mytest.com -d *.mytest.com --debug
#单独域名证书
docker-compose run acme.sh --issue --dns dns_cf -d proxy.mytest.com --debug

使用docker示例

运行x-ui

docker run -itd --name x-ui --privileged --restart always -v $PWD/out:/root/out --network host srcrs/x-ui bash -c "x-ui start && sleep infinity"

运行acme.sh

docker run -itd --name acme.sh --privileged --restart always -v $PWD/out:/root/out neilpang/acme.sh daemon

生成域名证书

#注册邮箱
docker exec acme.sh --register-account -m [email protected] --debug
#以下二选一
#泛域名证书
docker exec acme.sh --issue --dns dns_cf -d mytest.com -d *.mytest.com --debug
#单独域名证书
docker exec acme.sh --issue --dns dns_cf -d proxy.mytest.com --debug

登陆x-ui面板

默认使用端口为54321,用户名和密码都为admin。

登陆地址: ip:54321

添加tls节点证书路径

添加节点为tls或者tls+cdn模式时,需要在x-ui面板填写对应的证书路径,使用时mytest.com换成对应的代理域名即可。

公钥文件路径 /root/out/mytest.com/mytest.com.cer

密钥文件路径 /root/out/mytest.com/mytest.com.key

使用docker只需要找到对应的镜像,取执行命令效果一样。

需要注意的是,域名要被cloudfale代理,参考文章CloudFlare免费CDN加速使用方法

致谢

x-ui-acme's People

Contributors

srcrs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

x-ui-acme's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.