# tosuser/whman architecture

> Architecture diagram of the GitHub repository tosuser/whman, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tosuser/whman
- Repository: https://github.com/tosuser/whman

## Overview

webman is described as a container-based virtual host manager. The tree shows a management script and separate service-container configurations for DNS, web serving, PHP-FPM, and VPN access. No source excerpts or README workflow details are available, so the graph avoids asserting how these components interact or what provisioning stages the manager performs.

Main entry points: [`whmanager/scripts/whman.sh`](https://github.com/tosuser/whman/blob/main/whmanager/scripts/whman.sh) (Virtual host manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_management["Host management"]
  node_manager["Virtual host manager<br/>[whman.sh]"]
end

subgraph group_services["Service containers"]
  node_dns["DNS service"]
  node_web["Web server"]
  node_php["PHP-FPM"]
  node_vpn["VPN service"]
end

node_operator(("Operator"))

node_operator -->|"uses"| node_manager

click node_manager "https://github.com/tosuser/whman/blob/main/whmanager/scripts/whman.sh"
click node_dns "https://github.com/tosuser/whman/tree/main/containers/bind9"
click node_web "https://github.com/tosuser/whman/tree/main/containers/nginx-ondemand"
click node_php "https://github.com/tosuser/whman/tree/main/containers/php-fpm-ondemand"
click node_vpn "https://github.com/tosuser/whman/tree/main/containers/ocserv"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_manager toneBlue
class node_dns,node_web,node_php,node_vpn toneAmber
class node_operator toneIndigo
```

## Components

### Host management

- [Virtual host manager](https://github.com/tosuser/whman/blob/main/whmanager/scripts/whman.sh): `whmanager/scripts/whman.sh`

### Service containers

- [DNS service](https://github.com/tosuser/whman/tree/main/containers/bind9): `containers/bind9`
- [Web server](https://github.com/tosuser/whman/tree/main/containers/nginx-ondemand): `containers/nginx-ondemand`
- [PHP-FPM](https://github.com/tosuser/whman/tree/main/containers/php-fpm-ondemand): `containers/php-fpm-ondemand`
- [VPN service](https://github.com/tosuser/whman/tree/main/containers/ocserv): `containers/ocserv`

### Other components

- **Operator**

## Connections

- Operator → Virtual host manager: uses (evidence: `README.md`)
