Skip to content

Commit 4b6310d

Browse files
committed
docs: align deployment storage guidance
- Document the default named volume and SMTP egress policy in both languages. - Refresh the sitemap maintenance date and content contract.
1 parent 4fca58e commit 4b6310d

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

‎content/en.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export const en: SiteContent = {
239239
},
240240
{
241241
type: 'note',
242-
text: 'There is no data volume by default. Changing the image, running docker compose down or recreating the container starts from an empty database, losing accounts, tasks, mail settings and logs. Read “Data retention and usage boundaries” before long-term use.',
242+
text: 'The named volume webmonitor-data is mounted at /app/data by default. Recreating the container or running docker compose down preserves accounts, tasks, mail settings and logs; only docker compose down -v or deleting the volume removes them. Back up before upgrades as described in “Data retention and usage boundaries”.',
243243
},
244244
{
245245
type: 'link',
@@ -364,7 +364,7 @@ export const en: SiteContent = {
364364
},
365365
{
366366
type: 'paragraph',
367-
text: '**WebMonitor:** open Email settings and choose Add email configuration. Enter a name, SMTP server, SMTP port, sender address, SMTP password and recipient address, and turn on Use SSL if your provider requires it. The password is usually an app-specific password. Choose Test connection and confirm the test email arrives, then create or edit a task and select this configuration under Email configuration. With “Do not send notifications”, the task still collects but sends no mail.',
367+
text: '**WebMonitor:** open Email settings and choose Add email configuration. Enter a name, SMTP server, SMTP port, sender address, SMTP password and recipient address, and turn on Use SSL if your provider requires it. The password is usually an app-specific password. SMTP permits public addresses by default; list an exact internal relay hostname in SMTP_ALLOWED_HOSTS in .env when needed. Choose Test connection and confirm the test email arrives, then create or edit a task and select this configuration under Email configuration. With “Do not send notifications”, the task still collects but sends no mail.',
368368
},
369369
{
370370
type: 'paragraph',
@@ -472,7 +472,7 @@ export const en: SiteContent = {
472472
type: 'code',
473473
title: 'WebMonitor: pull and recreate',
474474
code: 'docker compose pull\ndocker compose up -d --wait',
475-
hint: 'The default SQLite file lives inside the container and is lost when it is recreated. Follow the backup and storage guidance before updating.',
475+
hint: 'The SQLite file lives in the webmonitor-data named volume and survives updates and rollbacks; Alembic upgrades the schema at startup. Back up before updating and verify that an older application version understands the migrated schema before rolling back.',
476476
},
477477
{
478478
type: 'code',
@@ -526,13 +526,13 @@ export const en: SiteContent = {
526526
blocks: [
527527
{
528528
type: 'paragraph',
529-
text: 'Neither project provides automatic backups; the data lives inside the containers, so keep your own backups outside them.',
529+
text: 'Neither project provides automatic backups. WebMonitor uses a persistent named volume by default, while Agent uses temporary memory storage; keep your own backups outside the containers.',
530530
},
531531
{
532532
type: 'table',
533533
head: ['Project', 'Where the data lives', 'When it is lost'],
534534
rows: [
535-
['WebMonitor', 'The SQLite file `/app/data/webmonitor.db` inside the container; no volume by default', 'docker compose down, changing the image or recreating the container starts from an empty database; docker compose restart keeps it'],
535+
['WebMonitor', 'The SQLite file `/app/data/webmonitor.db` in the webmonitor-data named volume', 'Recreating the container or docker compose down keeps it; docker compose down -v or deleting the volume removes it'],
536536
['WebMonitor-Agent', 'PostgreSQL and MinIO use temporary memory storage', 'Stopping, restarting or recreating the postgres or s3 containers loses accounts, monitors, events and page archives; restarting only api does not'],
537537
],
538538
},
@@ -544,7 +544,7 @@ export const en: SiteContent = {
544544
},
545545
{
546546
type: 'note',
547-
text: 'Before serving anyone else, move the data to a persistent volume and set up backups, HTTPS and access control.',
547+
text: 'WebMonitor already uses a persistent named volume by default; add volume backups, HTTPS and access control before serving others. Agent requires separate persistent storage for long-term use.',
548548
},
549549
{
550550
type: 'paragraph',

‎content/zh.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export const zh: SiteContent = {
229229
},
230230
{
231231
type: 'note',
232-
text: '默认没有数据卷。更换镜像、执行 docker compose down 或重建容器,都会从空数据库开始,账户、任务、邮件配置和日志一并丢失。长期使用前先看「数据保留与使用边界」。',
232+
text: '默认把命名卷 webmonitor-data 挂载到 /app/data,重建容器或执行 docker compose down 不会删除账户、任务、邮件配置和日志;只有 docker compose down -v 或显式删除卷才会清空。升级前仍需按「数据保留与使用边界」备份。',
233233
},
234234
{
235235
type: 'link',
@@ -354,7 +354,7 @@ export const zh: SiteContent = {
354354
},
355355
{
356356
type: 'paragraph',
357-
text: '**WebMonitor:** 打开「邮件配置」,点「添加邮件配置」,填写配置名称、SMTP 服务器、SMTP 端口、发件人邮箱、SMTP 密码和接收者邮箱,按邮件服务商的要求勾选「使用 SSL 加密」。密码通常使用邮箱的应用专用密码。点「测试连接」确认能收到测试邮件,再创建或编辑任务,在「邮件配置」里选择这条配置。选「不发送通知」时任务照常采集,只是不发邮件。',
357+
text: '**WebMonitor:** 打开「邮件配置」,点「添加邮件配置」,填写配置名称、SMTP 服务器、SMTP 端口、发件人邮箱、SMTP 密码和接收者邮箱,按邮件服务商的要求勾选「使用 SSL 加密」。密码通常使用邮箱的应用专用密码。SMTP 默认只允许公网地址,内网中继需在 .env 的 SMTP_ALLOWED_HOSTS 中填写精确主机名。点「测试连接」确认能收到测试邮件,再创建或编辑任务,在「邮件配置」里选择这条配置。选「不发送通知」时任务照常采集,只是不发邮件。',
358358
},
359359
{
360360
type: 'paragraph',
@@ -462,7 +462,7 @@ export const zh: SiteContent = {
462462
type: 'code',
463463
title: 'WebMonitor:拉取并重建',
464464
code: 'docker compose pull\ndocker compose up -d --wait',
465-
hint: '默认 SQLite 文件位于容器内,重建容器时会丢失。更新前请按数据保留说明处理备份和存储。',
465+
hint: 'SQLite 文件位于命名卷 webmonitor-data 中,更新或回退容器时会保留;Alembic 会在启动时执行结构升级。更新前仍要备份,回退前核对旧应用是否兼容新结构。',
466466
},
467467
{
468468
type: 'code',
@@ -516,13 +516,13 @@ export const zh: SiteContent = {
516516
blocks: [
517517
{
518518
type: 'paragraph',
519-
text: '两个项目都没有自动备份工具,数据保存在容器内,需要在容器之外自行留存备份。',
519+
text: '两个项目都没有自动备份工具。WebMonitor 默认使用持久命名卷,Agent 默认使用临时内存存储;仍需在容器之外自行留存备份。',
520520
},
521521
{
522522
type: 'table',
523523
head: ['项目', '数据放在哪里', '什么情况下会丢'],
524524
rows: [
525-
['WebMonitor', '容器内的 SQLite 文件 `/app/data/webmonitor.db`,默认没有数据卷', '执行 docker compose down、更换镜像或重建容器时,会从空数据库开始;docker compose restart 不会丢'],
525+
['WebMonitor', '命名卷 webmonitor-data 内的 SQLite 文件 `/app/data/webmonitor.db`', '重建容器或 docker compose down 不会丢;docker compose down -v 或删除卷才会清空'],
526526
['WebMonitor-Agent', 'PostgreSQL 与 MinIO 使用临时内存存储', '停止、重启或重建 postgres、s3 容器会丢失账户、监控、事件和页面存档;只重启 api 不受影响'],
527527
],
528528
},
@@ -534,7 +534,7 @@ export const zh: SiteContent = {
534534
},
535535
{
536536
type: 'note',
537-
text: '对外提供服务前,把数据放到持久卷,并配置备份、HTTPS 与访问控制。',
537+
text: 'WebMonitor 默认命名卷已经提供持久存储;对外提供服务前仍需配置卷备份、HTTPS 与访问控制。Agent 若需长期使用,必须另行配置持久存储。',
538538
},
539539
{
540540
type: 'paragraph',

‎public/sitemap.xml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<xhtml:link rel="alternate" hreflang="zh-CN" href="https://webmonitor.github.io/" />
66
<xhtml:link rel="alternate" hreflang="en" href="https://webmonitor.github.io/en/" />
77
<xhtml:link rel="alternate" hreflang="x-default" href="https://webmonitor.github.io/" />
8-
<lastmod>2026-11-24</lastmod>
8+
<lastmod>2026-11-26</lastmod>
99
<changefreq>monthly</changefreq>
1010
<priority>1.0</priority>
1111
</url>
@@ -14,7 +14,7 @@
1414
<xhtml:link rel="alternate" hreflang="zh-CN" href="https://webmonitor.github.io/" />
1515
<xhtml:link rel="alternate" hreflang="en" href="https://webmonitor.github.io/en/" />
1616
<xhtml:link rel="alternate" hreflang="x-default" href="https://webmonitor.github.io/" />
17-
<lastmod>2026-11-24</lastmod>
17+
<lastmod>2026-11-26</lastmod>
1818
<changefreq>monthly</changefreq>
1919
<priority>0.9</priority>
2020
</url>
@@ -23,7 +23,7 @@
2323
<xhtml:link rel="alternate" hreflang="zh-CN" href="https://webmonitor.github.io/docs/" />
2424
<xhtml:link rel="alternate" hreflang="en" href="https://webmonitor.github.io/en/docs/" />
2525
<xhtml:link rel="alternate" hreflang="x-default" href="https://webmonitor.github.io/docs/" />
26-
<lastmod>2026-11-24</lastmod>
26+
<lastmod>2026-11-26</lastmod>
2727
<changefreq>monthly</changefreq>
2828
<priority>0.8</priority>
2929
</url>
@@ -32,7 +32,7 @@
3232
<xhtml:link rel="alternate" hreflang="zh-CN" href="https://webmonitor.github.io/docs/" />
3333
<xhtml:link rel="alternate" hreflang="en" href="https://webmonitor.github.io/en/docs/" />
3434
<xhtml:link rel="alternate" hreflang="x-default" href="https://webmonitor.github.io/docs/" />
35-
<lastmod>2026-11-24</lastmod>
35+
<lastmod>2026-11-26</lastmod>
3636
<changefreq>monthly</changefreq>
3737
<priority>0.7</priority>
3838
</url>

‎scripts/content.test.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ test('sitemap contains all four localized routes with the same maintenance date'
122122
'https://webmonitor.github.io/en/docs/',
123123
]);
124124
for (const entry of entries) {
125-
assert.ok(entry.includes('<lastmod>2026-11-24</lastmod>'));
125+
assert.ok(entry.includes('<lastmod>2026-11-26</lastmod>'));
126126
assert.ok(entry.includes('hreflang="zh-CN"'));
127127
assert.ok(entry.includes('hreflang="en"'));
128128
assert.ok(entry.includes('hreflang="x-default"'));

0 commit comments

Comments
 (0)