✨ feat(deploy): 挂载简历快速预览入口 - #147
Merged
Merged
Conversation
背景:提供无需下载的浏览器简历预览地址。 变更:增加精确 /cv 的 Nginx location 模板并记录只读 PDF 部署边界。 验证:待 CI 与服务器发布后验证。 Refs #146
Owner
Author
|
阶段:D4 real |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 Issue
Closes #146
结论
提供 https://www.babelflux.icu/cv 的 PDF 内联预览入口,个人简历不进入仓库。
实现与边界
实验记录
阶段:D0 设计
假设:固定路径的 Nginx alias 足以支持浏览器快速预览且不会影响其他路由。
环境:现有 Ubuntu 22.04 + Nginx TLS server。
输入:用户授权的单个 PDF 文件。
结果:模板仅匹配精确 /cv,回退只需移除 location。
结论:接受。
验证
风险与回退
简历是公开站点内容,文件权限设为 0644 以供 Nginx 读取;不记录或提交文件内容。回退时恢复 Nginx 备份并 reload。