mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-06 15:46:37 +08:00
[优化] 更新 Go 版本要求至 1.25+
This commit is contained in:
@@ -40,15 +40,14 @@
|
|||||||
|
|
||||||
Server:
|
Server:
|
||||||
|
|
||||||
* Go 1.24+
|
* Go 1.25+
|
||||||
* Gin
|
* Gin
|
||||||
* GORM
|
* GORM
|
||||||
* SQLite / PostgreSQL
|
* SQLite / PostgreSQL
|
||||||
* 现有登录体系
|
* 现有登录体系
|
||||||
|
|
||||||
Agent:
|
Agent:
|
||||||
|
*
|
||||||
* Go 1.24+
|
|
||||||
* 单二进制
|
* 单二进制
|
||||||
* 节点本地执行
|
* 节点本地执行
|
||||||
* `openresty_path` 优先
|
* `openresty_path` 优先
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ This page summarizes the OpenFlare deployment baseline, integration flow, upgrad
|
|||||||
|
|
||||||
Server:
|
Server:
|
||||||
|
|
||||||
* Go 1.24+
|
* Go 1.25+
|
||||||
* Node.js 18+
|
* Node.js 18+
|
||||||
* Writable SQLite directory or reachable PostgreSQL instance
|
* Writable SQLite directory or reachable PostgreSQL instance
|
||||||
|
|
||||||
Agent:
|
Agent:
|
||||||
|
|
||||||
* Go 1.24+
|
* Go 1.25+
|
||||||
* Writable Agent data directory
|
* Writable Agent data directory
|
||||||
* Local mode requires `openresty -t` and `openresty -s reload`
|
* Local mode requires `openresty -t` and `openresty -s reload`
|
||||||
* Docker mode requires Docker access
|
* Docker mode requires Docker access
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ OpenFlare Server is the Gin + GORM control plane. It owns the web console, manag
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
| Item | Requirement |
|
| Item | Requirement |
|
||||||
| --- | --- |
|
| --- |-------------------------------------------------------|
|
||||||
| Go | `1.24+` |
|
| Go | `1.25+` |
|
||||||
| Node.js | `18+` |
|
| Node.js | `18+` |
|
||||||
| Database | Writable SQLite path or reachable PostgreSQL instance |
|
| Database | Writable SQLite path or reachable PostgreSQL instance |
|
||||||
|
|
||||||
Set `SESSION_SECRET` explicitly in production and prefer PostgreSQL.
|
Set `SESSION_SECRET` explicitly in production and prefer PostgreSQL.
|
||||||
|
|||||||
@@ -6,13 +6,13 @@
|
|||||||
|
|
||||||
Server:
|
Server:
|
||||||
|
|
||||||
* Go 1.24+
|
* Go 1.25+
|
||||||
* Node.js 18+
|
* Node.js 18+
|
||||||
* 可写 SQLite 文件目录,或可访问的 PostgreSQL 实例
|
* 可写 SQLite 文件目录,或可访问的 PostgreSQL 实例
|
||||||
|
|
||||||
Agent:
|
Agent:
|
||||||
|
|
||||||
* Go 1.24+
|
* Go 1.25+
|
||||||
* 对 Agent 数据目录有写权限
|
* 对 Agent 数据目录有写权限
|
||||||
* 本机模式下可执行 `openresty -t` 与 `openresty -s reload`
|
* 本机模式下可执行 `openresty -t` 与 `openresty -s reload`
|
||||||
* Docker 模式下具备 Docker 执行权限
|
* Docker 模式下具备 Docker 执行权限
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ OpenFlare Server 是 Gin + GORM 单体控制面,负责管理端 UI、管理 AP
|
|||||||
|
|
||||||
## 前置条件
|
## 前置条件
|
||||||
|
|
||||||
| 项目 | 要求 |
|
| 项目 | 要求 |
|
||||||
| --- | --- |
|
| --- |-----------------------------------|
|
||||||
| Go | `1.24+` |
|
| Go | `1.25+` |
|
||||||
| Node.js | `18+` |
|
| Node.js | `18+` |
|
||||||
| 数据库 | SQLite 文件目录可写,或可访问的 PostgreSQL 实例 |
|
| 数据库 | SQLite 文件目录可写,或可访问的 PostgreSQL 实例 |
|
||||||
|
|
||||||
生产环境建议显式配置 `SESSION_SECRET`,并优先使用 PostgreSQL。
|
生产环境建议显式配置 `SESSION_SECRET`,并优先使用 PostgreSQL。
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ RUN corepack enable && pnpm install --frozen-lockfile
|
|||||||
COPY ./web ./
|
COPY ./web ./
|
||||||
RUN NEXT_PUBLIC_APP_VERSION="$VERSION" pnpm build
|
RUN NEXT_PUBLIC_APP_VERSION="$VERSION" pnpm build
|
||||||
|
|
||||||
FROM golang:1.24 AS builder2
|
FROM golang:1.25 AS builder2
|
||||||
|
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user