# anarchist-network/paas-vpn architecture

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

- Interactive diagram: https://gitdiagram.com/anarchist-network/paas-vpn
- Repository: https://github.com/anarchist-network/paas-vpn

## Overview

This repository packages a Tailscale VPN service for deployment on PaaS hosts. The documented workflow is to configure a Tailscale auth key, deploy the Docker-based service, approve its machine as an exit node, then monitor its URL to keep it alive. The sampled Flask app exposes an “Online.” response at `/`. Dockerfile and start.sh are present, but their contents were not sampled, so their internal startup relationship is not shown.

Main entry points: [`uptime.py`](https://github.com/anarchist-network/paas-vpn/blob/main/uptime.py) (Flask status route)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_operator(("Operator"))
node_paas["PaaS host"]
node_dockerfile["Container config"]
node_startup["Startup script<br/>[start.sh]"]
node_health["Flask status route<br/>[uptime.py]"]
node_tailscale["Tailscale control plane"]
node_monitor["UptimeRobot"]

node_operator -->|"deploys service"| node_paas
node_operator -->|"creates auth key"| node_tailscale
node_paas -->|"joins network"| node_tailscale
node_operator -->|"approves exit node"| node_tailscale
node_monitor -->|"checks URL"| node_health

click node_dockerfile "https://github.com/anarchist-network/paas-vpn/blob/main/Dockerfile"
click node_startup "https://github.com/anarchist-network/paas-vpn/blob/main/start.sh"
click node_health "https://github.com/anarchist-network/paas-vpn/blob/main/uptime.py"

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_operator,node_paas,node_tailscale,node_monitor toneIndigo
class node_dockerfile,node_startup toneTeal
class node_health toneMint
```

## Components

### Other components

- **Operator**
- **PaaS host**
- [Container config](https://github.com/anarchist-network/paas-vpn/blob/main/Dockerfile): `Dockerfile`
- [Startup script](https://github.com/anarchist-network/paas-vpn/blob/main/start.sh): `start.sh`
- [Flask status route](https://github.com/anarchist-network/paas-vpn/blob/main/uptime.py): `uptime.py`
- **Tailscale control plane**
- **UptimeRobot**

## Connections

- Operator → PaaS host: deploys service (evidence: `README.md`)
- Operator → Tailscale control plane: creates auth key (evidence: `README.md`)
- PaaS host → Tailscale control plane: joins network (evidence: `README.md`)
- Operator → Tailscale control plane: approves exit node (evidence: `README.md`)
- UptimeRobot → Flask status route: checks URL (evidence: `README.md`)
