fix: minor tweaks

This commit is contained in:
Morten Olsen
2025-10-16 23:33:03 +02:00
parent 2ea453ea2f
commit fca51c44af
4 changed files with 14 additions and 7 deletions

View File

@@ -3,4 +3,5 @@
!/src !/src
!/package.json !/package.json
!/pnpm-lock.yaml !/pnpm-lock.yaml
!/pnpm-workspace.yaml
!/tsconfig.json !/tsconfig.json

View File

@@ -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

View File

@@ -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

View File

@@ -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