This project automates the generation of a Caddyfile and a Mermaid diagram for visualizing the reverse proxy configuration.
- Open
reverse-proxy-config/domains.json. - Add a new entry under
domains:
{
"domains": {
"newdomain.example.com": {
"protocol": "https",
"host": "192.168.1.100",
"port": 443,
"wildcard": true
}
}
}- Save the file.
The configuration files are automatically generated and updated using a GitHub Actions workflow on every push to the main branch.
Below is the Mermaid diagram visualizing the reverse proxy configuration:
graph LR
%% Style definitions
classDef internet fill:#f9f,stroke:#333,stroke-width:2px;
classDef proxy fill:#bbf,stroke:#333,stroke-width:2px;
classDef backend fill:#bfb,stroke:#333,stroke-width:2px;
classDef secure fill:#9f9,stroke:#333,stroke-width:2px;
classDef unsecure fill:#ff9,stroke:#333,stroke-width:2px;
%% Nodes
I[Internet]
C[Caddy Server]
%% Apply styles
class I internet
class C proxy
%% Base connections
I -->|HTTP & HTTPS| C
%% Backend groups
subgraph Secured[Secured Zone]
style Secured fill:#e6ffe6,stroke:#333,stroke-width:2px
S0[192.168.1.70]
class S0 secure
S1[192.168.1.172]
class S1 secure
end
subgraph Unsecured[Unsecured Zone]
style Unsecured fill:#fff6e6,stroke:#333,stroke-width:2px
end
C -->|HTTPS:8006<br>dacite.ozeliurs.com| S0
C -->|HTTPS:8006<br>enee.mpve.ozeliurs.com| S1
This project is licensed under the MIT License.