GithubHelp home page GithubHelp logo

caddyproxy's Introduction

How to use

To use this script, clone this repository with:

git clone https://github.com/StrajnarFilip/CaddyProxy.git

Once cloned, change directory:

cd CaddyProxy

In this directory, docker-compose.yaml file is located. To actually configure the reverse proxy, change directory once again:

cd conf

Inside CaddyProxy/conf directory, there is a default caddy.json, which doesn't do anything useful yet. Change configuration with change.py script. You can add as many mappings from domain to address as you'd like. Provided example:

python change.py add "your.domain.com" "127.0.0.1:6000"

When you finish adding domain to address mappings, go back to parent directory, where docker-compose.yaml file is located.

cd ..

And run it with:

docker-compose up -d

Note:

You need docker and docker compose to run this.

Reset file (change back to default json configuration):

python change.py reset

Add reverse proxy with HTTPS:

python change.py add "domain.com" "127.0.0.1:9000"

What is this intended for

This script is intended to ease deployment of a single or multiple HTTPS (TLS) enabled websites with different domain names, on a single device (VPS).

caddyproxy's People

Contributors

strajnarfilip avatar

Stargazers

 avatar Amadej Krepek avatar

Watchers

James Cloos avatar  avatar

Forkers

amadejkrepek

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.