Reverse Proxy Setup
Go to file
2025-10-29 08:28:38 +00:00
Design_Doc 1) can work for my.domain.com/sub-path, 2) adding new setting, does not OVER-WRITE existing 2025-10-29 08:28:38 +00:00
.env.development worked connecting from local computer to fixed ssd node 2025-10-07 12:16:21 +00:00
.env.sample 1) can work for my.domain.com/sub-path, 2) adding new setting, does not OVER-WRITE existing 2025-10-29 08:28:38 +00:00
auto-sys-deploy.sh 1) can work for my.domain.com/sub-path, 2) adding new setting, does not OVER-WRITE existing 2025-10-29 08:28:38 +00:00
README.md 1) can work for my.domain.com/sub-path, 2) adding new setting, does not OVER-WRITE existing 2025-10-29 08:28:38 +00:00

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