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:
xfy 2026-04-20 18:09:08 +08:00
parent ae0bec6c3b
commit 08e6e8c003
2 changed files with 15 additions and 6 deletions

View File

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

View File

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