## Purpose: Setup Reverse Proxy for your Application ``` +----------------------------+ +---------------------+ | | | Any your computer | | Target Server | | | | | | +-------------+ | | +-----------------------+ | | | | | Setup Reverse Proxy | | | | | | This +-------------------------------->| Reverse Proxy Setting | | | | Automatical | | for your existing | | eg. www.domain.com | | | | System |<-+ | application | | | | | | | | | | +------++---------------+ | | +-------------+ | | | | | | | | | v | | .env | | +-------------+ | | | | | | | +---------------------+ | | Existing | | | | Application | | | | | | | +-------------+ | | | +----------------------------+ ``` - .env -- **parameters for your Application, Reverse Proxy and Target information** - All Application(s) must connect to docker network name **traefik-public** for container connection by expose port(s). ## Architecture ``` +-------------------+ +-------------------+ | Local Host | | Proxy Server | | | | | | +-------------+ | FRP Tunnel | +-------------+ | | | Application | | <-----------------> | | Traefik | |<--- Domains | | Service #1 | | Public IPs | | (Router) | | HTTPS/TLS | | | | Port: 16999 | | | | | +-------------+ | | +-------------+ | | | | | | +-------------+ | | +-------------+ | | | FRPC | | | | FRPS | | | | (Client) | | | | (Server) | | | | | | | | | | | +-------------+ | | +-------------+ | | | | | | | | +-------------+ | | | | | Application | | | | | | Service #2 | | | | | | | | +-------------------+ | +-------------+ | +-------------------+ ``` ## Run this System - `./auto-sys-deploy.sh setup-rvs-prxy` - will apply the new `.env` setting to into traefik - null traefik before, create new and apply those new setting - OR already existing traefik, keep all old setting, then apply new setting