chore: 把 deploy/ 与 data/ 移出版本库
- .gitignore 改为整目录忽略 /data/ 与 /deploy/(原先用 /data/* + 白名单, 反而把 data/.htaccess、data/index.html 放进仓库) - git rm --cached 移除 data/.htaccess、data/index.html、 deploy/setup-simplenav-user.sh、deploy/nginx-simplenav-deny-data.conf - 部署脚本移到 ~/code/_tooling/simplenav-deploy/,不再属于应用源码 - /data/ 的保护由站点根 .htaccess(RewriteRule ^data/ - [F,L])负责; nav.db 从未被提交,无凭据泄露
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
# 禁止 Web 访问 data 目录(SQLite 数据库等敏感文件)
|
||||
<IfModule mod_authz_core.c>
|
||||
Require all denied
|
||||
</IfModule>
|
||||
<IfModule !mod_authz_core.c>
|
||||
Order allow,deny
|
||||
Deny from all
|
||||
</IfModule>
|
||||
@@ -1 +0,0 @@
|
||||
<!-- 占位,防止目录被列出 -->
|
||||
Reference in New Issue
Block a user