bunqueue 1.0.8 → 1.0.10

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/README.md +46 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -52,6 +52,52 @@ npx bunqueue
52
52
  docker run -p 6789:6789 -p 6790:6790 ghcr.io/egeominotti/bunqueue
53
53
  ```
54
54
 
55
+ ### Production Setup
56
+
57
+ For production, enable **persistence** and **authentication**:
58
+
59
+ ```bash
60
+ # With environment variables
61
+ DATA_PATH=./data/bunqueue.db AUTH_TOKENS=your-secret-token bunqueue
62
+
63
+ # Or with custom ports
64
+ TCP_PORT=6789 HTTP_PORT=6790 DATA_PATH=./data/bunqueue.db AUTH_TOKENS=token1,token2 bunqueue
65
+ ```
66
+
67
+ Or create a `.env` file:
68
+
69
+ ```env
70
+ # Server ports
71
+ TCP_PORT=6789
72
+ HTTP_PORT=6790
73
+ HOST=0.0.0.0
74
+
75
+ # Persistence (required for production)
76
+ DATA_PATH=./data/bunqueue.db
77
+
78
+ # Authentication (recommended for production)
79
+ AUTH_TOKENS=your-secret-token-1,your-secret-token-2
80
+
81
+ # Optional: Protect metrics endpoint
82
+ METRICS_AUTH=true
83
+ ```
84
+
85
+ Then run:
86
+
87
+ ```bash
88
+ bunqueue
89
+ ```
90
+
91
+ Output:
92
+ ```
93
+ bunqueue server running
94
+
95
+ TCP: 0.0.0.0:6789
96
+ HTTP: 0.0.0.0:6790
97
+ Data: ./data/bunqueue.db
98
+ Auth: enabled (2 tokens)
99
+ ```
100
+
55
101
  ### Use SDK
56
102
 
57
103
  ```typescript
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "bunqueue",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "High-performance job queue server written in Bun. SQLite persistence, cron scheduling, priorities, retries, DLQ, webhooks. Zero dependencies.",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
8
8
  "bin": {
9
- "bunqueue": "./dist/main.js"
9
+ "bunqueue": "./dist/cli/index.js"
10
10
  },
11
11
  "exports": {
12
12
  ".": {