fix: minor tweaks
This commit is contained in:
@@ -3,4 +3,5 @@
|
|||||||
!/src
|
!/src
|
||||||
!/package.json
|
!/package.json
|
||||||
!/pnpm-lock.yaml
|
!/pnpm-lock.yaml
|
||||||
|
!/pnpm-workspace.yaml
|
||||||
!/tsconfig.json
|
!/tsconfig.json
|
||||||
|
|||||||
5
.github/workflows/pipeline-default.yaml
vendored
5
.github/workflows/pipeline-default.yaml
vendored
@@ -21,6 +21,11 @@ permissions:
|
|||||||
id-token: write
|
id-token: write
|
||||||
actions: read
|
actions: read
|
||||||
security-events: write
|
security-events: write
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
uses: ./.github/workflows/job-build.yaml
|
uses: ./.github/workflows/job-build.yaml
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM node:23-slim
|
FROM node:23-slim
|
||||||
RUN corepack enable
|
RUN corepack enable
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json pnpm-lock.yaml ./
|
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
|
||||||
RUN pnpm install --frozen-lockfile --prod
|
RUN pnpm install --frozen-lockfile --prod
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN chmod +x /app/bin/start.js
|
RUN chmod +x /app/bin/start.js
|
||||||
|
|||||||
13
README.md
13
README.md
@@ -27,7 +27,7 @@ docker-compose up -d
|
|||||||
2. The broker will be available on:
|
2. The broker will be available on:
|
||||||
- **TCP MQTT**: `tcp://localhost:1883`
|
- **TCP MQTT**: `tcp://localhost:1883`
|
||||||
- **WebSocket MQTT**: `ws://localhost:8883/ws`
|
- **WebSocket MQTT**: `ws://localhost:8883/ws`
|
||||||
- **HTTP API**: `http://localhost:8883/api`
|
- **HTTP API Documentation**: `http://localhost:8883/docs`
|
||||||
|
|
||||||
3. Connect with an MQTT client:
|
3. Connect with an MQTT client:
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ Backbone can be configured using environment variables:
|
|||||||
| `OIDC_CLIENT_ID` | OIDC client ID | `undefined` |
|
| `OIDC_CLIENT_ID` | OIDC client ID | `undefined` |
|
||||||
| `OIDC_CLIENT_SECRET` | OIDC client secret | `undefined` |
|
| `OIDC_CLIENT_SECRET` | OIDC client secret | `undefined` |
|
||||||
| `OIDC_CLIENT_SECRET` | OIDC client secret | `undefined` |
|
| `OIDC_CLIENT_SECRET` | OIDC client secret | `undefined` |
|
||||||
| `OIDC_GROUP_FIELD` | JWT field for reading groups | `groups` |
|
| `OIDC_GROUP_FIELD` | JWT field for reading groups | `'groups'` |
|
||||||
| `OIDC_ADMIN_GROUP` | JWT group for admins | `undefined` |
|
| `OIDC_ADMIN_GROUP` | JWT group for admins | `undefined` |
|
||||||
| `OIDC_WRITER_GROUP` | JWT group with publish access to queue | `undefined` |
|
| `OIDC_WRITER_GROUP` | JWT group with publish access to queue | `undefined` |
|
||||||
| `OIDC_READER_GROUP` | JWT group with read-only access to queue | `undefined` |
|
| `OIDC_READER_GROUP` | JWT group with read-only access to queue | `undefined` |
|
||||||
@@ -143,10 +143,11 @@ statements:
|
|||||||
|
|
||||||
#### Resource Patterns
|
#### Resource Patterns
|
||||||
|
|
||||||
- `*` - All topics
|
- `*` - All resources
|
||||||
- `sensors/*` - All topics under sensors/
|
- `mqtt:\*` - All mqtt topics
|
||||||
- `sensors/+/data` - Topics matching the pattern (single-level wildcard)
|
- `mqtt:sensors/**` - All topics under sensors/
|
||||||
- `sensors/#` - All topics under sensors/ (multi-level wildcard)
|
- `mqtt:sensors/*/data` - Topics matching the pattern (single-level wildcard)
|
||||||
|
- `mqtt:sensors/**/data` - Topics matching the pattern (multi-level wildcard)
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user