|
16 | 16 |
|
17 | 17 | Capture is a hardware monitoring agent that collects hardware information from the host machine and exposes it through a RESTful API. The agent is designed to be lightweight and easy to use. |
18 | 18 |
|
| 19 | +- [Features](#features) |
| 20 | +- [Quick Start (Docker)](#quick-start-docker) |
| 21 | +- [Quick Start (Docker Compose)](#quick-start-docker-compose) |
| 22 | +- [Configuration](#configuration) |
| 23 | +- [Installation Options](#installation-options) |
| 24 | + - [Docker (Recommended)](#docker-recommended) |
| 25 | +- [System Installation](#system-installation) |
| 26 | +- [Reverse Proxy and SSL](#reverse-proxy-and-ssl) |
| 27 | + - [Caddy](#caddy) |
| 28 | +- [API Documentation](#api-documentation) |
| 29 | +- [Contributing](#contributing) |
| 30 | +- [Star History](#star-history) |
| 31 | +- [License](#license) |
| 32 | + |
19 | 33 | ## Features |
20 | 34 |
|
21 | 35 | - CPU Monitoring |
@@ -127,6 +141,36 @@ Choose one of these methods: |
127 | 141 | just build # or: go build -o dist/capture ./cmd/capture/ |
128 | 142 | ``` |
129 | 143 |
|
| 144 | +## Reverse Proxy and SSL |
| 145 | + |
| 146 | +You can use a reverse proxy in front of the Capture service to handle HTTPS requests and SSL termination. |
| 147 | + |
| 148 | +### Caddy |
| 149 | + |
| 150 | +```lua |
| 151 | +├deployment/reverse-proxy-compose/ |
| 152 | +├── caddy/ |
| 153 | +│ └── Caddyfile |
| 154 | +└── caddy.compose.yml |
| 155 | +``` |
| 156 | + |
| 157 | +1. Go to the `deployment/reverse-proxy-compose` directory |
| 158 | + |
| 159 | + ```shell |
| 160 | + cd deployment/reverse-proxy-compose |
| 161 | + ``` |
| 162 | + |
| 163 | +2. Replace `replacewithyourdomain.com` with your actual domain in [deployment/reverse-proxy-compose/caddy/Caddyfile](./deployment/reverse-proxy-compose/caddy/Caddyfile) |
| 164 | +3. Set `API_SECRET` environment variable for the Capture service in [deployment/reverse-proxy-compose/caddy.compose.yml](./deployment/reverse-proxy-compose/caddy.compose.yml). |
| 165 | +4. Ensure your domain’s DNS A/AAAA records point to this server’s IP. |
| 166 | +5. Open inbound TCP ports 80 and 443 on your firewall/security group. |
| 167 | + |
| 168 | +Start the Caddy reverse proxy |
| 169 | + |
| 170 | +```shell |
| 171 | +docker compose -f caddy.compose.yml up -d |
| 172 | +``` |
| 173 | + |
130 | 174 | ## API Documentation |
131 | 175 |
|
132 | 176 | Our API is documented in accordance with the OpenAPI spec. |
|
0 commit comments