Skip to content

Commit 88ec631

Browse files
committed
++
1 parent cea672b commit 88ec631

11 files changed

Lines changed: 80 additions & 15 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build and Release
22

33
on:
44
push:
5-
# Only trigger the heavy multi-platform build on version tag pushes (e.g. v1.10.4)
5+
# Only trigger the heavy multi-platform build on version tag pushes (e.g. v1.10.7)
66
tags:
77
- 'v*'
88
# Allow manual dispatch for ad-hoc builds from the UI

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This document explains how our GitHub Actions are gated and how to trigger heavi
44

55
### CI design principles
66
- Lightweight checks (unit tests, linters) run on `push` / `pull_request` for `main` and `develop` branches.
7-
- Heavy tasks (cross-platform builds, Docker image builds & push, release packaging) only run on tag pushes (e.g. `v1.10.4`) or when explicitly requested.
7+
- Heavy tasks (cross-platform builds, Docker image builds & push, release packaging) only run on tag pushes (e.g. `v1.10.7`) or when explicitly requested.
88

99
This reduces wasted CI minutes and avoids building/publishing artifacts for every code merge.
1010

@@ -13,8 +13,8 @@ There are multiple intentional ways to trigger full/heavy workflows:
1313

1414
- Push a semantic version tag (recommended for releases):
1515
```bash
16-
git tag v1.10.4
17-
git push origin v1.10.4
16+
git tag v1.10.7
17+
git push origin v1.10.7
1818
```
1919
Tag pushes trigger the `build.yml` / `release.yml` flows which do cross-platform builds and create the Release.
2020

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.10.4
1+
1.10.7

config.yaml.bak

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
base:
2+
name: 站点
3+
description: 开箱即用的文件快传系统
4+
keywords: FileCodeBox, 文件快递柜, 口令传送箱, 匿名口令分享文本, 文件
5+
port: 12345
6+
host: 0.0.0.0
7+
datapath: /Users/zhangyi/FileCodeBox/data
8+
production: false
9+
database:
10+
type: sqlite
11+
host: ""
12+
port: 0
13+
name: ./data/filecodebox.db
14+
user: ""
15+
pass: ""
16+
ssl: disable
17+
transfer:
18+
upload:
19+
openupload: 1
20+
uploadsize: 10485760
21+
enablechunk: 1
22+
chunksize: 2097152
23+
maxsaveseconds: 0
24+
requirelogin: 1
25+
download:
26+
enableconcurrentdownload: 1
27+
maxconcurrentdownloads: 10
28+
downloadtimeout: 300
29+
requirelogin: 0
30+
storage:
31+
type: ""
32+
storagepath: ""
33+
s3: null
34+
webdav: null
35+
onedrive: null
36+
nfs: null
37+
user:
38+
allowuserregistration: 0
39+
requireemailverify: 0
40+
useruploadsize: 52428800
41+
userstoragequota: 1073741824
42+
sessionexpiryhours: 168
43+
maxsessionsperuser: 5
44+
jwtsecret: FileCodeBox2025JWT
45+
mcp:
46+
enablemcpserver: 0
47+
mcpport: ""
48+
mcphost: ""
49+
ui:
50+
themes_select: themes/2025
51+
background: ""
52+
page_explain: 请勿上传或分享违法内容。根据《中华人民共和国网络安全法》、《中华人民共和国刑法》、《中华人民共和国治安管理处罚法》等相关规定。 传播或存储违法、违规内容,会受到相关处罚,严重者将承担刑事责任。本站坚决配合相关部门,确保网络内容的安全,和谐,打造绿色网络环境。
53+
robots_text: |-
54+
User-agent: *
55+
Disallow: /
56+
show_admin_addr: 0
57+
opacity: 1
58+
notify_title: ""
59+
notify_content: ""
60+
sys_start: ""
61+
upload_minute: 0
62+
upload_count: 0
63+
error_minute: 0
64+
error_count: 0
65+
expire_style: []

docs/swagger-enhanced.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ swagger: "2.0"
22
info:
33
title: "FileCodeBox API"
44
description: "FileCodeBox 是一个用于文件分享和代码片段管理的 Web 应用程序"
5-
version: "1.10.4"
5+
version: "1.10.7"
66
termsOfService: "http://swagger.io/terms/"
77
contact:
88
name: "API Support"
@@ -75,7 +75,7 @@ paths:
7575
example: "2025-09-11T10:00:00Z"
7676
version:
7777
type: "string"
78-
example: "1.10.4"
78+
example: "1.10.7"
7979
uptime:
8080
type: "string"
8181
example: "2h30m15s"

docs/swagger.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"name": "MIT",
1414
"url": "https://github.com/zy84338719/filecodebox/blob/main/LICENSE"
1515
},
16-
"version": "1.10.4"
16+
"version": "1.10.7"
1717
},
1818
"host": "localhost:12345",
1919
"basePath": "/",
@@ -553,7 +553,7 @@
553553
},
554554
"version": {
555555
"type": "string",
556-
"example": "1.10.4"
556+
"example": "1.10.7"
557557
}
558558
}
559559
},

docs/swagger.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ definitions:
1212
example: 2h30m15s
1313
type: string
1414
version:
15-
example: 1.10.4
15+
example: 1.10.7
1616
type: string
1717
type: object
1818
handlers.SystemConfig:
@@ -57,7 +57,7 @@ info:
5757
url: https://github.com/zy84338719/filecodebox/blob/main/LICENSE
5858
termsOfService: http://swagger.io/terms/
5959
title: FileCodeBox API
60-
version: "1.10.4"
60+
version: "1.10.7"
6161
paths:
6262
/api/config:
6363
get:

go.sum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfV
171171
github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
172172
github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM=
173173
github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=
174-
github.com/knz/go-libedit v1.10.4/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M=
174+
github.com/knz/go-libedit v1.10.7/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M=
175175
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
176176
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
177177
github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=

internal/handlers/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NewAPIHandler(manager *config.ConfigManager) *APIHandler {
2929
type HealthResponse struct {
3030
Status string `json:"status" example:"ok"`
3131
Timestamp string `json:"timestamp" example:"2025-09-11T10:00:00Z"`
32-
Version string `json:"version" example:"1.10.4"`
32+
Version string `json:"version" example:"1.10.7"`
3333
Uptime string `json:"uptime" example:"2h30m15s"`
3434
}
3535

internal/models/service/system.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var (
1919
GitBranch = "unknown"
2020

2121
// Version 应用版本号
22-
Version = "1.10.4"
22+
Version = "1.10.7"
2323
)
2424

2525
// BuildInfo 构建信息结构体

0 commit comments

Comments
 (0)