@jrpool/kilotest 35.0.0 → 35.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/SERVICE.md +13 -3
  2. package/package.json +1 -1
package/SERVICE.md CHANGED
@@ -181,13 +181,23 @@ curl -sv https://example.com/ -o /dev/null
181
181
 
182
182
  Requests to `https://kilotest.com` are received on port 443 and processed by [Caddy](https://caddyserver.com/), which forwards them via HTTP to the application at `localhost:3000`. Caddy manages, provisions, and renews a TLS certificate via Let’s Encrypt. Any request to `http://kilotest.com` is received on port 80, and Caddy redirects it to an `https` request. Caddy forwards `https` requests to the [local server](http://localhost:3000), where it is processed by the Kilotest service.
183
183
 
184
- The Caddy configuration is maintained and tracked in `/etc/caddy/Caddyfile`:
184
+ The Caddy configuration is maintained and tracked in `/etc/caddy/Caddyfile`. Leading 2 spaces below represent 1 Tab character. The `handle_path` block is used for the QAI application, which is accessed at `https://kilotest.com/qai` and listens on port 3001.
185
+
186
+ ```caddyfile
187
+ # Configuration of the Caddy web server.
188
+ # Docs: https://caddyserver.com/docs/caddyfile.
185
189
 
186
- ```javascript
187
190
  kilotest.com {
188
191
  # Enable Zstandard and Gzip compression of responses.
189
192
  encode zstd gzip
190
- # Reverse proxy all requests to localhost:3000.
193
+
194
+ # Truncate the initial /qai from the forwarded path.
195
+ handle_path /qai* {
196
+ # Forward any matching request to port 3001.
197
+ reverse_proxy localhost:3001
198
+ }
199
+
200
+ # Forward any other request to port 3000.
191
201
  reverse_proxy localhost:3000 {
192
202
  # Improve SSE latency.
193
203
  flush_interval -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jrpool/kilotest",
3
- "version": "35.0.0",
3
+ "version": "35.0.1",
4
4
  "description": "An ensemble testing service with a focus on accessibility",
5
5
  "main": "index.js",
6
6
  "scripts": {