docs: 更新 CHANGELOG 和 Dockerfile
CHANGELOG 记录 Unreleased 新功能: - internal 指令 - limit_rate 中间件 - server_tokens 配置 - types 配置块 Dockerfile 更新版本信息路径。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
ae0bec6c3b
commit
08e6e8c003
@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
|
||||
- internal 指令:防止外部直接访问特定 location,支持 X-Accel-Redirect 内部重定向
|
||||
- limit_rate 中间件:响应速率限制,支持令牌桶算法和大文件回退策略
|
||||
- server_tokens 配置:控制 Server 响应头是否显示版本号
|
||||
- types 配置块:自定义 MIME 类型映射,线程安全实现
|
||||
|
||||
## [0.2.1] - 2026-04-17
|
||||
|
||||
### Added
|
||||
|
||||
12
Dockerfile
12
Dockerfile
@ -28,12 +28,12 @@ ARG BUILD_PLATFORM=unknown
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build \
|
||||
-ldflags="-s -w \
|
||||
-X 'rua.plus/lolly/internal/app.Version=${VERSION}' \
|
||||
-X 'rua.plus/lolly/internal/app.GitCommit=${GIT_COMMIT}' \
|
||||
-X 'rua.plus/lolly/internal/app.GitBranch=${GIT_BRANCH}' \
|
||||
-X 'rua.plus/lolly/internal/app.BuildTime=${BUILD_TIME}' \
|
||||
-X 'rua.plus/lolly/internal/app.GoVersion=${GO_VERSION}' \
|
||||
-X 'rua.plus/lolly/internal/app.BuildPlatform=${BUILD_PLATFORM}'" \
|
||||
-X 'rua.plus/lolly/internal/version.Version=${VERSION}' \
|
||||
-X 'rua.plus/lolly/internal/version.GitCommit=${GIT_COMMIT}' \
|
||||
-X 'rua.plus/lolly/internal/version.GitBranch=${GIT_BRANCH}' \
|
||||
-X 'rua.plus/lolly/internal/version.BuildTime=${BUILD_TIME}' \
|
||||
-X 'rua.plus/lolly/internal/version.GoVersion=${GO_VERSION}' \
|
||||
-X 'rua.plus/lolly/internal/version.BuildPlatform=${BUILD_PLATFORM}'" \
|
||||
-gcflags="-l=4" \
|
||||
-asmflags="-l=4" \
|
||||
-trimpath \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user