redis-smq-web-server 9.0.0-next.14 → 9.0.0-next.15

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 (3) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +10 -16
  3. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [9.0.0-next.15](https://github.com/weyoss/redis-smq/compare/v9.0.0-next.14...v9.0.0-next.15) (2025-10-31)
7
+
8
+ ### 📝 Documentation
9
+
10
+ - **redis-smq-web-server:** add reverse proxy deployment guide ([c19a48c](https://github.com/weyoss/redis-smq/commit/c19a48c58c1e384a0d484cb79ee461503fa0a306))
11
+
6
12
  ## [9.0.0-next.14](https://github.com/weyoss/redis-smq/compare/v9.0.0-next.13...v9.0.0-next.14) (2025-10-28)
7
13
 
8
14
  ### ⚠ BREAKING CHANGES
package/README.md CHANGED
@@ -80,7 +80,7 @@ npx redis-smq-web-server \
80
80
  --api-proxy-target http://127.0.0.1:7210
81
81
  ```
82
82
 
83
- When `--api-proxy-target` is provided, requests to `<basePath>/api` and `<basePath>/docs` are forwarded
83
+ When `--api-proxy-target` is provided, requests to `<basePath>/api` and `<basePath>/swagger` are forwarded
84
84
  to the upstream. In this mode, Redis connection options on the web server are not used; the upstream API service manages Redis.
85
85
 
86
86
  ### Programmatically (optional)
@@ -95,7 +95,7 @@ import { EConsoleLoggerLevel, ERedisConfigClient } from 'redis-smq-common';
95
95
  const server = new RedisSMQWebServer({
96
96
  webServer: {
97
97
  port: 8080,
98
- basePath: '/', // UI at '/', API at '/api', docs at '/docs'
98
+ basePath: '/', // UI at '/', API at '/api', swagger at '/swagger'
99
99
  },
100
100
  // The following options are used only when apiProxyTarget is NOT set
101
101
  redis: {
@@ -140,15 +140,15 @@ await srv.run();
140
140
  - Example: basePath = / → API at /api
141
141
  - Example: basePath = /redis-smq → API at /redis-smq/api
142
142
 
143
- - Swagger UI: mounted under <basePath>/docs
144
- - Example: basePath = / → Swagger UI at /docs
145
- - Example: basePath = /redis-smq → Swagger UI at /redis-smq/docs
143
+ - Swagger UI: mounted under <basePath>/swagger
144
+ - Example: basePath = / → Swagger UI at /swagger
145
+ - Example: basePath = /redis-smq → Swagger UI at /redis-smq/swagger
146
146
 
147
147
  Proxying behavior:
148
148
 
149
149
  - When apiProxyTarget is set, the server forwards:
150
150
  - <basePath>/api → ${apiProxyTarget}
151
- - <basePath>/docs → ${apiProxyTarget}
151
+ - <basePath>/swagger → ${apiProxyTarget}
152
152
  - When apiProxyTarget is not set, the server hosts the embedded REST API in-process.
153
153
 
154
154
  ## Configuration
@@ -167,7 +167,7 @@ interface IRedisSMQWebServerConfig extends IRedisSMQRestApiConfig {
167
167
  port?: number;
168
168
 
169
169
  /**
170
- * Base public path for the RedisSMQ Web UI and the local API/docs when embedded.
170
+ * Base public path for the RedisSMQ Web UI and the local API/Swagger when embedded.
171
171
  * Default: '/'
172
172
  */
173
173
  basePath?: string;
@@ -184,7 +184,7 @@ interface IRedisSMQWebServerConfig extends IRedisSMQRestApiConfig {
184
184
 
185
185
  Notes:
186
186
 
187
- - When `webServer.apiProxyTarget` is set, the server proxies `<basePath>/api` and `<basePath>/docs` to the target. In this mode, redis and logger options are not used by the web server (they are
187
+ - When `webServer.apiProxyTarget` is set, the server proxies `<basePath>/api` and `<basePath>/swagger` to the target. In this mode, redis and logger options are not used by the web server (they are
188
188
  handled by the upstream API service).
189
189
 
190
190
  - When `webServer.apiProxyTarget` is not set, the web server mounts the embedded `redis-smq-rest-api` using the provided
@@ -195,7 +195,7 @@ Notes:
195
195
  ```shell
196
196
  -p, --port <number> Port to run the server on (default: "8080")
197
197
  -b, --base-path <string> Base public path for the RedisSMQ Web UI SPA (default: "/")
198
- -t, --api-proxy-target <string> Proxy target for API (/api, /docs). Example: http://127.0.0.1:6000
198
+ -t, --api-proxy-target <string> Proxy target for API (/api, /swagger). Example: http://127.0.0.1:6000
199
199
  -c, --redis-client <ioredis|redis> Redis client. Valid options are: ioredis, redis. (default: "ioredis")
200
200
  -r, --redis-host <string> Redis server host (default: "127.0.0.1")
201
201
  -o, --redis-port <number> Redis server port (default: "6379")
@@ -207,13 +207,7 @@ Notes:
207
207
 
208
208
  ## Deploying behind a reverse proxy
209
209
 
210
- - Set --base-path to the public sub-path you expose (e.g., /redis-smq).
211
- - Ensure your proxy forwards both the UI and API prefixes:
212
- - /redis-smq → web server
213
- - If you terminate TLS at the proxy, no additional config is needed here.
214
- - If you also proxy the API to an external service, combine with `--api-proxy-target`:
215
- - Client → reverse proxy → web server (/redis-smq)
216
- - Web server proxies /redis-smq/api, /redis-smq/docs → external API
210
+ See [Deploying behind a reverse proxy](docs/deploying-behind-a-reverse-proxy.md).
217
211
 
218
212
  ## License
219
213
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redis-smq-web-server",
3
- "version": "9.0.0-next.14",
3
+ "version": "9.0.0-next.15",
4
4
  "description": "Web server for RedisSMQ Web UI: serves the SPA and hosts or proxies the RedisSMQ REST API.",
5
5
  "author": "Weyoss <weyoss@protonmail.com>",
6
6
  "license": "MIT",
@@ -46,10 +46,10 @@
46
46
  "peerDependencies": {
47
47
  "@redis/client": "^5",
48
48
  "ioredis": "^5",
49
- "redis-smq-web-ui": "^9.0.0-next.14",
50
- "redis-smq-rest-api": "^9.0.0-next.14",
51
- "redis-smq": "^9.0.0-next.14",
52
- "redis-smq-common": "^9.0.0-next.14"
49
+ "redis-smq": "^9.0.0-next.15",
50
+ "redis-smq-common": "^9.0.0-next.15",
51
+ "redis-smq-rest-api": "^9.0.0-next.15",
52
+ "redis-smq-web-ui": "^9.0.0-next.15"
53
53
  },
54
54
  "peerDependenciesMeta": {
55
55
  "@redis/client": {