Giter Site home page Giter Site logo

trojan-caddy-docker-compose's Introduction

trojan-caddy-docker-compose

中文文档

Trojan server and Caddy integration with Docker compose。

Trojan server listens port 443. For https requests from normal sources, Trojan server will forward them to Caddy server for processing and return to the Web page while requests from Trojan client will be proxied by Trojan server which like V2ray+Websocket+TLS avoid GFW detection by disguising requests.

How to deploy:https://muguang.me/it/2757.html

Usage

Git clone this repo then change directory to this project.

  1. Modify ./caddy/Caddyfile:

    www.yourdomain.com:80 {
        root /usr/src/trojan
        log /usr/src/caddy.log
        index index.html
    }
    
    www.yourdomain.com:443 {
        root /usr/src/trojan
        log /usr/src/caddy.log
        index index.html
    }
    

    Replace www.yourdomain.com with your own domain name.

  2. Modify ./trojan/config/config.json:

    Change your_password to your own password on config:json:8 , this is your trojan password just safekeeping.

    Change your_domain_name to your own domain name on config:json:12-13, this is your domain ssl certification path, Caddy server generate certs automatically on the path /ssl/your_domain_name/your_domain_name.crt

  3. Run docker-compose up or docker-compose up -d with Daemon mode

  4. When each container is successfully built, it means that your Trojan and Caddy servers are working well.

Tips

If you encounter any problems during the deployment process, you can raise them in' issue' considering various unknown situations.

trojan-caddy-docker-compose's People

Contributors

faithpatrick avatar tomisacat avatar

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.