55 lines
3.5 KiB
Markdown
55 lines
3.5 KiB
Markdown
## 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`
|