Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
3154fda
refactor: 优化插件接入设备状态检查逻辑
zhou-hao Dec 21, 2025
b2ca088
Merge branch '2.11' of github.com:jetlinks/jetlinks-community into 2.11
zhou-hao Feb 12, 2026
82f129f
Merge branch '2.11' of github.com:jetlinks/jetlinks-community into 2.11
zhou-hao Mar 26, 2026
6452ed9
build: bump project version to 2.12.0-SNAPSHOT and update dependencies
zhou-hao Mar 26, 2026
caecdc4
refactor: 优化设备链路追踪
zhou-hao Apr 7, 2026
204ea11
refactor: 优化TCP MQTT 设备接入网关,增加多连接支持
zhou-hao Apr 7, 2026
6a4b2a6
refactor: 优化设备接入网关
zhou-hao Apr 7, 2026
d5b4ff5
feat: 优化透传解析
zhou-hao Apr 7, 2026
c4213b7
doc: update license header
zhou-hao Apr 7, 2026
d91c2d2
doc: update license header
zhou-hao Apr 7, 2026
f0b621b
fix(设备管理): 补齐获取设备会话信息接口,用于设备详情->设备接入页签使用 (#759)
jinqiao0109 Jul 15, 2026
db5b4d2
feat(设备接入): 补齐设备诊断链路追踪 (#761)
zhou-ai-bot Jul 31, 2026
d751e12
fix(协议管理): 修复协议更新jar包时不生效的问题 (#762)
jinqiao0109 Aug 4, 2026
481e7f6
fix(components): 修复时序聚合 SQL 注入 (#774)
zhou-hao Aug 6, 2026
8846941
fix(设备管理): 限制物模型导入使用托管文件 (#780)
zhou-hao Aug 6, 2026
f13fb98
fix(系统配置): 修复 base-path 环回地址绕过 (#776)
zhou-hao Aug 7, 2026
cdc8d8b
fix(通知管理): 限制 WebHook 模板目标地址 (#778)
zhou-hao Aug 7, 2026
3c7db25
fix(协议管理): 提升协议转换操作权限 (#779)
zhou-hao Aug 7, 2026
8e3ce3d
fix(通知管理): 禁止远程邮件附件地址 (#777)
zhou-hao Aug 7, 2026
6198898
fix(docker): 加固 Compose 默认配置 (#783)
zhou-hao Aug 12, 2026
83e1007
fix(协议管理): 补齐协议包装器方法委托
jinqiao0109 Aug 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/maven_build_2.1x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Auto Deploy Docker

on:
push:
branches: [ "2.10","2.11" ]
branches: [ "2.10","2.11" ,"2.12" ]
jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request_2.1x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Pull Request 2.10 with java17

on:
pull_request:
branches: [ "2.10","2.11" ]
branches: [ "2.10","2.11","2.12" ]

jobs:
build:
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ docker/data
application-local.yml
dev/
.DS_Store
.java-version
.java-version
docker/dev-env/.env
docker/run-all/.env
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,22 @@ TCP/UDP/MQTT/HTTP、TLS/DTLS、不同厂商、不同设备、不同报文、统
------|----simulator # 设备模拟器
```

## Docker 部署说明

生产环境请使用 `docker/run-all`,可直接启动;如用于生产,请先复制 `docker/run-all/.env.example` 为 `.env` 并覆盖为随机强密码:

```bash
cd docker/run-all
cp .env.example .env
docker compose up -d
```

生产 Compose 仅发布 JetLinks 对外服务端口,PostgreSQL 和 Redis 不映射到宿主机,平台通过 Compose 内部的 `postgres:5432` 和 `redis:6379` 访问。未配置密码时 Compose 会沿用原有默认值并可直接启动,便于已有部署升级;生产环境建议通过 `.env` 或环境变量覆盖数据库、Redis 以及 admin 初始密码,`.env` 不要提交到代码仓库。

`docker/dev-env` 仅用于本机开发调试,会保留 PostgreSQL `5432` 和 Redis `6379` 端口映射;PostgreSQL 未配置密码时沿用原有默认值,Redis 默认不设置密码。生产环境不要使用该 Compose 配置,并应填写 `docker/dev-env/.env.example` 覆盖 PostgreSQL 密码。

已有 PostgreSQL 数据目录不会因为修改 `POSTGRES_PASSWORD` 环境变量自动修改数据库密码;迁移已有部署时,请使用数据库管理工具显式执行 `ALTER ROLE postgres WITH PASSWORD '新密码';`,并同步更新 `.env`。admin 初始密码同样只在首次初始化时生效。

## 服务支持

我们提供了各种服务方式帮助您深入了解物联网平台和代码,通过产品文档、技术交流群、付费教学等方式,你将获得如下服务:
Expand Down Expand Up @@ -127,4 +143,3 @@ TCP/UDP/MQTT/HTTP、TLS/DTLS、不同厂商、不同设备、不同报文、统
[开发文档](https://hanta.yuque.com/px7kg1/nn1gdr)

[![Stargazers over time](https://starchart.cc/jetlinks/jetlinks-community.svg?variant=adaptive)](https://starchart.cc/jetlinks/jetlinks-community)

4 changes: 4 additions & 0 deletions docker/dev-env/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# 可直接启动;留空时沿用原有默认值。
# 生产环境建议填写随机强密码,.env 不要提交到代码仓库。
# 可使用密码管理器或 openssl rand -base64 32 生成密码。
POSTGRES_PASSWORD=
10 changes: 7 additions & 3 deletions docker/dev-env/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,26 @@ services:
redis:
image: redis:6
container_name: jetlinks-ce-redis
# 仅供本地开发调试,生产环境不得发布 Redis 端口。
ports:
- "6379:6379"
volumes:
- "./data/redis:/data"
# 本地开发默认不设置 Redis 密码,生产环境请使用 docker/run-all 并配置密码。
command: redis-server --appendonly yes
environment:
- TZ=Asia/Shanghai
postgres:
image: timescale/timescaledb:latest-pg16
container_name: jetlinks-postgres-16
# 仅供本地开发调试,生产环境不得发布 PostgreSQL 端口。
ports:
- "5432:5432"
volumes:
- "./data/postgres:/var/lib/postgresql/data"
environment:
POSTGRES_PASSWORD: jetlinks
# 未设置 POSTGRES_PASSWORD 时沿用原有默认值,生产环境建议覆盖。
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-jetlinks}
POSTGRES_DB: jetlinks
POSTGRES_HOST_AUTH_METHOD: trust
TZ: Asia/Shanghai
POSTGRES_HOST_AUTH_METHOD: scram-sha-256
TZ: Asia/Shanghai
6 changes: 6 additions & 0 deletions docker/run-all/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 可直接启动;留空时沿用原有默认值。
# 生产环境建议填写随机强密码,.env 不要提交到代码仓库。
# 可使用密码管理器或 openssl rand -base64 32 生成密码。
POSTGRES_PASSWORD=
REDIS_PASSWORD=
ADMIN_USER_PASSWORD=
31 changes: 18 additions & 13 deletions docker/run-all/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,35 @@ services:
redis:
image: redis:6
container_name: jetlinks-ce-redis
# ports:
# - "6379:6379" # 仅供jetlinks-ce访问
volumes:
- "./data/redis:/data"
command: redis-server --appendonly yes --requirepass "JetLinks@redis"
# 不发布 Redis 端口,仅允许 Compose 内部服务通过 redis:6379 访问。
# 未设置 REDIS_PASSWORD 时沿用原有默认值,生产环境建议覆盖。
command:
- redis-server
- --appendonly
- "yes"
- --requirepass
- "${REDIS_PASSWORD:-JetLinks@redis}"
environment:
- TZ=Asia/Shanghai
REDIS_PASSWORD: ${REDIS_PASSWORD:-JetLinks@redis}
TZ: Asia/Shanghai
healthcheck:
test: [ "CMD", "redis-cli", "-h", "localhost", "-p", "6379", "-a", "JetLinks@redis", "ping" ]
test: [ "CMD-SHELL", "redis-cli -h localhost -p 6379 -a \"$${REDIS_PASSWORD}\" ping" ]
interval: 10s
timeout: 5s
retries: 3
postgres:
image: timescale/timescaledb:latest-pg16
container_name: jetlinks-ce-postgres
# ports:
# - "5432:5432" # 仅供jetlinks-ce访问
volumes:
- "./data/postgres:/var/lib/postgresql/data"
environment:
POSTGRES_PASSWORD: JetLinks@postgres
# 不发布 PostgreSQL 端口,仅允许 JetLinks 通过 postgres:5432 访问。
# 未设置 POSTGRES_PASSWORD 时沿用原有默认值,生产环境建议覆盖。
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-JetLinks@postgres}
POSTGRES_DB: jetlinks
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_HOST_AUTH_METHOD: scram-sha-256
TZ: Asia/Shanghai
healthcheck:
test: [ "CMD", "pg_isready", "-U", "postgres" ]
Expand All @@ -47,14 +53,14 @@ services:
- "TZ=Asia/Shanghai"
- "EXTERNAL_HOST=local-host.cn" # 对外提供访问的域名或者ip地址
- "EXTERNAL_PORT=8848" # 对外提供访问的端口,修改了端口映射同时也需要修改这里.
- "ADMIN_USER_PASSWORD=JetLinks.C0mmVn1ty" # admin用户的初始密码
- "ADMIN_USER_PASSWORD=${ADMIN_USER_PASSWORD:-JetLinks.C0mmVn1ty}" # 未设置时沿用原有默认值,生产环境建议覆盖
- "spring.r2dbc.url=r2dbc:postgresql://postgres:5432/jetlinks" #数据库连接地址
- "spring.r2dbc.username=postgres"
- "spring.r2dbc.password=JetLinks@postgres"
- "spring.r2dbc.password=${POSTGRES_PASSWORD:-JetLinks@postgres}"
- "spring.data.redis.host=redis"
- "spring.data.redis.port=6379"
- "file.manager.storage-base-path=/application/data/files"
- "spring.data.redis.password=JetLinks@redis"
- "spring.data.redis.password=${REDIS_PASSWORD:-JetLinks@redis}"
- "logging.level.io.r2dbc=warn"
- "logging.level.org.springframework.data=warn"
- "logging.level.org.springframework=warn"
Expand Down Expand Up @@ -89,4 +95,3 @@ services:
# environment:
# API_BASE_PATH: "http://jetlinks:8848/"
# TZ: Asia/Shanghai

2 changes: 1 addition & 1 deletion jetlinks-components/common-component/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>jetlinks-components</artifactId>
<groupId>org.jetlinks.community</groupId>
<version>2.11.0-SNAPSHOT</version>
<version>2.12.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 JetLinks https://www.jetlinks.cn
* Copyright 2026 JetLinks https://www.jetlinks.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading
Loading