9a2a5ccbf5
fix(nginx): 关闭绝对重定向,修 /admin 跳到 :8080
...
容器内监听 8080,对外经门户反代走 443。nginx 默认把重定向拼成
$scheme://$host:$server_port,于是 GET /admin(无尾斜杠)被 301 到
http://<域名>:8080/admin/:既泄漏内部端口,又把 https 降级成 http。
- absolute_redirect off + port_in_redirect off,改用相对 Location
- 为 /admin /item-icons /wallpapers /extension 显式处理无尾斜杠请求
2026-09-11 16:25:26 +08:00
e409f967a9
feat(admin): custom wallpaper for the nav background
...
- admin-server 新增 GET/POST /api/wallpaper:
multipart 上传(png/jpg/webp/gif/svg,上限 8MB)或 JSON 直接给 URL,
服务端把一段带标记的 CSS 写入 appConfig.customCss(标记块可反复替换,
不碰主题其余部分),并记录 appConfig.wallpaper / wallpaperDim。
- 上传的图片落在 data 卷 wallpapers/,nginx 以 /wallpapers/ 提供
(长缓存,文件名带时间戳)。
- 遮罩:壁纸上面铺一层可调强度的白色 linear-gradient,默认 0.45,
否则玻璃卡片上的文字在照片上会读不清。
- 安全:URL 校验只允许 / 或 http(s):// 开头且不含引号/括号/换行,
避免注入到 CSS;类型判定走正文特征而非文件名。
- admin UI 增加「外观」区块:上传/填 URL/遮罩滑块/应用/移除 + 预览。
实测:上传 → /wallpapers/wall-*.png,web 200 image/png,
body background-image 为遮罩+图片,移除后恢复默认渐变。
2026-09-11 11:46:53 +08:00
ff0e6418f8
feat(nav): auto-detect browser extension and offer one-click install
...
导航页现在会自动检测浏览历史插件是否已安装:
- 扩展在用户配置的服务地址上动态注册 content script
(Chrome: chrome.scripting.registerContentScripts,
Firefox: browser.contentScripts.register),
于 document_start 给 <html> 打上 data-navi-ext 标记,
不在其他站点运行。
- history-server 始终把「安装浏览历史插件」放在「历史访问」第一条
(入口 url=/extension/install.html),启动时也会重建一次,
不再需要等下一次同步。
- web/navi.js 读到标记后隐藏该入口(连 .item-wrapper 一起隐藏,
避免留下空网格位)。
- 新增 /extension/install.html:自动识别浏览器,给出对应安装包与步骤;
支持在 data 卷放 extension-store.json 配置商店链接,
有商店链接时显示真正的「一键安装」。
- 段落名匹配同时兼容中英文(常用服务/Favorites、历史访问/History),
修掉了公开示例 conf.yml 用英文名时重建逻辑完全失效的问题。
- 扩展升到 1.1.0(新增 scripting 权限与 detect.js)。
Note: Chrome/Edge 不允许从网站直接安装非商店扩展,
因此自托管场景下只能下载后手动加载;发布到商店后才会出现一键安装。
2026-09-11 10:41:10 +08:00
0fe13fc90b
feat: unified nav portal - Dashy + SearXNG + history sync + admin UI + browser extensions
...
- Single Docker container with nginx reverse proxy
- SearXNG search proxy with configurable proxy support
- Browser extensions (Chrome MV3 + Firefox MV2) with SSE-style history sync
- Admin WebUI for managing navigation items
- Full deployment tutorial including auth reverse proxy and webui4frpc tunnel
- Sanitized conf.yml for public distribution
- Fixed SearXNG search trailing-slash issue via nginx rewrite
- Fixed SearXNG proxy configuration for China network access
- Fixed SearXNG engine loading (removed broken keep_only, use default_settings)
2026-09-09 09:52:33 +08:00
7e49d2b51c
feat: HomeDash - unified self-hosted navigation portal
...
Single-container navigation service combining:
- Dashy dashboard + SearXNG metasearch + history sync API + admin WebUI
- Go services for history/admin APIs, nginx as unified entry
- Browser extensions (Chrome MV3 / Firefox MV2) with 30s batched sync
- Production guide: portal-nginx unified auth reverse proxy + webui4frpc/frp tunnel
- Fully sanitized (no internal IPs/domains/credentials)
2026-09-08 22:25:00 +08:00