Caddy module to require at-proto authentication and restrict routes to DIDs
1# End-to-End Testing
2
3This directory contains a Caddyfile configuration to test both "Standalone" and "Auth Hub" modes locally.
4
5## Usage
6
71. **Build the Caddy binary**:
8 ```bash
9 go build -o caddy ../cmd/caddy
10 ```
11
122. **Run Caddy**:
13 ```bash
14 ./caddy run --config Caddyfile --adapter caddyfile
15 ```
16
173. **Test in Browser**:
18
19 * **Standalone Mode**: Open [http://localhost:8081](http://localhost:8081).
20 * Expected: Redirect to `/login`.
21
22 * **Auth Hub Mode**: Open [http://localhost:8083](http://localhost:8083).
23 * Expected: Redirect to `http://localhost:8082/login` (The Portal).