Skip to content

PasteFerry (隔空贴): clipboard and file sync across macOS, Windows and Linux. Direct-first, end-to-end encrypted. Optional official access: no server to host. Independent self-hosting remains available.

docs(site): 新增快速开始与 Tailscale 跨网络教程,突出不需要公网 IP 的部署方式

baiyuze02d0ad649444
diff --git a/README.md b/README.md
index 0fc4f87..2821cf3 100644
--- a/README.md
+++ b/README.md
@@ -65,20 +65,25 @@ With CopySync you pair two computers once. After that, copy on one and paste on
## Get started
-You need **the app on each computer** and **a server both can reach**.
+New here? The **[quick start](https://baiyuze.github.io/copysync/en/start/)** walks through it with screenshots. You need **the app on each computer** and **a server both can reach**. It doesn't need a public IP: most people run it on an always-on computer at home.
-**1. Run the server.**
+**1. Run the server.** Pick what fits:
-- *Same LAN* (home or office): run it on any always-on Windows, Mac or Linux computer. Download the package, run one install script, done. Step-by-step guide: **[Run the server on your LAN](https://baiyuze.github.io/copysync/en/server/)**.
-- *Across the internet*: a Linux machine with a public IP, as root:
+| Your situation | What to do | Public IP |
+|---|---|:-:|
+| Both computers on one network (home or office) | Run the server on any always-on Windows, Mac or Linux computer there with one install script. **[LAN guide](https://baiyuze.github.io/copysync/en/server/)** | Not needed |
+| One at home, one at the office | Same server at home, plus [Tailscale](https://tailscale.com) on every computer; install the server on its Tailscale address. **[Tailscale guide](https://baiyuze.github.io/copysync/en/tailscale/)** | Not needed |
+| You have a server with a public IP | Linux, as root; see below | Needed |
- ```bash
- curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-linux-amd64.tar.gz
- tar xzf copysync-server-linux-amd64.tar.gz && cd copysync-server-linux-amd64
- sudo ./install.sh <public IP of the server>
- ```
+On a server with a public IP:
- Open TCP 8787, UDP 3478 and UDP 32768–60999. Docker and all options: [server deployment guide](server/deploy/README.md).
+```bash
+curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-linux-amd64.tar.gz
+tar xzf copysync-server-linux-amd64.tar.gz && cd copysync-server-linux-amd64
+sudo ./install.sh <public IP of the server>
+```
+
+Open TCP 8787, UDP 3478 and UDP 32768–60999. Docker and all options: [server deployment guide](server/deploy/README.md).
**2. Install the app** on each computer: [CopySync.dmg](https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg) for macOS 13+, [CopySync-Setup.exe](https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe) for Windows 10/11 ([portable zip](https://github.com/baiyuze/copysync/releases/latest/download/CopySync-windows-x64.zip)). The builds aren't notarized or code-signed yet: on Mac, allow it once under **System Settings → Privacy & Security → Open Anyway**; on Windows, click **More info → Run anyway**. Then click **Turn on background sync** and enter `ws://<server address>:8787/signal` under **Settings → Signaling server**.
@@ -95,7 +100,8 @@ You need **the app on each computer** and **a server both can reach**.
- [How it works](guide/how-it-works.md): architecture, NAT traversal, security model, fallbacks, lessons learned
- [Troubleshooting](guide/troubleshooting.md) and known limitations
-- [Server deployment](server/deploy/README.md) · [LAN guide with screenshots](https://baiyuze.github.io/copysync/en/server/)
+- [Quick start](https://baiyuze.github.io/copysync/en/start/) · [LAN guide](https://baiyuze.github.io/copysync/en/server/) · [Across networks with Tailscale](https://baiyuze.github.io/copysync/en/tailscale/), all with screenshots
+- [Server deployment](server/deploy/README.md): Windows, macOS, Linux, Docker, Tailscale
- [Building from source](guide/building.md)
- Design notes (Chinese): [NAT traversal on multi-uplink networks](design/nat-traversal.md), [Windows client](design/windows-client.md)
- [Changelog](CHANGELOG.md)
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 87a9e6b..de12207 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -65,20 +65,25 @@ CopySync 的做法是:两台电脑配对一次,之后在一台上复制,
## 开始使用
-需要**每台电脑装一个 App**,再加**一台两端都能访问到的服务器**。
+第一次用?跟着**[快速开始](https://baiyuze.github.io/copysync/start/)**一步步来,有截图。需要**每台电脑装一个 App**,再加**一台两端都能访问到的服务器**。服务器不需要公网 IP:大多数人放在家里一台常开的电脑上就行。
-**1. 部署服务器。**
+**1. 部署服务器。**按你的情况选一种:
-- *同一个局域网*(家里或办公室):放在任意一台常开的 Windows、Mac 或 Linux 电脑上,下载后运行一个安装脚本即可。图文教程:**[在局域网里部署服务器](https://baiyuze.github.io/copysync/server/)**。
-- *跨公网*:一台有公网 IP 的 Linux 服务器,需要 root:
+| 你的情况 | 做法 | 公网 IP |
+|---|---|:-:|
+| 两台电脑在同一个网络里(家里或办公室) | 服务器放在其中一台常开的 Windows、Mac 或 Linux 电脑上,运行一个安装脚本。**[局域网部署教程](https://baiyuze.github.io/copysync/server/)** | 不需要 |
+| 一台在家,一台在公司 | 服务器照样放在家里,每台电脑装上 [Tailscale](https://tailscale.com),服务器用它的 Tailscale 地址安装。**[Tailscale 教程](https://baiyuze.github.io/copysync/tailscale/)** | 不需要 |
+| 有一台公网服务器 | Linux,需要 root,见下面 | 需要 |
- ```bash
- curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-linux-amd64.tar.gz
- tar xzf copysync-server-linux-amd64.tar.gz && cd copysync-server-linux-amd64
- sudo ./install.sh <服务器公网IP>
- ```
+有公网 IP 的服务器:
- 放行 TCP 8787、UDP 3478 与 UDP 32768–60999。Docker 部署与全部参数见[服务器部署说明](server/deploy/README.md)。国内云服务器的域名没有备案时,客户端里请直接填 IP。
+```bash
+curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-linux-amd64.tar.gz
+tar xzf copysync-server-linux-amd64.tar.gz && cd copysync-server-linux-amd64
+sudo ./install.sh <服务器公网IP>
+```
+
+放行 TCP 8787、UDP 3478 与 UDP 32768–60999。Docker 部署与全部参数见[服务器部署说明](server/deploy/README.md)。国内云服务器的域名没有备案时,客户端里请直接填 IP。
**2. 在每台电脑上安装 App**:macOS 13 以上用 [CopySync.dmg](https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg),Windows 10/11 用 [CopySync-Setup.exe](https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe)(也有[便携版](https://github.com/baiyuze/copysync/releases/latest/download/CopySync-windows-x64.zip))。还没有公证和代码签名:Mac 上第一次打开时到 **系统设置 → 隐私与安全性** 点 **仍要打开**;Windows 上点 **更多信息 → 仍要运行**。然后点 **启用后台同步**,在 **设置 → 信令服务器地址** 填入 `ws://<服务器地址>:8787/signal`。
@@ -95,7 +100,8 @@ CopySync 的做法是:两台电脑配对一次,之后在一台上复制,
- [工作原理](guide/how-it-works.zh-CN.md):架构、NAT 打洞、安全模型、兜底、踩过的坑
- [排障](guide/troubleshooting.zh-CN.md)与已知限制
-- [服务器部署说明](server/deploy/README.md) · [局域网部署图文教程](https://baiyuze.github.io/copysync/server/)
+- [快速开始](https://baiyuze.github.io/copysync/start/) · [局域网部署](https://baiyuze.github.io/copysync/server/) · [用 Tailscale 跨网络使用](https://baiyuze.github.io/copysync/tailscale/),都是图文教程
+- [服务器部署说明](server/deploy/README.md):Windows、macOS、Linux、Docker、Tailscale
- [从源码构建](guide/building.zh-CN.md)
- 技术方案:[多出口网络的 NAT 打洞](design/nat-traversal.md)、[Windows 客户端](design/windows-client.md)
- [更新记录](CHANGELOG.md)
diff --git a/docs/assets/screenshots/en/pairing-dark.png b/docs/assets/screenshots/en/pairing-dark.png
new file mode 100644
index 0000000..8ae36d1
Binary files /dev/null and b/docs/assets/screenshots/en/pairing-dark.png differ
diff --git a/docs/assets/screenshots/en/settings-tailscale-dark.png b/docs/assets/screenshots/en/settings-tailscale-dark.png
new file mode 100644
index 0000000..8b53a0c
Binary files /dev/null and b/docs/assets/screenshots/en/settings-tailscale-dark.png differ
diff --git a/docs/assets/screenshots/en/welcome-dark.png b/docs/assets/screenshots/en/welcome-dark.png
new file mode 100644
index 0000000..fce66a1
Binary files /dev/null and b/docs/assets/screenshots/en/welcome-dark.png differ
diff --git a/docs/assets/screenshots/ja/pairing-dark.png b/docs/assets/screenshots/ja/pairing-dark.png
new file mode 100644
index 0000000..e78af18
Binary files /dev/null and b/docs/assets/screenshots/ja/pairing-dark.png differ
diff --git a/docs/assets/screenshots/ja/settings-tailscale-dark.png b/docs/assets/screenshots/ja/settings-tailscale-dark.png
new file mode 100644
index 0000000..dc01625
Binary files /dev/null and b/docs/assets/screenshots/ja/settings-tailscale-dark.png differ
diff --git a/docs/assets/screenshots/ja/welcome-dark.png b/docs/assets/screenshots/ja/welcome-dark.png
new file mode 100644
index 0000000..731a29d
Binary files /dev/null and b/docs/assets/screenshots/ja/welcome-dark.png differ
diff --git a/docs/assets/screenshots/pairing-dark.png b/docs/assets/screenshots/pairing-dark.png
new file mode 100644
index 0000000..802310d
Binary files /dev/null and b/docs/assets/screenshots/pairing-dark.png differ
diff --git a/docs/assets/screenshots/settings-tailscale-dark.png b/docs/assets/screenshots/settings-tailscale-dark.png
new file mode 100644
index 0000000..9266c26
Binary files /dev/null and b/docs/assets/screenshots/settings-tailscale-dark.png differ
diff --git a/docs/assets/screenshots/welcome-dark.png b/docs/assets/screenshots/welcome-dark.png
new file mode 100644
index 0000000..49da71c
Binary files /dev/null and b/docs/assets/screenshots/welcome-dark.png differ
diff --git a/docs/assets/site.css b/docs/assets/site.css
index c22861a..6230fbe 100644
--- a/docs/assets/site.css
+++ b/docs/assets/site.css
@@ -183,13 +183,20 @@ caption.skip {
text-decoration: none;
}
-/* 窄屏只留 GitHub 与语言切换,免得挤成两行 */
+/* 窄屏只留快速开始、部署服务器与语言切换,免得挤成两行 */
@media (max-width: 46rem) {
.bar nav .wide {
display: none;
}
}
+/* 手机上语言切换也收起来,页脚里还有 */
+@media (max-width: 30rem) {
+ .bar nav a[data-lang] {
+ display: none;
+ }
+}
+
/* ── 通用排版 ── */
.display {
@@ -344,6 +351,14 @@ code {
color: var(--dim);
}
+/* 下载按钮下面通往快速开始的一行 */
+.start-link {
+ display: inline-block;
+ margin-top: 1.1rem;
+ font-size: 0.95rem;
+ font-weight: 500;
+}
+
/* 手机上两个下载按钮各占一行、等宽,拇指好点 */
@media (max-width: 30rem) {
.cta .button {
@@ -1099,6 +1114,34 @@ td {
margin-top: 1.5rem;
}
+/* 服务器一栏:先是不需要公网 IP 的两种做法,再是云服务器 */
+.install .stack {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.6rem;
+ margin-top: 1rem;
+}
+
+.install .stack .button {
+ margin-top: 0;
+ min-height: 2.6rem;
+ padding: 0 1.1rem;
+ font-size: 0.92rem;
+}
+
+.install h4 {
+ margin: 2rem 0 0;
+ padding-top: 1.5rem;
+ border-top: 1px solid var(--rule);
+ font-size: 1rem;
+ font-weight: 650;
+ scroll-margin-top: 5rem;
+}
+
+.install h4 + .small {
+ margin-top: 0.4rem;
+}
+
.install table {
margin-top: 0.75rem;
font-size: 0.88rem;
@@ -1932,6 +1975,354 @@ td {
}
}
+/* ── 三种部署方式的卡片:首页与快速开始共用 ── */
+
+.paths {
+ display: grid;
+ gap: 1rem;
+ margin: clamp(2.5rem, 6vw, 4rem) auto 0;
+ max-width: 70rem;
+}
+
+@media (min-width: 60rem) {
+ .paths {
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: 1.25rem;
+ }
+}
+
+.path {
+ display: flex;
+ flex-direction: column;
+ padding: 1.5rem 1.5rem 1.4rem;
+ border-radius: 18px;
+ background: var(--surface);
+ box-shadow: inset 0 0 0 1px var(--rule);
+ color: var(--ink);
+ transition: box-shadow 0.15s, background-color 0.15s;
+}
+
+.path:hover {
+ text-decoration: none;
+ background: #202024;
+ box-shadow: inset 0 0 0 1px var(--rule-strong);
+}
+
+.path svg {
+ display: block;
+ width: 100%;
+ max-width: 15rem;
+ height: auto;
+ margin: 0 auto 1.4rem;
+ overflow: visible;
+}
+
+.path-tag {
+ align-self: flex-start;
+ padding: 0.1rem 0.6rem;
+ border-radius: 999px;
+ background: var(--blue-wash);
+ color: var(--blue-hi);
+ font-size: 0.75rem;
+ font-weight: 600;
+}
+
+/* 需要公网 IP 的那一种不用蓝色,免得三个看起来一样推荐 */
+.path:last-child .path-tag {
+ background: var(--surface-2);
+ color: var(--dim);
+}
+
+.path-when {
+ margin-top: 0.9rem;
+ color: var(--dim);
+ font-size: 0.85rem;
+}
+
+.path h3 {
+ margin-top: 0.15rem;
+ font-size: 1.2rem;
+}
+
+.path p {
+ flex: 1;
+ margin: 0.55rem 0 0;
+ color: var(--dim);
+ font-size: 0.93rem;
+ text-wrap: pretty;
+}
+
+.path-go {
+ margin-top: 1.1rem;
+ color: var(--blue-hi);
+ font-size: 0.92rem;
+ font-weight: 600;
+}
+
+/* 卡片插图:设备轮廓、网络边界、信令的点线、内容走的蓝线 */
+.p-dev {
+ fill: var(--surface-2);
+ stroke: var(--dim);
+ stroke-width: 1.5;
+ stroke-linecap: round;
+}
+
+.p-net {
+ fill: none;
+ stroke: var(--rule-strong);
+ stroke-width: 1.5;
+ stroke-dasharray: 4 4;
+}
+
+.p-ts {
+ fill: var(--blue-wash);
+ stroke: var(--blue);
+ stroke-width: 1.5;
+ stroke-dasharray: 6 5;
+ opacity: 0.85;
+}
+
+.p-sig {
+ fill: none;
+ stroke: var(--faint);
+ stroke-width: 1.5;
+ stroke-dasharray: 1.5 4;
+ stroke-linecap: round;
+}
+
+.p-data {
+ fill: none;
+ stroke: var(--blue);
+ stroke-width: 2.5;
+ stroke-linecap: round;
+}
+
+/* ── 教程页面 ── */
+
+/* 步骤的序号,放在标题上面 */
+.eyebrow {
+ margin: 0 0 0.9rem;
+ text-align: center;
+ color: var(--blue-hi);
+ font-size: 0.9rem;
+ font-weight: 600;
+ letter-spacing: 0.02em;
+}
+
+/* 首屏引言下面的一句提示 */
+.hero-aside {
+ margin: 1.1rem auto 0;
+ max-width: var(--text);
+ color: var(--ink-2);
+ font-size: 0.98rem;
+}
+
+.qs-grid {
+ margin: clamp(2.5rem, 6vw, 4rem) auto 0;
+ max-width: 70rem;
+}
+
+.qs-grid > .shot,
+.os-figures .shot {
+ margin: 0;
+}
+
+/* 宽屏上截图跟着步骤走,读到下面也看得见 */
+@media (min-width: 62rem) {
+ .qs-grid > .shot {
+ position: sticky;
+ top: 4.5rem;
+ margin-top: -1.5rem;
+ }
+}
+
+.qs-app h3 {
+ display: flex;
+ align-items: center;
+ gap: 0.6rem;
+ margin-bottom: 1.1rem;
+ font-size: 1.15rem;
+}
+
+.qs-app h3 svg {
+ width: 22px;
+ height: 22px;
+ color: var(--dim);
+}
+
+.qs-app + .qs-app {
+ margin-top: 2rem;
+ padding-top: 2rem;
+ border-top: 1px solid var(--rule);
+}
+
+.qs-app .button,
+.qs-grid .os-steps > .button {
+ margin: 1.4rem 0 0 2.6rem;
+}
+
+.qs-verify {
+ margin-top: 2rem;
+}
+
+.qs-verify img {
+ max-width: 26rem;
+ margin: 0;
+}
+
+/* 局域网教程末尾:离开家也想同步,引到 Tailscale 教程 */
+.callout {
+ display: grid;
+ gap: 1.75rem;
+ align-items: center;
+ max-width: 60rem;
+ margin: 0 auto;
+ padding: clamp(1.75rem, 4vw, 2.75rem);
+ border-radius: 22px;
+ background: var(--surface);
+ box-shadow: inset 0 0 0 1px var(--rule);
+}
+
+.callout svg {
+ display: block;
+ width: 100%;
+ max-width: 16rem;
+ height: auto;
+ margin: 0 auto;
+ overflow: visible;
+}
+
+.callout h2 {
+ margin: 0;
+ font-family: var(--display);
+ font-size: clamp(1.5rem, 3.4vw, 2rem);
+ line-height: 1.2;
+ letter-spacing: -0.01em;
+}
+
+.callout p {
+ margin: 0.75rem 0 0;
+ color: var(--dim);
+ text-wrap: pretty;
+}
+
+.callout .button {
+ margin-top: 1.4rem;
+}
+
+@media (min-width: 52rem) {
+ .callout {
+ grid-template-columns: 15rem minmax(0, 1fr);
+ gap: 2.75rem;
+ }
+}
+
+/* Tailscale 示意图里的虚拟局域网边界 */
+.d-ts {
+ fill: rgba(61, 139, 234, 0.05);
+ stroke: var(--blue);
+ stroke-width: 1.5;
+ stroke-dasharray: 8 7;
+ opacity: 0.8;
+}
+
+.d-ts-label {
+ fill: var(--blue-hi);
+ font: 14px var(--sans);
+}
+
+/* Tailscale 管理后台设备列表的示意 */
+.browser.machines {
+ max-width: none;
+ margin: 0;
+}
+
+.machines table {
+ font-size: 0.85rem;
+}
+
+.machines th,
+.machines td {
+ padding: 0.7rem 1rem;
+ border-bottom-color: #222226;
+}
+
+.machines tbody tr:last-child td {
+ border-bottom: 0;
+}
+
+.machines td:nth-child(2) {
+ font-family: var(--mono);
+ font-size: 0.8rem;
+}
+
+.machines tr.hl td {
+ background: var(--blue-wash);
+ color: var(--ink);
+}
+
+.machines tr.hl td:nth-child(2) {
+ color: var(--blue-hi);
+ font-weight: 600;
+}
+
+.machines em {
+ margin-left: 0.4rem;
+ padding: 0.05rem 0.45rem;
+ border-radius: 999px;
+ box-shadow: inset 0 0 0 1px rgba(61, 139, 234, 0.55);
+ color: var(--blue-hi);
+ font-style: normal;
+ font-size: 0.72rem;
+}
+
+.server-notes {
+ max-width: 70rem;
+ margin: 3rem auto 0;
+ padding-top: 2rem;
+ border-top: 1px solid var(--rule);
+}
+
+.server-notes h3 {
+ margin-bottom: 1.1rem;
+}
+
+@media (min-width: 62rem) {
+ .server-notes .points {
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: 2rem;
+ }
+}
+
+.address-term {
+ max-width: 30rem;
+ margin: clamp(2rem, 5vw, 3rem) auto 0;
+}
+
+/* Linux 上已经装过的,改配置里的地址 */
+.switch {
+ margin-top: 2.25rem;
+ padding-top: 1.75rem;
+ border-top: 1px solid var(--rule);
+ color: var(--dim);
+ font-size: 0.95rem;
+}
+
+.switch p {
+ margin: 0 0 0.5rem;
+}
+
+.switch strong {
+ color: var(--ink);
+}
+
+@media (max-width: 34rem) {
+ .qs-app .button,
+ .qs-grid .os-steps > .button {
+ margin-left: 0;
+ }
+}
+
/* ── 404 ── */
.lost {
diff --git a/docs/design/nat-traversal.html b/docs/design/nat-traversal.html
index 462cf3f..ce23ca6 100644
--- a/docs/design/nat-traversal.html
+++ b/docs/design/nat-traversal.html
@@ -16,6 +16,7 @@
<div class="wrap">
<a class="brand" href="../" aria-label="CopySync 首页"><img src="../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
<nav aria-label="页面导航">
+ <a href="../start/">快速开始</a>
<a href="../server/">部署服务器</a>
<a class="wide" href="https://github.com/baiyuze/copysync/blob/main/design/nat-traversal.md">在 GitHub 上查看</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
diff --git a/docs/design/windows-client.html b/docs/design/windows-client.html
index 73ff237..925f56f 100644
--- a/docs/design/windows-client.html
+++ b/docs/design/windows-client.html
@@ -16,6 +16,7 @@
<div class="wrap">
<a class="brand" href="../" aria-label="CopySync 首页"><img src="../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
<nav aria-label="页面导航">
+ <a href="../start/">快速开始</a>
<a href="../server/">部署服务器</a>
<a class="wide" href="https://github.com/baiyuze/copysync/blob/main/design/windows-client.md">在 GitHub 上查看</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
diff --git a/docs/en/index.html b/docs/en/index.html
index b85f970..8525f48 100644
--- a/docs/en/index.html
+++ b/docs/en/index.html
@@ -107,7 +107,15 @@
"name": "Do I need my own server?",
"acceptedAnswer": {
"@type": "Answer",
- "text": "Yes. There is no public server, so nobody's data passes through anyone else's machine. On a LAN, run the server on any always-on Windows, Mac or Linux computer; see the LAN guide. Across networks you need a machine with a public IP; the smallest cloud VM is enough."
+ "text": "Yes. There is no public server, so nobody's data passes through anyone else's machine. But it doesn't need a public IP: an always-on Windows, Mac or Linux computer at home will do; see the LAN guide. Computers on other networks reach it through Tailscale; see the Tailscale guide. If you have a public IP, a cloud server works too, and the smallest VM is enough."
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "No public IP at home. Can I sync between home and the office?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "Yes. Run the server on an always-on computer at home, install Tailscale on your home and office computers under the same account, and use the server's Tailscale address. They behave as if they shared a LAN, and what you copy still goes directly between the two computers. See Use it across networks with Tailscale."
}
},
{
@@ -155,8 +163,8 @@
<div class="wrap">
<a class="brand" href="./" aria-label="CopySync home"><img src="../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
<nav aria-label="Page">
+ <a href="start/">Quick start</a>
<a class="wide" href="#how">How it works</a>
- <a class="wide" href="#install">Install</a>
<a class="wide" href="#faq">FAQ</a>
<a href="server/">Self-host</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
@@ -176,6 +184,7 @@
<a class="button quiet" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Windows</a>
</div>
<p class="note">Version 1.3.3, free and open source. macOS 13 or later, Intel and Apple silicon; Windows 10 and 11.</p>
+ <a class="start-link" href="start/">New here? Set it up in three steps →</a>
<div class="stage" data-play role="img" aria-label="Demo: Command C on a MacBook turns a file into a sheet that flies over a direct connection to a Windows laptop, where Ctrl V pastes it">
<figure class="device mac">
<div class="screen"><div class="desk">
@@ -203,6 +212,40 @@
</div>
</section>
+ <section class="section" id="deploy" aria-labelledby="deploy-title">
+ <div class="wrap">
+ <h2 id="deploy-title">No public IP? No problem</h2>
+ <p class="intro">Your computers find each other through a server, but it doesn't have to be on the public internet. Most home connections have no public IP, and an always-on computer at home works fine.</p>
+ <div class="paths">
+ <a class="path" href="server/">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><rect class="p-dev" x="98" y="16" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="31" width="44" height="12" rx="3"/><path class="p-sig" d="M58 66V30h40M182 66V30h-40"/><path class="p-data" d="M82 82h76"/><rect class="p-dev" x="39" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M34 95h48"/><rect class="p-dev" x="163" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M158 95h48"/></svg>
+ <span class="path-tag">No public IP needed</span>
+ <span class="path-when">Both computers on one network</span>
+ <h3>On your LAN</h3>
+ <p>At home or in the office, on the same Wi‑Fi or wired network. Run the server on one of your always-on Windows, Mac or Linux computers with a single script.</p>
+ <span class="path-go">LAN guide →</span>
+ </a>
+ <a class="path" href="tailscale/">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><rect class="p-dev" x="39" y="20" width="44" height="12" rx="3"/><rect class="p-dev" x="39" y="35" width="44" height="12" rx="3"/><path class="p-sig" d="M180 64V54H61v-7M61 64V54"/><path class="p-data" d="M85 80h71"/><rect class="p-dev" x="42" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M37 93h48"/><rect class="p-dev" x="161" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M156 93h48"/></svg>
+ <span class="path-tag">No public IP needed</span>
+ <span class="path-when">One at home, one at the office</span>
+ <h3>LAN + Tailscale</h3>
+ <p>The server stays at home. Install Tailscale on each computer and they act as if they shared a LAN, so your laptop keeps syncing wherever you take it.</p>
+ <span class="path-go">Tailscale guide →</span>
+ </a>
+ <a class="path" href="#cloud">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/></svg>
+ <span class="path-tag">Needs a public IP</span>
+ <span class="path-when">You have a public server</span>
+ <h3>Cloud server</h3>
+ <p>A Linux VM with a public IP; the smallest one is enough. Every computer connects to it directly, with nothing else to install.</p>
+ <span class="path-go">Setup steps →</span>
+ </a>
+ </div>
+ <p class="note">Not sure which? Follow the <a href="start/">quick start</a>.</p>
+ </div>
+ </section>
+
<section class="section" aria-labelledby="history-title">
<div class="wrap">
<h2 id="history-title">Everything you copied, on every computer</h2>
@@ -373,7 +416,7 @@
<section class="section" id="install" aria-labelledby="install-title">
<div class="wrap">
<h2 id="install-title">Install</h2>
- <p class="intro">Install the app on each computer, and set up a server both of them can reach. If both share a LAN, the server can run on one of your Windows, Mac or Linux computers; see the <a href="server/">LAN guide</a>.</p>
+ <p class="intro">Install the app on each computer and set up a server. No public IP needed: run the server on an always-on computer at home, use it directly on your LAN, and add Tailscale for computers elsewhere. First time? Follow the <a href="start/">quick start</a>.</p>
<div class="install">
<div>
<h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>Mac</h3>
@@ -396,7 +439,13 @@
</div>
<div>
<h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>Server</h3>
- <p class="small">To use it across networks: a Linux server with a public IP, as root. On ARM, replace <code>amd64</code> with <code>arm64</code>.</p>
+ <p class="small"><strong>No public IP needed.</strong> Run the server on an always-on Windows, Mac or Linux computer at home or in the office with one script. Computers on other networks reach it through Tailscale.</p>
+ <div class="stack">
+ <a class="button" href="server/">LAN setup guide</a>
+ <a class="button quiet" href="tailscale/">Across networks with Tailscale</a>
+ </div>
+ <h4 id="cloud">On a server with a public IP</h4>
+ <p class="small">A Linux server with a public IP, as root. On ARM, replace <code>amd64</code> with <code>arm64</code>.</p>
<div class="code">
<button class="copy" type="button" data-done="Copied">Copy</button>
<pre><code>curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-linux-amd64.tar.gz
@@ -414,7 +463,6 @@ sudo ./install.sh YOUR_PUBLIC_IP</code></pre>
</tbody>
</table>
<p class="small">Docker works too; see the <a href="https://github.com/baiyuze/copysync/blob/main/server/deploy/README.md">server deployment guide</a>.</p>
- <a class="button quiet" href="server/">LAN setup guide</a>
</div>
</div>
<p class="pairing"><strong>Pairing:</strong> on one computer, choose Devices → Add device to show a 6-character code; enter it on the other, and confirm once both screens show the same two fingerprints. Mac with Windows, or two Windows PCs, works the same way.</p>
@@ -469,7 +517,11 @@ sudo ./install.sh YOUR_PUBLIC_IP</code></pre>
</details>
<details>
<summary>Do I need my own server?</summary>
- <div class="answer"><p>Yes. There is no public server, so nobody's data passes through anyone else's machine. On a LAN, run the server on any always-on Windows, Mac or Linux computer; see the <a href="server/">LAN guide</a>. Across networks you need a machine with a public IP; the smallest cloud VM is enough.</p></div>
+ <div class="answer"><p>Yes. There is no public server, so nobody's data passes through anyone else's machine. But it doesn't need a public IP: an always-on Windows, Mac or Linux computer at home will do; see the <a href="server/">LAN guide</a>. Computers on other networks reach it through Tailscale; see the <a href="tailscale/">Tailscale guide</a>. If you have a public IP, a cloud server works too, and the smallest VM is enough.</p></div>
+ </details>
+ <details>
+ <summary>No public IP at home. Can I sync between home and the office?</summary>
+ <div class="answer"><p>Yes. Run the server on an always-on computer at home, install Tailscale on your home and office computers under the same account, and use the server's Tailscale address. They behave as if they shared a LAN, and what you copy still goes directly between the two computers. See <a href="tailscale/">Use it across networks with Tailscale</a>.</p></div>
</details>
<details>
<summary>Windows? iPhone?</summary>
@@ -499,6 +551,7 @@ sudo ./install.sh YOUR_PUBLIC_IP</code></pre>
<a class="button quiet" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Windows</a>
</div>
<p class="note">Version 1.3.3, free and open source. macOS 13 or later, Intel and Apple silicon; Windows 10 and 11.</p>
+ <a class="start-link" href="start/">New here? Set it up in three steps →</a>
<a class="source" href="https://github.com/baiyuze/copysync">View the source on GitHub</a>
</div>
</section>
diff --git a/docs/en/server/index.html b/docs/en/server/index.html
index caa5027..eb4e6ac 100644
--- a/docs/en/server/index.html
+++ b/docs/en/server/index.html
@@ -30,8 +30,9 @@
<div class="wrap">
<a class="brand" href="../../en/" aria-label="CopySync home"><img src="../../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
<nav aria-label="Page">
+ <a href="../../en/start/">Quick start</a>
<a class="wide" href="../../en/#how">How it works</a>
- <a class="wide" href="../../en/#install">Install</a>
+ <a class="wide" href="../../en/#faq">FAQ</a>
<a href="./" aria-current="page">Self-host</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
<a href="../../server/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
@@ -46,11 +47,13 @@
<p class="crumb"><a href="../../en/">CopySync</a> / Self-host</p>
<h1 class="display">Run the server on your LAN</h1>
<p class="lede">If your computers are on the same home or office network, you don't need a cloud server. Pick a computer that stays on, download and run one script, then enter the address it prints into CopySync on each computer.</p>
+ <p class="hero-aside">Not on the same network, and no public IP? See <a href="../../en/tailscale/">Use it across networks with Tailscale</a>.</p>
<ol class="guide-toc">
<li><a href="#prepare">Before you start</a></li>
<li><a href="#install">Install</a></li>
<li><a href="#check">Check</a></li>
<li><a href="#clients">Set up the apps</a></li>
+ <li><a href="#away">Away from home</a></li>
<li><a href="#faq">Questions</a></li>
</ol>
</div>
@@ -106,7 +109,7 @@
<div><dt>A computer that stays on</dt><dd>Windows 10 or 11, macOS 13 or later, or any Linux, including one of the two computers you sync. Sync pauses while it's off or asleep and resumes when it wakes. A NAS, home router or Mac mini is ideal; the server uses about 15 MB of RAM.</dd></div>
<div><dt>A fixed address</dt><dd>Reserve an address for it in your router's DHCP settings (often called DHCP reservation or static lease). Otherwise, when the router hands out a new address, every computer has to be updated.</dd></div>
<div><dt>The same network</dt><dd>Devices just need to be on the same Wi‑Fi or wired network. Guest networks and Wi‑Fi with client (AP) isolation block devices from reaching each other; use another network or turn isolation off.</dd></div>
- <div><dt>No sync away from it</dt><dd>The server is only reachable on your LAN, so a laptop taken elsewhere catches up when it's back. To sync from anywhere you need a server with a public IP; see Install on the home page.</dd></div>
+ <div><dt>Syncing away from it</dt><dd>The server is only reachable on your LAN. To keep a laptop syncing when you take it out, install Tailscale on each computer; no public IP needed. See the <a href="../../en/tailscale/">Tailscale guide</a>.</dd></div>
</dl>
</div>
</section>
@@ -327,7 +330,20 @@ Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768
<figure class="shot">
<img src="../../assets/screenshots/en/settings-lan-dark.png" width="2112" height="1472" loading="lazy" alt="CopySync Settings: the signaling server is ws://192.168.1.20:8787/signal and the connection status shows Connected">
</figure>
- <p class="note">Haven't installed the app yet? See <a href="../../en/#install">Install</a> on the home page.</p>
+ <p class="note">Haven't installed the app yet? See the <a href="../../en/start/">quick start</a>.</p>
+ </div>
+ </section>
+
+ <section class="section" id="away" aria-labelledby="away-title">
+ <div class="wrap">
+ <div class="callout">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><rect class="p-dev" x="39" y="20" width="44" height="12" rx="3"/><rect class="p-dev" x="39" y="35" width="44" height="12" rx="3"/><path class="p-sig" d="M180 64V54H61v-7M61 64V54"/><path class="p-data" d="M85 80h71"/><rect class="p-dev" x="42" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M37 93h48"/><rect class="p-dev" x="161" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M156 93h48"/></svg>
+ <div>
+ <h2 id="away-title">Want to sync away from home?</h2>
+ <p>Install Tailscale on each computer and run the server on its Tailscale address. From the office or anywhere else, your computers reach the server at home as if they were on the same LAN. No public IP, no router settings.</p>
+ <a class="button" href="../../en/tailscale/">Use it across networks with Tailscale</a>
+ </div>
+ </div>
</div>
</section>
@@ -349,7 +365,7 @@ Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768
</details>
<details>
<summary>Does it sync away from the LAN?</summary>
- <div class="answer"><p>No, the server is only reachable on your LAN. To sync from anywhere, deploy the server on a machine with a public IP (steps under Install on the home page), or join your devices with a mesh VPN such as Tailscale or ZeroTier and enter the server's address on that network.</p></div>
+ <div class="answer"><p>Yes, with Tailscale: install it on each computer under the same account, install the server with its Tailscale address and enter that address in the apps. No public IP needed. See <a href="../../en/tailscale/">Use it across networks with Tailscale</a>.</p><p>If you have a public IP, you can also run the server in the cloud; see the <a href="../../en/#cloud">steps on the home page</a>.</p></div>
</details>
<details>
<summary>A cloud server in mainland China works by IP but not by domain</summary>
diff --git a/docs/en/start/index.html b/docs/en/start/index.html
new file mode 100644
index 0000000..0bfb84c
--- /dev/null
+++ b/docs/en/start/index.html
@@ -0,0 +1,195 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Quick start: set up CopySync in three steps</title>
+ <meta name="description" content="New to CopySync? Install the app on each computer, pick a way to run the server (on your LAN, with Tailscale, or in the cloud), enter its address and pair, then copy and paste between Mac and Windows. No public IP needed.">
+ <link rel="canonical" href="https://baiyuze.github.io/copysync/en/start/">
+ <link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/start/">
+ <link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/start/">
+ <link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/start/">
+ <meta name="theme-color" content="#141416">
+ <meta property="og:type" content="article">
+ <meta property="og:site_name" content="CopySync">
+ <meta property="og:title" content="Quick start: set up CopySync in three steps">
+ <meta property="og:description" content="New to CopySync? Install the app on each computer, pick a way to run the server (on your LAN, with Tailscale, or in the cloud), enter its address and pair, then copy and paste between Mac and Windows. No public IP needed.">
+ <meta property="og:url" content="https://baiyuze.github.io/copysync/en/start/">
+ <meta property="og:image" content="https://baiyuze.github.io/copysync/assets/og-en.png">
+ <meta property="og:locale" content="en_US">
+ <meta name="twitter:card" content="summary_large_image">
+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">
+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">
+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">
+ <link rel="stylesheet" href="../../assets/site.css">
+</head>
+<body>
+ <a class="skip" href="#main">Skip to content</a>
+
+ <header class="bar">
+ <div class="wrap">
+ <a class="brand" href="../../en/" aria-label="CopySync home"><img src="../../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
+ <nav aria-label="Page">
+ <a href="./" aria-current="page">Quick start</a>
+ <a class="wide" href="../../en/#how">How it works</a>
+ <a class="wide" href="../../en/#faq">FAQ</a>
+ <a href="../../en/server/">Self-host</a>
+ <a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
+ <a href="../../start/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
+ <a href="../../ja/start/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
+ </nav>
+ </div>
+ </header>
+
+ <main id="main">
+ <section class="hero guide-hero">
+ <div class="wrap">
+ <p class="crumb"><a href="../../en/">CopySync</a> / Quick start</p>
+ <h1 class="display">Quick start</h1>
+ <p class="lede">Install the app, set up a server, and pair your computers. The first time takes about ten minutes; after that, copying just syncs.</p>
+ <ol class="guide-toc">
+ <li><a href="#app">Install the app</a></li>
+ <li><a href="#server">Set up a server</a></li>
+ <li><a href="#connect">Enter the address</a></li>
+ <li><a href="#pair">Pair</a></li>
+ </ol>
+ </div>
+ </section>
+
+ <section class="section" id="app" aria-labelledby="app-title">
+ <div class="wrap">
+ <p class="eyebrow">Step 1</p>
+ <h2 id="app-title">Install the app on each computer</h2>
+ <p class="intro">One on every computer you want to sync. Macs and Windows PCs mix freely.</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <div class="qs-app">
+ <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>Mac</h3>
+ <ol class="steps">
+ <li>Download CopySync.dmg, open it and drag CopySync into Applications.</li>
+ <li>Open it from Applications.<span class="aside">The first time, macOS says it can't verify the developer: go to System Settings → Privacy &amp; Security and click Open Anyway near the bottom.</span></li>
+ <li>Click Turn on background sync, and allow clipboard access when macOS asks.</li>
+ </ol>
+ <a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Mac</a>
+ </div>
+ <div class="qs-app">
+ <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>
+ <ol class="steps">
+ <li>Run CopySync-Setup.exe; no administrator rights needed.<span class="aside">If you see "Windows protected your PC", click More info, then Run anyway.</span></li>
+ <li>Open CopySync and click Turn on background sync. After you close the window it keeps running in the notification area.</li>
+ </ol>
+ <a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Windows</a>
+ </div>
+ </div>
+ <figure class="shot">
+ <img src="../../assets/screenshots/en/welcome-dark.png" width="2112" height="1472" alt="CopySync the first time it opens, asking you to turn on background sync">
+ </figure>
+ </div>
+ </div>
+ </section>
+
+ <section class="section" id="server" aria-labelledby="server-title">
+ <div class="wrap">
+ <p class="eyebrow">Step 2</p>
+ <h2 id="server-title">Set up a server</h2>
+ <p class="intro">Your computers find each other through it; nothing you copy is stored there. There's no public server, so pick the option that fits:</p>
+ <div class="paths">
+ <a class="path" href="../../en/server/">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><rect class="p-dev" x="98" y="16" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="31" width="44" height="12" rx="3"/><path class="p-sig" d="M58 66V30h40M182 66V30h-40"/><path class="p-data" d="M82 82h76"/><rect class="p-dev" x="39" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M34 95h48"/><rect class="p-dev" x="163" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M158 95h48"/></svg>
+ <span class="path-tag">No public IP needed</span>
+ <span class="path-when">Both computers on one network</span>
+ <h3>On your LAN</h3>
+ <p>At home or in the office, on the same Wi‑Fi or wired network. Run the server on one of your always-on Windows, Mac or Linux computers with a single script.</p>
+ <span class="path-go">LAN guide →</span>
+ </a>
+ <a class="path" href="../../en/tailscale/">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><rect class="p-dev" x="39" y="20" width="44" height="12" rx="3"/><rect class="p-dev" x="39" y="35" width="44" height="12" rx="3"/><path class="p-sig" d="M180 64V54H61v-7M61 64V54"/><path class="p-data" d="M85 80h71"/><rect class="p-dev" x="42" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M37 93h48"/><rect class="p-dev" x="161" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M156 93h48"/></svg>
+ <span class="path-tag">No public IP needed</span>
+ <span class="path-when">One at home, one at the office</span>
+ <h3>LAN + Tailscale</h3>
+ <p>The server stays at home. Install Tailscale on each computer and they act as if they shared a LAN, so your laptop keeps syncing wherever you take it.</p>
+ <span class="path-go">Tailscale guide →</span>
+ </a>
+ <a class="path" href="../../en/#cloud">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/></svg>
+ <span class="path-tag">Needs a public IP</span>
+ <span class="path-when">You have a public server</span>
+ <h3>Cloud server</h3>
+ <p>A Linux VM with a public IP; the smallest one is enough. Every computer connects to it directly, with nothing else to install.</p>
+ <span class="path-go">Setup steps →</span>
+ </a>
+ </div>
+ <p class="note">When it's installed, the script prints an address like <code>ws://192.168.1.20:8787/signal</code>. You'll need it in the next step.</p>
+ </div>
+ </section>
+
+ <section class="section" id="connect" aria-labelledby="connect-title">
+ <div class="wrap">
+ <p class="eyebrow">Step 3</p>
+ <h2 id="connect-title">Enter the server address on each computer</h2>
+ <ol class="flow">
+ <li><h3>Open Settings</h3><p>Open CopySync on each computer, including the one running the server, and go to Settings.</p></li>
+ <li><h3>Enter the address</h3><p>Under Signaling server, enter the address from the previous step and press Return or Enter.</p></li>
+ <li><h3>Check the status</h3><p>When Connection shows a green Connected, that computer is ready.</p></li>
+ </ol>
+ <figure class="shot">
+ <img src="../../assets/screenshots/en/settings-lan-dark.png" width="2112" height="1472" loading="lazy" alt="CopySync Settings: the signaling server is ws://192.168.1.20:8787/signal and the connection status shows Connected">
+ </figure>
+ <p class="note">Stuck at Not connected? See the <a href="../../en/server/#faq">questions</a>.</p>
+ </div>
+ </section>
+
+ <section class="section" id="pair" aria-labelledby="pair-title">
+ <div class="wrap">
+ <p class="eyebrow">Step 4</p>
+ <h2 id="pair-title">Pair your computers</h2>
+ <p class="intro">Pair each two computers once, and you're done.</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <ol class="steps">
+ <li>On one computer, open Devices and click Add device. It shows a 6-character code, valid for 5 minutes.</li>
+ <li>On the other, click Add device too, switch to Enter a code and type it in.</li>
+ <li>Both screens show the same two fingerprint lines. Check them character by character, then confirm.<span class="aside">This stops anyone in the middle from posing as your device. Don't skip it.</span></li>
+ </ol>
+ <figure class="figure-card qs-verify">
+ <img src="../../assets/screenshots/en/card-verify-dark.png" width="1120" height="800" loading="lazy" alt="The fingerprint check during pairing shows R8NF-2WTC-QL5J and asks you to confirm it matches the other computer exactly">
+ </figure>
+ </div>
+ <figure class="shot">
+ <img src="../../assets/screenshots/en/pairing-dark.png" width="2112" height="1472" loading="lazy" alt="Add device: the pairing code K7MP2X, to be entered on the other device">
+ </figure>
+ </div>
+ </div>
+ </section>
+
+ <section class="closing" aria-labelledby="closing-title">
+ <div class="wrap">
+ <h2 class="display" id="closing-title">Now copy something.</h2>
+ <p class="lede">Copy text, an image or a file on one computer and press ⌘V or Ctrl+V on the other. Everything copied on either side is in the history.</p>
+ <p class="note">Need help? <a href="../../en/server/#faq">LAN questions</a> · <a href="../../en/tailscale/#faq">Tailscale questions</a> · <a href="https://github.com/baiyuze/copysync/issues">Report an issue</a></p>
+ </div>
+ </section>
+ </main>
+
+ <footer class="footer">
+ <div class="wrap">
+ <p>CopySync is open source under the GNU AGPL-3.0, with commercial licenses available.</p>
+ <nav aria-label="Footer">
+ <a href="https://github.com/baiyuze/copysync/releases">All releases</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/CHANGELOG.md">Changelog</a>
+ <a href="https://baiyuze.github.io/copysync/design/nat-traversal.html">Design notes (Chinese)</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/LICENSING.md">Commercial license</a>
+ <a href="https://github.com/baiyuze/copysync/issues">Report an issue</a>
+ </nav>
+ <nav aria-label="Language">
+ <a href="../../start/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
+ <a href="../../en/start/" hreflang="en" lang="en" data-lang="en" aria-current="page">English</a>
+ <a href="../../ja/start/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
+ </nav>
+ </div>
+ </footer>
+
+ <script src="../../assets/site.js" defer></script>
+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
+</body>
+</html>
diff --git a/docs/en/tailscale/index.html b/docs/en/tailscale/index.html
new file mode 100644
index 0000000..2dbca43
--- /dev/null
+++ b/docs/en/tailscale/index.html
@@ -0,0 +1,425 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Use CopySync across networks with Tailscale: sync home and office without a public IP</title>
+ <meta name="description" content="Run the server on an always-on computer at home and install Tailscale on each computer: they act as if they shared a LAN, so the clipboard syncs from the office or anywhere else. No public IP, no router settings. Step-by-step for Windows, Mac and Linux.">
+ <link rel="canonical" href="https://baiyuze.github.io/copysync/en/tailscale/">
+ <link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/tailscale/">
+ <link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/tailscale/">
+ <link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/tailscale/">
+ <meta name="theme-color" content="#141416">
+ <meta property="og:type" content="article">
+ <meta property="og:site_name" content="CopySync">
+ <meta property="og:title" content="Use CopySync across networks with Tailscale: sync home and office without a public IP">
+ <meta property="og:description" content="Run the server on an always-on computer at home and install Tailscale on each computer: they act as if they shared a LAN, so the clipboard syncs from the office or anywhere else. No public IP, no router settings. Step-by-step for Windows, Mac and Linux.">
+ <meta property="og:url" content="https://baiyuze.github.io/copysync/en/tailscale/">
+ <meta property="og:image" content="https://baiyuze.github.io/copysync/assets/og-en.png">
+ <meta property="og:locale" content="en_US">
+ <meta name="twitter:card" content="summary_large_image">
+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">
+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">
+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">
+ <link rel="stylesheet" href="../../assets/site.css">
+</head>
+<body>
+ <a class="skip" href="#main">Skip to content</a>
+
+ <header class="bar">
+ <div class="wrap">
+ <a class="brand" href="../../en/" aria-label="CopySync home"><img src="../../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
+ <nav aria-label="Page">
+ <a href="../../en/start/">Quick start</a>
+ <a class="wide" href="../../en/#how">How it works</a>
+ <a class="wide" href="../../en/#faq">FAQ</a>
+ <a href="../../en/server/">Self-host</a>
+ <a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
+ <a href="../../tailscale/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
+ <a href="../../ja/tailscale/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
+ </nav>
+ </div>
+ </header>
+
+ <main id="main">
+ <section class="hero guide-hero">
+ <div class="wrap">
+ <p class="crumb"><a href="../../en/">CopySync</a> / <a href="../../en/server/">Self-host</a> / Tailscale</p>
+ <h1 class="display">Across networks with Tailscale</h1>
+ <p class="lede">Sync between home and the office without a public IP. The server stays at home; with Tailscale on each computer, they act as if they shared a LAN. No router settings, no cloud server.</p>
+ <ol class="guide-toc">
+ <li><a href="#join">Install Tailscale</a></li>
+ <li><a href="#address">Find the address</a></li>
+ <li><a href="#install">Install the server</a></li>
+ <li><a href="#check">Check</a></li>
+ <li><a href="#clients">Set up the apps</a></li>
+ <li><a href="#faq">Questions</a></li>
+ </ol>
+ </div>
+ </section>
+
+ <section class="section" id="overview" aria-labelledby="overview-title">
+ <div class="wrap">
+ <h2 id="overview-title">As if on one LAN</h2>
+ <p class="intro">Tailscale connects your devices into a private network: every device signed in to the same account gets a fixed address starting with 100, reachable from the others wherever they are. Install the CopySync server on that address and enter it in the apps; everything else works as on a LAN.</p>
+ <figure class="diagram">
+ <svg viewBox="0 0 960 460" role="img" aria-labelledby="ts-title ts-desc">
+ <title id="ts-title">CopySync over Tailscale</title>
+ <desc id="ts-desc">The server and a Windows PC are at home, a Mac is at the office. All three run Tailscale and each has an address starting with 100 on the same private network. Both computers connect to the server at 100.101.102.103 for signaling; copied content goes directly between them, and through the server's relay only if that fails.</desc>
+ <rect class="d-ts" x="8" y="8" width="944" height="404" rx="22"/>
+ <text class="d-ts-label" x="32" y="42">Tailscale network: every device has a 100.x address</text>
+ <rect class="d-box" x="340" y="64" width="280" height="122" rx="14"/>
+ <text class="d-title" x="480" y="102" text-anchor="middle">Server</text>
+ <text class="d-sub" x="480" y="130" text-anchor="middle">At home, always on</text>
+ <text class="d-ip" x="480" y="164" text-anchor="middle">100.101.102.103</text>
+ <path class="d-sig" d="M150 266V96H340"/>
+ <path class="d-sig" d="M810 266V96H620"/>
+ <path class="d-relay" d="M206 266V154H340"/>
+ <path class="d-relay" d="M754 266V154H620"/>
+ <text class="d-note" x="164" y="86">Signaling, TCP 8787</text>
+ <text class="d-note" x="220" y="214">Relay, UDP 3478, if direct fails</text>
+ <rect class="d-box" x="40" y="266" width="240" height="126" rx="14"/>
+ <text class="d-title" x="160" y="306" text-anchor="middle">Mac</text>
+ <text class="d-sub" x="160" y="334" text-anchor="middle">At the office</text>
+ <text class="d-ip" x="160" y="368" text-anchor="middle">100.88.20.5</text>
+ <rect class="d-box" x="680" y="266" width="240" height="126" rx="14"/>
+ <text class="d-title" x="800" y="306" text-anchor="middle">Windows</text>
+ <text class="d-sub" x="800" y="334" text-anchor="middle">At home</text>
+ <text class="d-ip" x="800" y="368" text-anchor="middle">100.92.41.17</text>
+ <path class="d-direct" d="M280 330H680"/>
+ <text class="d-label" x="480" y="316" text-anchor="middle">Direct, encrypted twice</text>
+ <text class="d-note" x="480" y="358" text-anchor="middle">Content stays between the two computers</text>
+ <g class="d-legend" transform="translate(40 444)">
+ <path class="d-direct" d="M0 0H28"/><text x="38" y="5">Data (direct)</text>
+ <path class="d-relay" d="M250 0H278"/><text x="288" y="5">Data (relay, fallback)</text>
+ <path class="d-sig" d="M560 0H588"/><text x="598" y="5">Signaling</text>
+ </g>
+ </svg>
+ </figure>
+ <ul class="points ports">
+ <li><strong>The server stays at home</strong> on any always-on Windows, Mac or Linux computer, just like on a LAN.</li>
+ <li><strong>Every computer runs Tailscale,</strong> signed in to the same account, including the server computer.</li>
+ <li><strong>Encrypted twice.</strong> Inside Tailscale's WireGuard tunnel runs CopySync's own end-to-end encrypted connection. Neither Tailscale nor your server can see the content.</li>
+ </ul>
+ </div>
+ </section>
+
+ <section class="section" id="prepare" aria-labelledby="prepare-title">
+ <div class="wrap">
+ <h2 id="prepare-title">Before you start</h2>
+ <dl class="fallbacks">
+ <div><dt>A computer that stays on</dt><dd>It runs the server, with the same requirements as <a href="../../en/server/#prepare">on a LAN</a>; sync pauses while it's off or asleep. Its Tailscale address doesn't change, so there's nothing to reserve in the router.</dd></div>
+ <div><dt>A Tailscale account</dt><dd>Free for personal use; sign in with Google, Microsoft, GitHub or Apple. Use the same account on every device.</dd></div>
+ <div><dt>Tailscale on every computer</dt><dd>There are clients for Windows, macOS and Linux. Every computer that runs CopySync needs it, including one that never leaves home.</dd></div>
+ <div><dt>ZeroTier works too</dt><dd>So does any tool that gives each device a fixed virtual address: install the server on that address and enter it in the apps. This guide uses Tailscale.</dd></div>
+ </dl>
+ </div>
+ </section>
+
+ <section class="section" id="join" aria-labelledby="join-title">
+ <div class="wrap">
+ <p class="eyebrow">Step 1</p>
+ <h2 id="join-title">Install Tailscale on each computer</h2>
+ <p class="intro">On the server computer and every computer you sync, install it and sign in to the same account.</p>
+ <div class="os-grid qs-grid">
+ <div class="os-steps">
+ <ol class="steps">
+ <li>Download the client for your system from the Tailscale website and install it.<span class="aside">On Linux, run <code>curl -fsSL https://tailscale.com/install.sh | sh</code>, then <code>sudo tailscale up</code>, and open the link it prints to sign in.</span></li>
+ <li>Open Tailscale and sign in, using the same account on every computer.</li>
+ <li>The Tailscale admin console then lists all your devices, each with an address starting with 100.</li>
+ </ol>
+ <a class="button" href="https://tailscale.com/download"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download Tailscale</a>
+ </div>
+ <div class="os-figures">
+ <figure class="browser machines" role="img" aria-label="The machine list in the Tailscale admin console (illustration): mac-mini is the server at 100.101.102.103, macbook-pro is 100.88.20.5 and home-pc is 100.92.41.17">
+ <div class="b-bar"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="b-url">login.tailscale.com/admin/machines</span></div>
+ <table>
+ <thead><tr><th scope="col">Machine</th><th scope="col">Tailscale address</th><th scope="col">OS</th></tr></thead>
+ <tbody>
+ <tr class="hl"><td>mac-mini <em>Server</em></td><td>100.101.102.103</td><td>macOS</td></tr>
+ <tr><td>macbook-pro</td><td>100.88.20.5</td><td>macOS</td></tr>
+ <tr><td>home-pc</td><td>100.92.41.17</td><td>Windows</td></tr>
+ </tbody>
+ </table>
+ </figure>
+ </div>
+ </div>
+ <div class="server-notes">
+ <h3>One more thing on the server computer</h3>
+ <ul class="points">
+ <li><strong>Windows:</strong> right-click the Tailscale icon in the notification area and turn on Run unattended under Preferences. Otherwise Tailscale disconnects when you sign out, and computers elsewhere lose the server.</li>
+ <li><strong>Mac:</strong> stay logged in, keep it awake, and make sure Tailscale opens at login. The CopySync server also only runs while you're logged in.</li>
+ <li><strong>Turn off key expiry:</strong> by default Tailscale asks devices to sign in again every 180 days. On the Machines page of the admin console, open the menu at the end of the server's row and choose Disable key expiry.</li>
+ </ul>
+ </div>
+ </div>
+ </section>
+
+ <section class="section" id="address" aria-labelledby="address-title">
+ <div class="wrap">
+ <p class="eyebrow">Step 2</p>
+ <h2 id="address-title">Find the server's Tailscale address</h2>
+ <p class="intro">On the server computer, click the Tailscale icon in the menu bar (the notification area on Windows); the menu shows this device's address. Or run <code>tailscale ip -4</code> in a terminal.</p>
+ <div class="address-term">
+ <figure class="term" role="img" aria-label="tailscale ip -4 in a terminal prints this device&#x27;s Tailscale address, 100.101.102.103">
+ <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">mac-mini — zsh</span></div>
+<pre class="t-body"><span class="t-prompt">%</span> tailscale ip -4
+<span class="t-url">100.101.102.103</span></pre>
+ </figure>
+ </div>
+ <p class="note">The steps below use <code>100.101.102.103</code>; use your own address.</p>
+ </div>
+ </section>
+
+ <section class="section" id="install" aria-labelledby="install-title">
+ <div class="wrap">
+ <p class="eyebrow">Step 3</p>
+ <h2 id="install-title">Install the server on that address</h2>
+ <p class="intro">The install scripts use the LAN address by default. Pass the Tailscale address instead so computers elsewhere can use the server's relay. Already installed it with the <a href="../../en/server/">LAN guide</a>? Run the script again with the address; your settings are kept.</p>
+ <div class="os-tabs" data-tabs>
+ <div class="tablist" role="tablist" aria-label="System of the server computer" hidden>
+ <button type="button" role="tab" id="tab-windows" aria-controls="windows">Windows</button>
+ <button type="button" role="tab" id="tab-macos" aria-controls="macos">macOS</button>
+ <button type="button" role="tab" id="tab-linux" aria-controls="linux">Linux</button>
+ </div>
+
+ <section class="os" id="windows" role="tabpanel" aria-labelledby="tab-windows">
+ <h3 class="os-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>
+ <div class="os-grid">
+ <div class="os-steps">
+ <ol class="steps">
+ <li>Download copysync-server-windows-amd64.zip and choose Extract All. If it's already installed, use the folder you extracted before.</li>
+ <li>Open the extracted folder, type <code>cmd</code> in the address bar at the top and press Enter to open a Command Prompt.</li>
+ <li>Run <code>install.cmd 100.101.102.103</code> with your address, and click Yes when User Account Control asks.</li>
+ <li>Installation continues in a new window. The address at the end should be <code>ws://100.101.102.103:8787/signal</code>.</li>
+ </ol>
+ <a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-windows-amd64.zip"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download the Windows server</a>
+ <ul class="points">
+ <li><strong>Firewall already allowed:</strong> the script's inbound rule applies to every network, Tailscale's adapter included.</li>
+ <li>If you see "Windows protected your PC", click More info, then Run anyway.</li>
+ </ul>
+ </div>
+ <div class="os-figures">
+ <figure class="term" role="img" aria-label="A Command Prompt opened in the extracted folder runs install.cmd 100.101.102.103">
+ <div class="t-bar win"><span class="t-tab"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M3 5.5 10.5 4.5v7H3zM11.5 4.4 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.4z"/></svg>Command Prompt</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div>
+<pre class="t-body"><span class="t-prompt">C:\Users\me\Downloads\copysync-server-windows-amd64&gt;</span>install.cmd 100.101.102.103</pre>
+ </figure>
+ <figure class="term" role="img" aria-label="The window after install.cmd finishes, ending with the address ws://100.101.102.103:8787/signal">
+ <div class="t-bar win"><span class="t-tab"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M3 5.5 10.5 4.5v7H3zM11.5 4.4 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.4z"/></svg>Administrator: Windows PowerShell</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div>
+<pre class="t-body"><span class="t-step">&gt; Stopping the running version</span>
+<span class="t-step">&gt; Installing to C:\Program Files\CopySync Server</span>
+<span class="t-step">&gt; Registering the service CopySyncServer (relay address 100.101.102.103)</span>
+<span class="t-step">&gt; Allowing it through Windows Firewall</span>
+<span class="t-step">&gt; Starting</span>
+ √ Running
+
+Installed: copysync-server 1.3.3. It runs as a Windows service and starts with Windows.
+In CopySync on each computer, set Settings &gt; Signaling server to:
+
+ <span class="t-url">ws://100.101.102.103:8787/signal</span>
+
+ Program C:\Program Files\CopySync Server
+ Logs C:\ProgramData\CopySync Server\server.log
+ Restart Restart-Service CopySyncServer (in an administrator PowerShell)
+ Uninstall double-click uninstall.cmd</pre>
+ </figure>
+ </div>
+ </div>
+ </section>
+
+ <section class="os" id="macos" role="tabpanel" aria-labelledby="tab-macos">
+ <h3 class="os-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>macOS</h3>
+ <div class="os-grid">
+ <div class="os-steps">
+ <ol class="steps">
+ <li>Open Terminal and run these lines, with your address on the last one:
+ <div class="code">
+ <button class="copy" type="button" data-done="Copied">Copy</button>
+<pre><code>curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-macos.tar.gz
+tar xzf copysync-server-macos.tar.gz
+cd copysync-server-macos
+./install.sh 100.101.102.103</code></pre>
+ </div></li>
+ <li>The address at the end should be <code>ws://100.101.102.103:8787/signal</code>.</li>
+ </ol>
+ <ul class="points">
+ <li>Already installed? Run <code>./install.sh 100.101.102.103</code> in the same folder; your settings are kept.</li>
+ <li><strong>If the macOS firewall is on,</strong> the script ends with the command to allow copysync-server.</li>
+ </ul>
+ </div>
+ <div class="os-figures">
+ <figure class="term" role="img" aria-label="Output of ./install.sh 100.101.102.103 in Terminal, ending with the address ws://100.101.102.103:8787/signal">
+ <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">copysync-server-macos — zsh</span></div>
+<pre class="t-body"><span class="t-prompt">%</span> ./install.sh 100.101.102.103
+<span class="t-step">▶ Stopping the running version</span>
+<span class="t-step">▶ Installing to /Users/me/Library/Application Support/CopySync Server</span>
+<span class="t-step">▶ Writing the LaunchAgent (relay address 100.101.102.103)</span>
+<span class="t-step">▶ Starting</span>
+ ✓ Running
+
+Installed: copysync-server 1.3.3. It starts whenever you log in to this Mac.
+In CopySync on each computer, set Settings → Signaling server to:
+
+ <span class="t-url">ws://100.101.102.103:8787/signal</span>
+
+ Logs /Users/me/Library/Logs/CopySync/server.log
+ Restart launchctl kickstart -k gui/501/com.copysync.server
+ Uninstall ./install.sh uninstall</pre>
+ </figure>
+ </div>
+ </div>
+ </section>
+
+ <section class="os" id="linux" role="tabpanel" aria-labelledby="tab-linux">
+ <h3 class="os-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>Linux</h3>
+ <div class="os-grid">
+ <div class="os-steps">
+ <ol class="steps">
+ <li>Run these lines, with your address on the last one:<span class="aside">On ARM, replace <code>amd64</code> with <code>arm64</code>.</span>
+ <div class="code">
+ <button class="copy" type="button" data-done="Copied">Copy</button>
+<pre><code>curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-linux-amd64.tar.gz
+tar xzf copysync-server-linux-amd64.tar.gz
+cd copysync-server-linux-amd64
+sudo ./install.sh 100.101.102.103</code></pre>
+ </div></li>
+ <li>The address at the end should be <code>ws://100.101.102.103:8787/signal</code>.</li>
+ </ol>
+ <div class="switch">
+ <p><strong>Already installed?</strong> The Linux script leaves an existing config alone. Replace the old address in it with the Tailscale address (put your old address in place of <code>192.168.1.20</code>) and restart the service:</p>
+ <div class="code">
+ <button class="copy" type="button" data-done="Copied">Copy</button>
+<pre><code>sudo sed -i 's/192.168.1.20/100.101.102.103/g' /etc/copysync/server.env
+sudo systemctl restart copysync-server</code></pre>
+ </div>
+ </div>
+ </div>
+ <div class="os-figures">
+ <figure class="term" role="img" aria-label="Output of sudo ./install.sh 100.101.102.103, ending with the address ws://100.101.102.103:8787/signal">
+ <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">ssh 100.101.102.103</span></div>
+<pre class="t-body"><span class="t-prompt">$</span> sudo ./install.sh 100.101.102.103
+<span class="t-step">▶ Installing the binary to /usr/local/bin</span>
+<span class="t-step">▶ Writing the systemd unit</span>
+<span class="t-step">▶ Writing /etc/copysync/server.env (relay address 100.101.102.103)</span>
+<span class="t-step">▶ Starting</span>
+ ✓ Running
+
+Installed: copysync-server 1.3.3
+In CopySync on each computer, set Settings → Signaling server to:
+
+ <span class="t-url">ws://100.101.102.103:8787/signal</span>
+
+ Config /etc/copysync/server.env
+ Logs journalctl -u copysync-server -f
+ Restart systemctl restart copysync-server
+ Uninstall sudo ./install.sh uninstall
+
+Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768-60999 (relay ports, assigned by the OS)</pre>
+ </figure>
+ </div>
+ </div>
+ </section>
+ </div>
+ </div>
+ </section>
+
+ <section class="section" id="check" aria-labelledby="check-title">
+ <div class="wrap">
+ <p class="eyebrow">Step 4</p>
+ <h2 id="check-title">Check from outside</h2>
+ <p class="intro">On a computer outside your home network, or a laptop on your phone's hotspot, make sure Tailscale is connected and open <code>http://100.101.102.103:8787/healthz</code> in a browser. If you see this line, the server is reachable from outside.</p>
+ <figure class="browser" role="img" aria-label="A browser showing http://100.101.102.103:8787/healthz, with the server&#x27;s status ok and its version">
+ <div class="b-bar"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="b-url">http://100.101.102.103:8787/healthz</span></div>
+ <pre class="b-body">{"status":"ok","version":"1.3.3"}</pre>
+ </figure>
+ <p class="note">If it doesn't load, see the <a href="#faq">questions</a> below.</p>
+ </div>
+ </section>
+
+ <section class="section" id="clients" aria-labelledby="clients-title">
+ <div class="wrap">
+ <p class="eyebrow">Step 5</p>
+ <h2 id="clients-title">Enter the address on each computer</h2>
+ <ol class="flow">
+ <li><h3>Open Settings</h3><p>Open CopySync on each computer, including the one running the server, and go to Settings.</p></li>
+ <li><h3>Enter the Tailscale address</h3><p>Under Signaling server, enter <code>ws://100.101.102.103:8787/signal</code> with your address and press Return or Enter.</p></li>
+ <li><h3>Check the status</h3><p>When Connection shows a green Connected, you're set. If you haven't paired yet, pair under Devices.</p></li>
+ </ol>
+ <figure class="shot">
+ <img src="../../assets/screenshots/en/settings-tailscale-dark.png" width="2112" height="1472" loading="lazy" alt="CopySync Settings: the signaling server is ws://100.101.102.103:8787/signal and the connection status shows Connected">
+ </figure>
+ <p class="note">Use the Tailscale address on your home computers too, not the LAN address, so nothing changes when a computer leaves the house. When they're all at home, the data still stays on your home network.</p>
+ </div>
+ </section>
+
+ <section class="section" id="faq" aria-labelledby="faq-title">
+ <div class="wrap">
+ <h2 id="faq-title">Questions</h2>
+ <div class="faq">
+ <details>
+ <summary>Devices show Direct, but it's slow</summary>
+ <div class="answer"><p>Direct in CopySync means the two computers connect directly on the Tailscale network. When Tailscale can't connect them peer to peer, it relays through its DERP servers, which can be far away.</p><p>Run <code>tailscale ping other-address</code> in a terminal: via DERP means Tailscale is relaying; via an IP and port means it's peer to peer. Office and campus networks relay more often; you can run your own DERP server or try another mesh VPN.</p></div>
+ </details>
+ <details>
+ <summary>The status stays at Not connected</summary>
+ <div class="answer"><p>First make sure Tailscale is connected on that computer, then open <code>http://server-tailscale-address:8787/healthz</code> in a browser.</p><p>If it doesn't load, check whether the server computer is asleep, whether Tailscale is online there (Run unattended on Windows, staying logged in on a Mac), whether the server still uses its LAN address, and whether a firewall on a Mac or Linux server blocks it.</p></div>
+ </details>
+ <details>
+ <summary>Does every computer need Tailscale?</summary>
+ <div class="answer"><p>Yes. A computer without it can't reach the 100.x addresses, and computers elsewhere can't reach it. That includes one that never leaves home.</p></div>
+ </details>
+ <details>
+ <summary>I already followed the LAN guide. Start over?</summary>
+ <div class="answer"><p>No. Run the install script again with the Tailscale address (on Linux, edit the config), then change the server address on each computer to the Tailscale one. Paired devices stay paired.</p></div>
+ </details>
+ <details>
+ <summary>Can Tailscale see what I copy?</summary>
+ <div class="answer"><p>No. Tailscale connections are end-to-end encrypted with WireGuard, and inside runs CopySync's own DTLS-encrypted connection; only your two computers can open either layer. Tailscale's servers only exchange device keys and addresses, and its relays forward encrypted packets.</p></div>
+ </details>
+ <details>
+ <summary>Will the server's Tailscale address change?</summary>
+ <div class="answer"><p>Usually not. The address belongs to the device and survives restarts and network changes; it only changes if you remove the device from Tailscale and add it again.</p></div>
+ </details>
+ <details>
+ <summary>I have a public IP. Do I need Tailscale?</summary>
+ <div class="answer"><p>No. Run the server on the machine with the public IP and enter that address on every computer; see the <a href="../../en/#cloud">steps on the home page</a>.</p></div>
+ </details>
+ </div>
+ </div>
+ </section>
+
+ <section class="closing" aria-labelledby="closing-title">
+ <div class="wrap">
+ <h2 class="display" id="closing-title">The server stays home.<br>Your clipboard comes with you.</h2>
+ <div class="cta">
+ <a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Mac</a>
+ <a class="button quiet" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Windows</a>
+ </div>
+ <p class="note">Version 1.3.3, free and open source. macOS 13 or later, Intel and Apple silicon; Windows 10 and 11.</p>
+ <a class="source" href="../../en/server/">Back to the LAN guide</a>
+ </div>
+ </section>
+ </main>
+
+ <footer class="footer">
+ <div class="wrap">
+ <p>CopySync is open source under the GNU AGPL-3.0, with commercial licenses available.</p>
+ <nav aria-label="Footer">
+ <a href="https://github.com/baiyuze/copysync/releases">All releases</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/CHANGELOG.md">Changelog</a>
+ <a href="https://baiyuze.github.io/copysync/design/nat-traversal.html">Design notes (Chinese)</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/LICENSING.md">Commercial license</a>
+ <a href="https://github.com/baiyuze/copysync/issues">Report an issue</a>
+ </nav>
+ <nav aria-label="Language">
+ <a href="../../tailscale/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
+ <a href="../../en/tailscale/" hreflang="en" lang="en" data-lang="en" aria-current="page">English</a>
+ <a href="../../ja/tailscale/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
+ </nav>
+ </div>
+ </footer>
+
+ <script src="../../assets/site.js" defer></script>
+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
+</body>
+</html>
diff --git a/docs/index.html b/docs/index.html
index bb916f1..fa5445f 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -127,7 +127,15 @@
"name": "必须自己准备服务器吗?",
"acceptedAnswer": {
"@type": "Answer",
- "text": "是的,CopySync 不提供公共服务器,这样就不会有任何人的数据经过别人的机器。两台电脑在同一个局域网时,在其中一台常开的 Windows、Mac 或 Linux 电脑上运行服务器即可,见局域网部署教程;跨网络使用需要一台有公网 IP 的服务器,最低配置的云主机就够。"
+ "text": "是的,CopySync 不提供公共服务器,这样就不会有任何人的数据经过别人的机器。但它不需要公网 IP:放在家里一台常开的 Windows、Mac 或 Linux 电脑上就行,见局域网部署教程;不在同一个网络的电脑,装上 Tailscale 就能连回来,见Tailscale 教程。有公网 IP 的话,也可以部署在云服务器上,最低配置就够。"
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "家里没有公网 IP,能在家和公司之间同步吗?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "能。服务器装在家里一台常开的电脑上,家里和公司的电脑都装上 Tailscale、登录同一个账号,服务器地址填它的 Tailscale 地址。它们就像在同一个局域网里,复制的内容照样在两台电脑之间直接传输。步骤见用 Tailscale 跨网络使用。"
}
},
{
@@ -175,8 +183,8 @@
<div class="wrap">
<a class="brand" href="./" aria-label="CopySync 首页"><img src="assets/icon.svg" alt="" width="26" height="26">CopySync</a>
<nav aria-label="页面导航">
+ <a href="start/">快速开始</a>
<a class="wide" href="#how">工作原理</a>
- <a class="wide" href="#install">安装</a>
<a class="wide" href="#faq">常见问题</a>
<a href="server/">部署服务器</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
@@ -196,6 +204,7 @@
<a class="button quiet" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Windows 版</a>
</div>
<p class="note">版本 1.3.3,免费开源。macOS 13 及以上,Intel 与 Apple 芯片通用;Windows 10、11。</p>
+ <a class="start-link" href="start/">第一次用?看快速开始,三步配好 →</a>
<div class="stage" data-play role="img" aria-label="演示:在 MacBook 上按下 Command C,文件化作一张纸,经直连飞到 Windows 笔记本,在那里按下 Ctrl V 粘贴出来">
<figure class="device mac">
<div class="screen"><div class="desk">
@@ -223,6 +232,40 @@
</div>
</section>
+ <section class="section" id="deploy" aria-labelledby="deploy-title">
+ <div class="wrap">
+ <h2 id="deploy-title">没有公网 IP,也能用</h2>
+ <p class="intro">两台电脑要靠一台服务器找到彼此。这台服务器不必在公网上:大多数人家里没有公网 IP,放在家里一台常开的电脑上就行。</p>
+ <div class="paths">
+ <a class="path" href="server/">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><rect class="p-dev" x="98" y="16" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="31" width="44" height="12" rx="3"/><path class="p-sig" d="M58 66V30h40M182 66V30h-40"/><path class="p-data" d="M82 82h76"/><rect class="p-dev" x="39" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M34 95h48"/><rect class="p-dev" x="163" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M158 95h48"/></svg>
+ <span class="path-tag">不需要公网 IP</span>
+ <span class="path-when">两台电脑在同一个网络里</span>
+ <h3>局域网部署</h3>
+ <p>家里或办公室,连着同一个 Wi‑Fi 或有线网络。服务器装在其中一台常开的 Windows、Mac 或 Linux 电脑上,运行一个脚本就好。</p>
+ <span class="path-go">局域网部署教程 →</span>
+ </a>
+ <a class="path" href="tailscale/">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><rect class="p-dev" x="39" y="20" width="44" height="12" rx="3"/><rect class="p-dev" x="39" y="35" width="44" height="12" rx="3"/><path class="p-sig" d="M180 64V54H61v-7M61 64V54"/><path class="p-data" d="M85 80h71"/><rect class="p-dev" x="42" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M37 93h48"/><rect class="p-dev" x="161" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M156 93h48"/></svg>
+ <span class="path-tag">不需要公网 IP</span>
+ <span class="path-when">一台在家,一台在公司</span>
+ <h3>局域网部署 + Tailscale</h3>
+ <p>服务器照样放在家里。每台电脑装上 Tailscale,就像在同一个局域网里:笔记本带到哪儿,复制都能同步。</p>
+ <span class="path-go">Tailscale 教程 →</span>
+ </a>
+ <a class="path" href="#cloud">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/></svg>
+ <span class="path-tag">需要公网 IP</span>
+ <span class="path-when">有一台公网服务器</span>
+ <h3>云服务器部署</h3>
+ <p>一台有公网 IP 的 Linux 云主机,最低配置就够。所有电脑直接连它,不用另装组网工具。</p>
+ <span class="path-go">部署步骤 →</span>
+ </a>
+ </div>
+ <p class="note">拿不准选哪个?跟着<a href="start/">快速开始</a>一步步来。</p>
+ </div>
+ </section>
+
<section class="section" aria-labelledby="history-title">
<div class="wrap">
<h2 id="history-title">所有设备上复制过的,都在这里</h2>
@@ -393,7 +436,7 @@
<section class="section" id="install" aria-labelledby="install-title">
<div class="wrap">
<h2 id="install-title">安装</h2>
- <p class="intro">每台电脑装一个 App,再准备一台两边都能访问到的服务器。两台电脑在同一个局域网的话,服务器放在其中一台 Windows、Mac 或 Linux 电脑上就行,见<a href="server/">局域网部署教程</a>。</p>
+ <p class="intro">每台电脑装一个 App,再准备一台服务器。不需要公网 IP:服务器放在家里一台常开的电脑上,同一个局域网直接用,不在同一个网络就加上 Tailscale。第一次装可以跟着<a href="start/">快速开始</a>。</p>
<div class="install">
<div>
<h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>Mac</h3>
@@ -416,7 +459,13 @@
</div>
<div>
<h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>服务器</h3>
- <p class="small">跨公网使用时,一台有公网 IP 的 Linux 服务器,需要 root。ARM 服务器把 <code>amd64</code> 换成 <code>arm64</code>。</p>
+ <p class="small"><strong>没有公网 IP 也行。</strong>服务器装在家里或办公室一台常开的 Windows、Mac 或 Linux 电脑上,运行一个脚本。不在同一个网络的电脑,装上 Tailscale 就能连回来。</p>
+ <div class="stack">
+ <a class="button" href="server/">局域网部署教程</a>
+ <a class="button quiet" href="tailscale/">用 Tailscale 跨网络</a>
+ </div>
+ <h4 id="cloud">有公网 IP 的服务器</h4>
+ <p class="small">一台有公网 IP 的 Linux 服务器,需要 root。ARM 服务器把 <code>amd64</code> 换成 <code>arm64</code>。</p>
<div class="code">
<button class="copy" type="button" data-done="已复制">复制</button>
<pre><code>curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-linux-amd64.tar.gz
@@ -434,7 +483,6 @@ sudo ./install.sh 你的公网IP</code></pre>
</tbody>
</table>
<p class="small">也可以用 Docker 部署,见<a href="https://github.com/baiyuze/copysync/blob/main/server/deploy/README.md">服务器部署说明</a>。</p>
- <a class="button quiet" href="server/">局域网部署教程</a>
</div>
</div>
<p class="pairing"><strong>配对:</strong>一台点「设备 → 添加设备」生成 6 位配对码,另一台输入它;两块屏幕上的两行安全指纹完全一致后确认。Mac 与 Windows 之间、两台 Windows 之间都一样。</p>
@@ -489,7 +537,11 @@ sudo ./install.sh 你的公网IP</code></pre>
</details>
<details>
<summary>必须自己准备服务器吗?</summary>
- <div class="answer"><p>是的,CopySync 不提供公共服务器,这样就不会有任何人的数据经过别人的机器。两台电脑在同一个局域网时,在其中一台常开的 Windows、Mac 或 Linux 电脑上运行服务器即可,见<a href="server/">局域网部署教程</a>;跨网络使用需要一台有公网 IP 的服务器,最低配置的云主机就够。</p></div>
+ <div class="answer"><p>是的,CopySync 不提供公共服务器,这样就不会有任何人的数据经过别人的机器。但它不需要公网 IP:放在家里一台常开的 Windows、Mac 或 Linux 电脑上就行,见<a href="server/">局域网部署教程</a>;不在同一个网络的电脑,装上 Tailscale 就能连回来,见<a href="tailscale/">Tailscale 教程</a>。有公网 IP 的话,也可以部署在云服务器上,最低配置就够。</p></div>
+ </details>
+ <details>
+ <summary>家里没有公网 IP,能在家和公司之间同步吗?</summary>
+ <div class="answer"><p>能。服务器装在家里一台常开的电脑上,家里和公司的电脑都装上 Tailscale、登录同一个账号,服务器地址填它的 Tailscale 地址。它们就像在同一个局域网里,复制的内容照样在两台电脑之间直接传输。步骤见<a href="tailscale/">用 Tailscale 跨网络使用</a>。</p></div>
</details>
<details>
<summary>支持 Windows 吗?iPhone 呢?</summary>
@@ -519,6 +571,7 @@ sudo ./install.sh 你的公网IP</code></pre>
<a class="button quiet" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Windows 版</a>
</div>
<p class="note">版本 1.3.3,免费开源。macOS 13 及以上,Intel 与 Apple 芯片通用;Windows 10、11。</p>
+ <a class="start-link" href="start/">第一次用?看快速开始,三步配好 →</a>
<a class="source" href="https://github.com/baiyuze/copysync">在 GitHub 上查看源码</a>
</div>
</section>
diff --git a/docs/ja/index.html b/docs/ja/index.html
index 25dc3dc..d0a105d 100644
--- a/docs/ja/index.html
+++ b/docs/ja/index.html
@@ -107,7 +107,15 @@
"name": "サーバーは自分で用意する必要がありますか?",
"acceptedAnswer": {
"@type": "Answer",
- "text": "はい。CopySync は公開サーバーを提供しません。だから誰のデータも他人のマシンを通りません。2 台が同じ LAN にあるなら、電源を入れたままの Windows・Mac・Linux のどれか 1 台でサーバーを動かせば十分で(LAN での設置手順)、ネットワークをまたぐ場合はグローバル IP を持つサーバーが 1 台必要です。最小構成のクラウドサーバーで足ります。"
+ "text": "はい。CopySync は公開サーバーを提供しません。だから誰のデータも他人のマシンを通りません。ただしグローバル IP は不要で、自宅で電源を入れたままの Windows・Mac・Linux で十分です(LAN での設置手順)。別のネットワークにあるコンピューターは Tailscale でつながります(Tailscale での手順)。グローバル IP があれば、最小構成のクラウドサーバーに置くこともできます。"
+ }
+ },
+ {
+ "@type": "Question",
+ "name": "自宅にグローバル IP がありません。自宅と会社のあいだで同期できますか?",
+ "acceptedAnswer": {
+ "@type": "Answer",
+ "text": "できます。自宅で電源を入れたままのコンピューターでサーバーを動かし、自宅と会社のコンピューターに Tailscale を入れて同じアカウントでサインインし、サーバーのアドレスに Tailscale のアドレスを使います。同じ LAN にあるのと同じように扱え、コピーした内容は 2 台のあいだを直接流れます。手順はTailscale でネットワークをまたいで使うをご覧ください。"
}
},
{
@@ -155,8 +163,8 @@
<div class="wrap">
<a class="brand" href="./" aria-label="CopySync ホーム"><img src="../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
<nav aria-label="ページ内の移動">
+ <a href="start/">はじめかた</a>
<a class="wide" href="#how">しくみ</a>
- <a class="wide" href="#install">インストール</a>
<a class="wide" href="#faq">よくある質問</a>
<a href="server/">サーバーの設置</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
@@ -176,6 +184,7 @@
<a class="button quiet" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Windows 版をダウンロード</a>
</div>
<p class="note">バージョン 1.3.3、無料・オープンソース。macOS 13 以降(Intel と Apple シリコン)、Windows 10・11。</p>
+ <a class="start-link" href="start/">はじめての方は、3 ステップのはじめかたへ →</a>
<div class="stage" data-play role="img" aria-label="デモ:MacBook で Command C を押すと、ファイルが一枚の紙になって直接接続で Windows ノートへ飛び、そこで Ctrl V を押して貼り付けます">
<figure class="device mac">
<div class="screen"><div class="desk">
@@ -203,6 +212,40 @@
</div>
</section>
+ <section class="section" id="deploy" aria-labelledby="deploy-title">
+ <div class="wrap">
+ <h2 id="deploy-title">グローバル IP がなくても使える</h2>
+ <p class="intro">2 台のコンピューターはサーバーを通じてお互いを見つけます。ただしサーバーはインターネットに公開されている必要はありません。多くの家庭の回線にはグローバル IP がありませんが、家で電源を入れたままのコンピューターで十分です。</p>
+ <div class="paths">
+ <a class="path" href="server/">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><rect class="p-dev" x="98" y="16" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="31" width="44" height="12" rx="3"/><path class="p-sig" d="M58 66V30h40M182 66V30h-40"/><path class="p-data" d="M82 82h76"/><rect class="p-dev" x="39" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M34 95h48"/><rect class="p-dev" x="163" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M158 95h48"/></svg>
+ <span class="path-tag">グローバル IP 不要</span>
+ <span class="path-when">2 台が同じネットワークにある</span>
+ <h3>LAN に置く</h3>
+ <p>家や会社で、同じ Wi‑Fi か有線ネットワークにつながっている場合。電源を入れたままの Windows・Mac・Linux のどれか 1 台で、スクリプトをひとつ実行するだけです。</p>
+ <span class="path-go">LAN での設置手順 →</span>
+ </a>
+ <a class="path" href="tailscale/">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><rect class="p-dev" x="39" y="20" width="44" height="12" rx="3"/><rect class="p-dev" x="39" y="35" width="44" height="12" rx="3"/><path class="p-sig" d="M180 64V54H61v-7M61 64V54"/><path class="p-data" d="M85 80h71"/><rect class="p-dev" x="42" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M37 93h48"/><rect class="p-dev" x="161" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M156 93h48"/></svg>
+ <span class="path-tag">グローバル IP 不要</span>
+ <span class="path-when">1 台は自宅、1 台は会社</span>
+ <h3>LAN + Tailscale</h3>
+ <p>サーバーは自宅に置いたまま。各コンピューターに Tailscale を入れれば同じ LAN にあるのと同じように扱えて、ノートパソコンを持ち出しても同期が続きます。</p>
+ <span class="path-go">Tailscale での手順 →</span>
+ </a>
+ <a class="path" href="#cloud">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/></svg>
+ <span class="path-tag">グローバル IP が必要</span>
+ <span class="path-when">公開サーバーがある</span>
+ <h3>クラウドに置く</h3>
+ <p>グローバル IP を持つ Linux のクラウドサーバー。最小構成で足ります。すべてのコンピューターが直接つながり、ほかに入れるものはありません。</p>
+ <span class="path-go">設置手順 →</span>
+ </a>
+ </div>
+ <p class="note">迷ったら<a href="start/">はじめかた</a>に沿って進めてください。</p>
+ </div>
+ </section>
+
<section class="section" aria-labelledby="history-title">
<div class="wrap">
<h2 id="history-title">どのデバイスでコピーしたものも、ここに</h2>
@@ -373,7 +416,7 @@
<section class="section" id="install" aria-labelledby="install-title">
<div class="wrap">
<h2 id="install-title">インストール</h2>
- <p class="intro">それぞれのコンピューターにアプリを入れ、両方からアクセスできるサーバーを 1 台用意します。2 台が同じ LAN にあるなら、サーバーはどれか 1 台の Windows・Mac・Linux で動かせば十分です。<a href="server/">LAN での設置手順</a>をご覧ください。</p>
+ <p class="intro">それぞれのコンピューターにアプリを入れ、サーバーを 1 台用意します。グローバル IP は要りません。自宅で電源を入れたままのコンピューターでサーバーを動かし、同じ LAN ならそのまま、別のネットワークからは Tailscale を加えて使います。はじめての方は<a href="start/">はじめかた</a>をどうぞ。</p>
<div class="install">
<div>
<h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>Mac</h3>
@@ -396,7 +439,13 @@
</div>
<div>
<h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>サーバー</h3>
- <p class="small">ネットワークをまたいで使う場合:グローバル IP を持つ Linux サーバー、root 権限が必要です。ARM の場合は <code>amd64</code> を <code>arm64</code> に置き換えます。</p>
+ <p class="small"><strong>グローバル IP は不要です。</strong>家や会社で電源を入れたままの Windows・Mac・Linux で、スクリプトをひとつ実行するだけ。別のネットワークにあるコンピューターは Tailscale でつながります。</p>
+ <div class="stack">
+ <a class="button" href="server/">LAN での設置手順</a>
+ <a class="button quiet" href="tailscale/">Tailscale でネットワークをまたぐ</a>
+ </div>
+ <h4 id="cloud">グローバル IP を持つサーバーに置く</h4>
+ <p class="small">グローバル IP を持つ Linux サーバー、root 権限が必要です。ARM の場合は <code>amd64</code> を <code>arm64</code> に置き換えます。</p>
<div class="code">
<button class="copy" type="button" data-done="コピーしました">コピー</button>
<pre><code>curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-linux-amd64.tar.gz
@@ -414,7 +463,6 @@ sudo ./install.sh グローバルIP</code></pre>
</tbody>
</table>
<p class="small">Docker でも動かせます。<a href="https://github.com/baiyuze/copysync/blob/main/server/deploy/README.md">サーバーの構築手順</a>(英語)をご覧ください。</p>
- <a class="button quiet" href="server/">LAN での設置手順</a>
</div>
</div>
<p class="pairing"><strong>ペアリング:</strong>一台で「デバイス → デバイスを追加」を開いて 6 桁のコードを表示し、もう一台で入力します。両方の画面に同じ 2 行の指紋が表示されたら確定します。Mac と Windows、Windows 同士でも同じ手順です。</p>
@@ -469,7 +517,11 @@ sudo ./install.sh グローバルIP</code></pre>
</details>
<details>
<summary>サーバーは自分で用意する必要がありますか?</summary>
- <div class="answer"><p>はい。CopySync は公開サーバーを提供しません。だから誰のデータも他人のマシンを通りません。2 台が同じ LAN にあるなら、電源を入れたままの Windows・Mac・Linux のどれか 1 台でサーバーを動かせば十分で(<a href="server/">LAN での設置手順</a>)、ネットワークをまたぐ場合はグローバル IP を持つサーバーが 1 台必要です。最小構成のクラウドサーバーで足ります。</p></div>
+ <div class="answer"><p>はい。CopySync は公開サーバーを提供しません。だから誰のデータも他人のマシンを通りません。ただしグローバル IP は不要で、自宅で電源を入れたままの Windows・Mac・Linux で十分です(<a href="server/">LAN での設置手順</a>)。別のネットワークにあるコンピューターは Tailscale でつながります(<a href="tailscale/">Tailscale での手順</a>)。グローバル IP があれば、最小構成のクラウドサーバーに置くこともできます。</p></div>
+ </details>
+ <details>
+ <summary>自宅にグローバル IP がありません。自宅と会社のあいだで同期できますか?</summary>
+ <div class="answer"><p>できます。自宅で電源を入れたままのコンピューターでサーバーを動かし、自宅と会社のコンピューターに Tailscale を入れて同じアカウントでサインインし、サーバーのアドレスに Tailscale のアドレスを使います。同じ LAN にあるのと同じように扱え、コピーした内容は 2 台のあいだを直接流れます。手順は<a href="tailscale/">Tailscale でネットワークをまたいで使う</a>をご覧ください。</p></div>
</details>
<details>
<summary>Windows に対応していますか?iPhone は?</summary>
@@ -499,6 +551,7 @@ sudo ./install.sh グローバルIP</code></pre>
<a class="button quiet" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Windows 版をダウンロード</a>
</div>
<p class="note">バージョン 1.3.3、無料・オープンソース。macOS 13 以降(Intel と Apple シリコン)、Windows 10・11。</p>
+ <a class="start-link" href="start/">はじめての方は、3 ステップのはじめかたへ →</a>
<a class="source" href="https://github.com/baiyuze/copysync">GitHub でソースコードを見る</a>
</div>
</section>
diff --git a/docs/ja/server/index.html b/docs/ja/server/index.html
index b90e3a4..f9d521e 100644
--- a/docs/ja/server/index.html
+++ b/docs/ja/server/index.html
@@ -30,8 +30,9 @@
<div class="wrap">
<a class="brand" href="../../ja/" aria-label="CopySync ホーム"><img src="../../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
<nav aria-label="ページ内の移動">
+ <a href="../../ja/start/">はじめかた</a>
<a class="wide" href="../../ja/#how">しくみ</a>
- <a class="wide" href="../../ja/#install">インストール</a>
+ <a class="wide" href="../../ja/#faq">よくある質問</a>
<a href="./" aria-current="page">サーバーの設置</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
<a href="../../server/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
@@ -46,11 +47,13 @@
<p class="crumb"><a href="../../ja/">CopySync</a> / サーバーの設置</p>
<h1 class="display">LAN にサーバーを置く</h1>
<p class="lede">家や会社のコンピューターが同じネットワークにあるなら、クラウドサーバーは要りません。電源を入れたままのコンピューターを 1 台選び、スクリプトをダウンロードして実行し、表示されたアドレスを各コンピューターの CopySync に入力します。</p>
+ <p class="hero-aside">2 台が別のネットワークにあり、グローバル IP もない場合は<a href="../../ja/tailscale/">Tailscale でネットワークをまたいで使う</a>をご覧ください。</p>
<ol class="guide-toc">
<li><a href="#prepare">準備</a></li>
<li><a href="#install">インストール</a></li>
<li><a href="#check">確認</a></li>
<li><a href="#clients">アドレスの入力</a></li>
+ <li><a href="#away">外出先でも使う</a></li>
<li><a href="#faq">よくある質問</a></li>
</ol>
</div>
@@ -106,7 +109,7 @@
<div><dt>電源を入れたままのコンピューター</dt><dd>Windows 10・11、macOS 13 以降、または Linux なら何でも可。同期する 2 台のうちの 1 台でもかまいません。電源が切れたりスリープしたりすると同期は止まり、復帰すると再開します。NAS、ルーター、Mac mini などが最適で、メモリは約 15 MB です。</dd></div>
<div><dt>固定のアドレス</dt><dd>ルーターの DHCP 設定(「固定割り当て」「アドレス予約」など)で、このコンピューターのアドレスを固定します。そうしないと、アドレスが変わるたびに全部のコンピューターで入れ直すことになります。</dd></div>
<div><dt>同じネットワークに</dt><dd>同じ Wi‑Fi か有線ネットワークにつながっていれば十分です。ゲストネットワークや AP アイソレーションが有効な Wi‑Fi ではデバイスどうしが通信できないので、別のネットワークを使うか、アイソレーションをオフにしてください。</dd></div>
- <div><dt>ネットワークの外では同期しない</dt><dd>サーバーには LAN の中からしか届きません。持ち出したノートパソコンは、戻ってきてから同期を再開します。どこからでも同期したい場合は、グローバル IP を持つサーバーが必要です(トップページの「インストール」)。</dd></div>
+ <div><dt>ネットワークの外でも同期したいなら</dt><dd>サーバーには LAN の中からしか届きません。持ち出したノートパソコンでも同期したい場合は、各コンピューターに Tailscale を入れれば、グローバル IP なしでつながります(<a href="../../ja/tailscale/">Tailscale での手順</a>)。</dd></div>
</dl>
</div>
</section>
@@ -327,7 +330,20 @@ Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768
<figure class="shot">
<img src="../../assets/screenshots/ja/settings-lan-dark.png" width="2112" height="1472" loading="lazy" alt="CopySync の設定画面:シグナリングサーバーは ws://192.168.1.20:8787/signal、接続状態は接続済み">
</figure>
- <p class="note">アプリがまだなら、トップページの<a href="../../ja/#install">インストール</a>をご覧ください。</p>
+ <p class="note">アプリがまだなら、<a href="../../ja/start/">はじめかた</a>をご覧ください。</p>
+ </div>
+ </section>
+
+ <section class="section" id="away" aria-labelledby="away-title">
+ <div class="wrap">
+ <div class="callout">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><rect class="p-dev" x="39" y="20" width="44" height="12" rx="3"/><rect class="p-dev" x="39" y="35" width="44" height="12" rx="3"/><path class="p-sig" d="M180 64V54H61v-7M61 64V54"/><path class="p-data" d="M85 80h71"/><rect class="p-dev" x="42" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M37 93h48"/><rect class="p-dev" x="161" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M156 93h48"/></svg>
+ <div>
+ <h2 id="away-title">外出先でも同期したい?</h2>
+ <p>各コンピューターに Tailscale を入れ、サーバーをその Tailscale アドレスで動かせば、会社からでも外出先からでも、同じ LAN にいるように自宅のサーバーにつながります。グローバル IP もルーターの設定も要りません。</p>
+ <a class="button" href="../../ja/tailscale/">Tailscale でネットワークをまたいで使う</a>
+ </div>
+ </div>
</div>
</section>
@@ -349,7 +365,7 @@ Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768
</details>
<details>
<summary>LAN の外でも同期できますか?</summary>
- <div class="answer"><p>できません。サーバーには LAN の中からしか届かないためです。どこでも使いたい場合は、グローバル IP を持つマシンにサーバーを置くか(トップページの「インストール」)、Tailscale や ZeroTier などでデバイスを同じ仮想ネットワークに参加させ、その中でのサーバーのアドレスを入力します。</p></div>
+ <div class="answer"><p>Tailscale を使えばできます。各コンピューターに入れて同じアカウントでサインインし、サーバーを Tailscale のアドレスでインストールして、アプリにもそのアドレスを入力します。グローバル IP は不要です。手順は<a href="../../ja/tailscale/">Tailscale でネットワークをまたいで使う</a>をご覧ください。</p><p>グローバル IP があれば、クラウドサーバーに置くこともできます(<a href="../../ja/#cloud">トップページの設置手順</a>)。</p></div>
</details>
<details>
<summary>中国本土のクラウドサーバーで、ドメインではつながらず IP ならつながる</summary>
diff --git a/docs/ja/start/index.html b/docs/ja/start/index.html
new file mode 100644
index 0000000..282588b
--- /dev/null
+++ b/docs/ja/start/index.html
@@ -0,0 +1,195 @@
+<!doctype html>
+<html lang="ja">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>はじめかた:3 ステップで CopySync を使い始める</title>
+ <meta name="description" content="CopySync がはじめての方へ。各コンピューターにアプリを入れ、サーバーの置き方(LAN、Tailscale、クラウド)を選び、アドレスを入力してペアリングすれば、Mac と Windows のあいだでコピー&ペーストできます。グローバル IP は不要です。">
+ <link rel="canonical" href="https://baiyuze.github.io/copysync/ja/start/">
+ <link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/start/">
+ <link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/start/">
+ <link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/start/">
+ <meta name="theme-color" content="#141416">
+ <meta property="og:type" content="article">
+ <meta property="og:site_name" content="CopySync">
+ <meta property="og:title" content="はじめかた:3 ステップで CopySync を使い始める">
+ <meta property="og:description" content="CopySync がはじめての方へ。各コンピューターにアプリを入れ、サーバーの置き方(LAN、Tailscale、クラウド)を選び、アドレスを入力してペアリングすれば、Mac と Windows のあいだでコピー&ペーストできます。グローバル IP は不要です。">
+ <meta property="og:url" content="https://baiyuze.github.io/copysync/ja/start/">
+ <meta property="og:image" content="https://baiyuze.github.io/copysync/assets/og-en.png">
+ <meta property="og:locale" content="ja_JP">
+ <meta name="twitter:card" content="summary_large_image">
+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">
+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">
+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">
+ <link rel="stylesheet" href="../../assets/site.css">
+</head>
+<body>
+ <a class="skip" href="#main">本文へ移動</a>
+
+ <header class="bar">
+ <div class="wrap">
+ <a class="brand" href="../../ja/" aria-label="CopySync ホーム"><img src="../../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
+ <nav aria-label="ページ内の移動">
+ <a href="./" aria-current="page">はじめかた</a>
+ <a class="wide" href="../../ja/#how">しくみ</a>
+ <a class="wide" href="../../ja/#faq">よくある質問</a>
+ <a href="../../ja/server/">サーバーの設置</a>
+ <a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
+ <a href="../../start/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
+ <a href="../../en/start/" hreflang="en" lang="en" data-lang="en">English</a>
+ </nav>
+ </div>
+ </header>
+
+ <main id="main">
+ <section class="hero guide-hero">
+ <div class="wrap">
+ <p class="crumb"><a href="../../ja/">CopySync</a> / はじめかた</p>
+ <h1 class="display">はじめかた</h1>
+ <p class="lede">アプリを入れて、サーバーを用意し、2 台をペアリングします。最初の設定は 10 分ほど。そのあとはコピーするだけで同期されます。</p>
+ <ol class="guide-toc">
+ <li><a href="#app">アプリを入れる</a></li>
+ <li><a href="#server">サーバーを用意</a></li>
+ <li><a href="#connect">アドレスを入力</a></li>
+ <li><a href="#pair">ペアリング</a></li>
+ </ol>
+ </div>
+ </section>
+
+ <section class="section" id="app" aria-labelledby="app-title">
+ <div class="wrap">
+ <p class="eyebrow">ステップ 1</p>
+ <h2 id="app-title">各コンピューターにアプリを入れる</h2>
+ <p class="intro">同期したいコンピューターすべてに入れます。Mac と Windows の組み合わせも自由です。</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <div class="qs-app">
+ <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>Mac</h3>
+ <ol class="steps">
+ <li>CopySync.dmg をダウンロードして開き、CopySync を「アプリケーション」にドラッグします。</li>
+ <li>「アプリケーション」から開きます。<span class="aside">初回は「開発元を検証できません」と表示されます。「システム設定 → プライバシーとセキュリティ」を開き、ページ下部の「このまま開く」をクリックします。</span></li>
+ <li>「バックグラウンド同期を有効にする」をクリックし、クリップボードの読み取りを聞かれたら許可します。</li>
+ </ol>
+ <a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Mac 版をダウンロード</a>
+ </div>
+ <div class="qs-app">
+ <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>
+ <ol class="steps">
+ <li>CopySync-Setup.exe を実行します。管理者権限は要りません。<span class="aside">「Windows によって PC が保護されました」と出たら、「詳細情報」を押してから「実行」を押します。</span></li>
+ <li>CopySync を開き、「バックグラウンド同期を有効にする」をクリックします。ウィンドウを閉じても通知領域で動き続けます。</li>
+ </ol>
+ <a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Windows 版をダウンロード</a>
+ </div>
+ </div>
+ <figure class="shot">
+ <img src="../../assets/screenshots/ja/welcome-dark.png" width="2112" height="1472" alt="初めて開いた CopySync:バックグラウンド同期を有効にするよう案内している">
+ </figure>
+ </div>
+ </div>
+ </section>
+
+ <section class="section" id="server" aria-labelledby="server-title">
+ <div class="wrap">
+ <p class="eyebrow">ステップ 2</p>
+ <h2 id="server-title">サーバーを用意する</h2>
+ <p class="intro">2 台はサーバーを通じてお互いを見つけます。コピーした内容がそこに保存されることはありません。公開サーバーはないので、状況に合うものを選んでください。</p>
+ <div class="paths">
+ <a class="path" href="../../ja/server/">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><rect class="p-dev" x="98" y="16" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="31" width="44" height="12" rx="3"/><path class="p-sig" d="M58 66V30h40M182 66V30h-40"/><path class="p-data" d="M82 82h76"/><rect class="p-dev" x="39" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M34 95h48"/><rect class="p-dev" x="163" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M158 95h48"/></svg>
+ <span class="path-tag">グローバル IP 不要</span>
+ <span class="path-when">2 台が同じネットワークにある</span>
+ <h3>LAN に置く</h3>
+ <p>家や会社で、同じ Wi‑Fi か有線ネットワークにつながっている場合。電源を入れたままの Windows・Mac・Linux のどれか 1 台で、スクリプトをひとつ実行するだけです。</p>
+ <span class="path-go">LAN での設置手順 →</span>
+ </a>
+ <a class="path" href="../../ja/tailscale/">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><rect class="p-dev" x="39" y="20" width="44" height="12" rx="3"/><rect class="p-dev" x="39" y="35" width="44" height="12" rx="3"/><path class="p-sig" d="M180 64V54H61v-7M61 64V54"/><path class="p-data" d="M85 80h71"/><rect class="p-dev" x="42" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M37 93h48"/><rect class="p-dev" x="161" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M156 93h48"/></svg>
+ <span class="path-tag">グローバル IP 不要</span>
+ <span class="path-when">1 台は自宅、1 台は会社</span>
+ <h3>LAN + Tailscale</h3>
+ <p>サーバーは自宅に置いたまま。各コンピューターに Tailscale を入れれば同じ LAN にあるのと同じように扱えて、ノートパソコンを持ち出しても同期が続きます。</p>
+ <span class="path-go">Tailscale での手順 →</span>
+ </a>
+ <a class="path" href="../../ja/#cloud">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/></svg>
+ <span class="path-tag">グローバル IP が必要</span>
+ <span class="path-when">公開サーバーがある</span>
+ <h3>クラウドに置く</h3>
+ <p>グローバル IP を持つ Linux のクラウドサーバー。最小構成で足ります。すべてのコンピューターが直接つながり、ほかに入れるものはありません。</p>
+ <span class="path-go">設置手順 →</span>
+ </a>
+ </div>
+ <p class="note">インストールが終わると、スクリプトが <code>ws://192.168.1.20:8787/signal</code> のようなアドレスを表示します。次のステップで使います。</p>
+ </div>
+ </section>
+
+ <section class="section" id="connect" aria-labelledby="connect-title">
+ <div class="wrap">
+ <p class="eyebrow">ステップ 3</p>
+ <h2 id="connect-title">各コンピューターにサーバーのアドレスを入力</h2>
+ <ol class="flow">
+ <li><h3>設定を開く</h3><p>各コンピューターで CopySync を開き、「設定」に進みます。サーバーを動かしているコンピューターも同じです。</p></li>
+ <li><h3>アドレスを入力</h3><p>「シグナリングサーバー」に前のステップで表示されたアドレスを入力し、Return か Enter を押します。</p></li>
+ <li><h3>状態を確認</h3><p>「接続状態」が緑の「接続済み」になれば、そのコンピューターは準備完了です。</p></li>
+ </ol>
+ <figure class="shot">
+ <img src="../../assets/screenshots/ja/settings-lan-dark.png" width="2112" height="1472" loading="lazy" alt="CopySync の設定画面:シグナリングサーバーは ws://192.168.1.20:8787/signal、接続状態は接続済み">
+ </figure>
+ <p class="note">「未接続」のままなら<a href="../../ja/server/#faq">よくある質問</a>をご覧ください。</p>
+ </div>
+ </section>
+
+ <section class="section" id="pair" aria-labelledby="pair-title">
+ <div class="wrap">
+ <p class="eyebrow">ステップ 4</p>
+ <h2 id="pair-title">2 台をペアリングする</h2>
+ <p class="intro">2 台ごとに一度ペアリングすれば、あとは何もする必要はありません。</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <ol class="steps">
+ <li>一台で「デバイス」を開き、「デバイスを追加」をクリックします。5 分間有効な 6 桁のコードが表示されます。</li>
+ <li>もう一台でも「デバイスを追加」をクリックし、「コードを入力」に切り替えて入力します。</li>
+ <li>両方の画面に同じ 2 行の指紋が表示されます。1 文字ずつ照合して一致していれば確定します。<span class="aside">途中で誰かがあなたのデバイスになりすますのを防ぐ手順です。省略しないでください。</span></li>
+ </ol>
+ <figure class="figure-card qs-verify">
+ <img src="../../assets/screenshots/ja/card-verify-dark.png" width="1120" height="800" loading="lazy" alt="ペアリング時の「セキュリティ指紋を確認」ダイアログ。R8NF-2WTC-QL5J が表示され、もう一台の表示と完全に一致するか確かめるよう求めている">
+ </figure>
+ </div>
+ <figure class="shot">
+ <img src="../../assets/screenshots/ja/pairing-dark.png" width="2112" height="1472" loading="lazy" alt="デバイスを追加:ペアリングコード K7MP2X を表示し、もう一台で入力する">
+ </figure>
+ </div>
+ </div>
+ </section>
+
+ <section class="closing" aria-labelledby="closing-title">
+ <div class="wrap">
+ <h2 class="display" id="closing-title">コピーしてみましょう。</h2>
+ <p class="lede">一台でテキスト、画像、ファイルをコピーし、もう一台で ⌘V か Ctrl+V を押します。どちらでコピーしたものも履歴に残ります。</p>
+ <p class="note">困ったときは:<a href="../../ja/server/#faq">LAN のよくある質問</a> · <a href="../../ja/tailscale/#faq">Tailscale のよくある質問</a> · <a href="https://github.com/baiyuze/copysync/issues">問題を報告</a></p>
+ </div>
+ </section>
+ </main>
+
+ <footer class="footer">
+ <div class="wrap">
+ <p>CopySync は GNU AGPL-3.0 のオープンソースです。商用ライセンスもあります。</p>
+ <nav aria-label="フッターのリンク">
+ <a href="https://github.com/baiyuze/copysync/releases">すべてのリリース</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/CHANGELOG.md">更新履歴</a>
+ <a href="https://baiyuze.github.io/copysync/design/nat-traversal.html">技術資料(中国語)</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/LICENSING.md">商用ライセンス</a>
+ <a href="https://github.com/baiyuze/copysync/issues">問題を報告</a>
+ </nav>
+ <nav aria-label="言語">
+ <a href="../../start/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
+ <a href="../../en/start/" hreflang="en" lang="en" data-lang="en">English</a>
+ <a href="../../ja/start/" hreflang="ja" lang="ja" data-lang="ja" aria-current="page">日本語</a>
+ </nav>
+ </div>
+ </footer>
+
+ <script src="../../assets/site.js" defer></script>
+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
+</body>
+</html>
diff --git a/docs/ja/tailscale/index.html b/docs/ja/tailscale/index.html
new file mode 100644
index 0000000..ed9a10f
--- /dev/null
+++ b/docs/ja/tailscale/index.html
@@ -0,0 +1,425 @@
+<!doctype html>
+<html lang="ja">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Tailscale で CopySync をネットワークをまたいで使う:グローバル IP なしで自宅と会社を同期</title>
+ <meta name="description" content="サーバーは自宅で電源を入れたままのコンピューターに置き、各コンピューターに Tailscale を入れれば、同じ LAN にあるのと同じように使えます。グローバル IP もルーターの設定も不要で、会社や外出先からもクリップボードを同期できます。Windows・Mac・Linux の手順つき。">
+ <link rel="canonical" href="https://baiyuze.github.io/copysync/ja/tailscale/">
+ <link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/tailscale/">
+ <link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/tailscale/">
+ <link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/tailscale/">
+ <meta name="theme-color" content="#141416">
+ <meta property="og:type" content="article">
+ <meta property="og:site_name" content="CopySync">
+ <meta property="og:title" content="Tailscale で CopySync をネットワークをまたいで使う:グローバル IP なしで自宅と会社を同期">
+ <meta property="og:description" content="サーバーは自宅で電源を入れたままのコンピューターに置き、各コンピューターに Tailscale を入れれば、同じ LAN にあるのと同じように使えます。グローバル IP もルーターの設定も不要で、会社や外出先からもクリップボードを同期できます。Windows・Mac・Linux の手順つき。">
+ <meta property="og:url" content="https://baiyuze.github.io/copysync/ja/tailscale/">
+ <meta property="og:image" content="https://baiyuze.github.io/copysync/assets/og-en.png">
+ <meta property="og:locale" content="ja_JP">
+ <meta name="twitter:card" content="summary_large_image">
+ <link rel="icon" href="../../assets/favicon.svg" type="image/svg+xml">
+ <link rel="icon" href="../../assets/favicon-32.png" sizes="32x32" type="image/png">
+ <link rel="apple-touch-icon" href="../../assets/apple-touch-icon.png">
+ <link rel="stylesheet" href="../../assets/site.css">
+</head>
+<body>
+ <a class="skip" href="#main">本文へ移動</a>
+
+ <header class="bar">
+ <div class="wrap">
+ <a class="brand" href="../../ja/" aria-label="CopySync ホーム"><img src="../../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
+ <nav aria-label="ページ内の移動">
+ <a href="../../ja/start/">はじめかた</a>
+ <a class="wide" href="../../ja/#how">しくみ</a>
+ <a class="wide" href="../../ja/#faq">よくある質問</a>
+ <a href="../../ja/server/">サーバーの設置</a>
+ <a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
+ <a href="../../tailscale/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
+ <a href="../../en/tailscale/" hreflang="en" lang="en" data-lang="en">English</a>
+ </nav>
+ </div>
+ </header>
+
+ <main id="main">
+ <section class="hero guide-hero">
+ <div class="wrap">
+ <p class="crumb"><a href="../../ja/">CopySync</a> / <a href="../../ja/server/">サーバーの設置</a> / Tailscale</p>
+ <h1 class="display">Tailscale でネットワークをまたぐ</h1>
+ <p class="lede">グローバル IP がなくても、自宅と会社のあいだで同期できます。サーバーは自宅に置いたまま、各コンピューターに Tailscale を入れれば、同じ LAN にあるのと同じように扱えます。ルーターの設定もクラウドサーバーも要りません。</p>
+ <ol class="guide-toc">
+ <li><a href="#join">Tailscale を入れる</a></li>
+ <li><a href="#address">アドレスを調べる</a></li>
+ <li><a href="#install">サーバーを入れる</a></li>
+ <li><a href="#check">確認</a></li>
+ <li><a href="#clients">アドレスの入力</a></li>
+ <li><a href="#faq">よくある質問</a></li>
+ </ol>
+ </div>
+ </section>
+
+ <section class="section" id="overview" aria-labelledby="overview-title">
+ <div class="wrap">
+ <h2 id="overview-title">同じ LAN にあるように</h2>
+ <p class="intro">Tailscale はデバイスどうしをつなぐネットワークツールです。同じアカウントでサインインしたデバイスにはそれぞれ 100 で始まる固定のアドレスが割り当てられ、実際にどこのネットワークにいても、そのアドレスで互いに届きます。CopySync のサーバーをこのアドレスでインストールし、アプリにも同じアドレスを入力すれば、あとは LAN に置く場合と同じです。</p>
+ <figure class="diagram">
+ <svg viewBox="0 0 960 460" role="img" aria-labelledby="ts-title ts-desc">
+ <title id="ts-title">Tailscale 経由の CopySync</title>
+ <desc id="ts-desc">サーバーと Windows PC は自宅に、Mac は会社にあります。3 台とも Tailscale を使い、同じ仮想ネットワーク上で 100 で始まるアドレスを持っています。2 台はシグナリングでサーバー 100.101.102.103 に接続し、コピーした内容は 2 台のあいだを直接流れ、直接つながらないときだけサーバーで中継します。</desc>
+ <rect class="d-ts" x="8" y="8" width="944" height="404" rx="22"/>
+ <text class="d-ts-label" x="32" y="42">Tailscale の仮想ネットワーク:各デバイスに 100 で始まるアドレス</text>
+ <rect class="d-box" x="340" y="64" width="280" height="122" rx="14"/>
+ <text class="d-title" x="480" y="102" text-anchor="middle">サーバー</text>
+ <text class="d-sub" x="480" y="130" text-anchor="middle">自宅、電源を入れたまま</text>
+ <text class="d-ip" x="480" y="164" text-anchor="middle">100.101.102.103</text>
+ <path class="d-sig" d="M150 266V96H340"/>
+ <path class="d-sig" d="M810 266V96H620"/>
+ <path class="d-relay" d="M206 266V154H340"/>
+ <path class="d-relay" d="M754 266V154H620"/>
+ <text class="d-note" x="164" y="86">シグナリング TCP 8787</text>
+ <text class="d-note" x="220" y="214">中継 UDP 3478(直接不可のとき)</text>
+ <rect class="d-box" x="40" y="266" width="240" height="126" rx="14"/>
+ <text class="d-title" x="160" y="306" text-anchor="middle">Mac</text>
+ <text class="d-sub" x="160" y="334" text-anchor="middle">会社</text>
+ <text class="d-ip" x="160" y="368" text-anchor="middle">100.88.20.5</text>
+ <rect class="d-box" x="680" y="266" width="240" height="126" rx="14"/>
+ <text class="d-title" x="800" y="306" text-anchor="middle">Windows</text>
+ <text class="d-sub" x="800" y="334" text-anchor="middle">自宅</text>
+ <text class="d-ip" x="800" y="368" text-anchor="middle">100.92.41.17</text>
+ <path class="d-direct" d="M280 330H680"/>
+ <text class="d-label" x="480" y="316" text-anchor="middle">直接接続、二重の暗号化</text>
+ <text class="d-note" x="480" y="358" text-anchor="middle">内容は 2 台のあいだだけを流れる</text>
+ <g class="d-legend" transform="translate(40 444)">
+ <path class="d-direct" d="M0 0H28"/><text x="38" y="5">データ(直接)</text>
+ <path class="d-relay" d="M250 0H278"/><text x="288" y="5">データ(中継、予備)</text>
+ <path class="d-sig" d="M560 0H588"/><text x="598" y="5">シグナリング</text>
+ </g>
+ </svg>
+ </figure>
+ <ul class="points ports">
+ <li><strong>サーバーは自宅のまま。</strong>電源を入れたままの Windows・Mac・Linux なら何でもよく、LAN に置く場合と同じです。</li>
+ <li><strong>すべてのコンピューターに Tailscale を入れ、</strong>同じアカウントでサインインします。サーバーを動かすコンピューターも同様です。</li>
+ <li><strong>二重の暗号化。</strong>Tailscale の WireGuard トンネルの中を、CopySync 自身のエンドツーエンド暗号化接続が通ります。Tailscale にもサーバーにも内容は見えません。</li>
+ </ul>
+ </div>
+ </section>
+
+ <section class="section" id="prepare" aria-labelledby="prepare-title">
+ <div class="wrap">
+ <h2 id="prepare-title">始める前に</h2>
+ <dl class="fallbacks">
+ <div><dt>電源を入れたままのコンピューター</dt><dd>サーバーを動かします。条件は<a href="../../ja/server/#prepare">LAN に置く場合</a>と同じで、電源が切れたりスリープしたりすると同期は止まります。Tailscale のアドレスは変わらないので、ルーターでアドレスを固定する必要はありません。</dd></div>
+ <div><dt>Tailscale のアカウント</dt><dd>個人利用は無料で、Google、Microsoft、GitHub、Apple のアカウントでサインインできます。すべてのデバイスで同じアカウントを使います。</dd></div>
+ <div><dt>すべてのコンピューターに Tailscale</dt><dd>Windows、macOS、Linux 用のクライアントがあります。CopySync を使うコンピューターにはすべて必要で、自宅から動かないものも同じです。</dd></div>
+ <div><dt>ZeroTier でも同様</dt><dd>各デバイスに固定の仮想アドレスを割り当てるツールなら同じ手順で使えます。サーバーをそのアドレスでインストールし、アプリにも入力します。ここでは Tailscale を例にします。</dd></div>
+ </dl>
+ </div>
+ </section>
+
+ <section class="section" id="join" aria-labelledby="join-title">
+ <div class="wrap">
+ <p class="eyebrow">ステップ 1</p>
+ <h2 id="join-title">各コンピューターに Tailscale を入れる</h2>
+ <p class="intro">サーバーを動かすコンピューターと、同期するすべてのコンピューターに入れて、同じアカウントでサインインします。</p>
+ <div class="os-grid qs-grid">
+ <div class="os-steps">
+ <ol class="steps">
+ <li>Tailscale の公式サイトから OS に合ったクライアントをダウンロードしてインストールします。<span class="aside">Linux では <code>curl -fsSL https://tailscale.com/install.sh | sh</code> を実行してから <code>sudo tailscale up</code> を実行し、表示されたリンクを開いてサインインします。</span></li>
+ <li>Tailscale を開いてサインインします。すべてのコンピューターで同じアカウントを使います。</li>
+ <li>サインインすると、Tailscale の管理画面にすべてのデバイスが並び、それぞれに 100 で始まるアドレスが付いています。</li>
+ </ol>
+ <a class="button" href="https://tailscale.com/download"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Tailscale をダウンロード</a>
+ </div>
+ <div class="os-figures">
+ <figure class="browser machines" role="img" aria-label="Tailscale の管理画面のデバイス一覧(イメージ):mac-mini がサーバーで 100.101.102.103、macbook-pro は 100.88.20.5、home-pc は 100.92.41.17">
+ <div class="b-bar"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="b-url">login.tailscale.com/admin/machines</span></div>
+ <table>
+ <thead><tr><th scope="col">デバイス</th><th scope="col">Tailscale のアドレス</th><th scope="col">OS</th></tr></thead>
+ <tbody>
+ <tr class="hl"><td>mac-mini <em>サーバー</em></td><td>100.101.102.103</td><td>macOS</td></tr>
+ <tr><td>macbook-pro</td><td>100.88.20.5</td><td>macOS</td></tr>
+ <tr><td>home-pc</td><td>100.92.41.17</td><td>Windows</td></tr>
+ </tbody>
+ </table>
+ </figure>
+ </div>
+ </div>
+ <div class="server-notes">
+ <h3>サーバーを動かすコンピューターでは、もうひと手間</h3>
+ <ul class="points">
+ <li><strong>Windows:</strong>通知領域の Tailscale アイコンを右クリックし、「Preferences」で「Run unattended」をオンにします。そうしないとサインアウトしたときに Tailscale が切れ、外のコンピューターからサーバーに届かなくなります。</li>
+ <li><strong>Mac:</strong>ログインしたまま、スリープさせず、Tailscale がログイン時に開くようにしておきます。CopySync のサーバーもログイン中だけ動きます。</li>
+ <li><strong>キーの有効期限をオフに:</strong>Tailscale は初期設定で 180 日ごとにデバイスの再サインインを求めます。管理画面の Machines ページで、サーバーの行の右端のメニューから「Disable key expiry」を選びます。</li>
+ </ul>
+ </div>
+ </div>
+ </section>
+
+ <section class="section" id="address" aria-labelledby="address-title">
+ <div class="wrap">
+ <p class="eyebrow">ステップ 2</p>
+ <h2 id="address-title">サーバーの Tailscale アドレスを調べる</h2>
+ <p class="intro">サーバーを動かすコンピューターで、メニューバー(Windows では通知領域)の Tailscale アイコンをクリックすると、メニューにこのデバイスのアドレスが表示されます。ターミナルで <code>tailscale ip -4</code> を実行しても分かります。</p>
+ <div class="address-term">
+ <figure class="term" role="img" aria-label="ターミナルで tailscale ip -4 を実行すると、このデバイスの Tailscale アドレス 100.101.102.103 が表示される">
+ <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">mac-mini — zsh</span></div>
+<pre class="t-body"><span class="t-prompt">%</span> tailscale ip -4
+<span class="t-url">100.101.102.103</span></pre>
+ </figure>
+ </div>
+ <p class="note">以下では <code>100.101.102.103</code> を例にします。あなたのアドレスに置き換えてください。</p>
+ </div>
+ </section>
+
+ <section class="section" id="install" aria-labelledby="install-title">
+ <div class="wrap">
+ <p class="eyebrow">ステップ 3</p>
+ <h2 id="install-title">そのアドレスでサーバーを入れる</h2>
+ <p class="intro">インストールスクリプトは初期設定で LAN のアドレスを使います。ここでは Tailscale のアドレスを指定して、外のコンピューターからもサーバーの中継を使えるようにします。すでに<a href="../../ja/server/">LAN での手順</a>で入れている場合は、アドレスを付けてもう一度実行するだけで、設定は引き継がれます。</p>
+ <div class="os-tabs" data-tabs>
+ <div class="tablist" role="tablist" aria-label="サーバーを動かすコンピューターの OS" hidden>
+ <button type="button" role="tab" id="tab-windows" aria-controls="windows">Windows</button>
+ <button type="button" role="tab" id="tab-macos" aria-controls="macos">macOS</button>
+ <button type="button" role="tab" id="tab-linux" aria-controls="linux">Linux</button>
+ </div>
+
+ <section class="os" id="windows" role="tabpanel" aria-labelledby="tab-windows">
+ <h3 class="os-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>
+ <div class="os-grid">
+ <div class="os-steps">
+ <ol class="steps">
+ <li>copysync-server-windows-amd64.zip をダウンロードし、右クリックで「すべて展開」します。インストール済みなら、前に展開したフォルダーを使います。</li>
+ <li>展開したフォルダーを開き、上部のアドレスバーに <code>cmd</code> と入力して Enter を押し、コマンドプロンプトを開きます。</li>
+ <li><code>install.cmd 100.101.102.103</code>(あなたのアドレス)を実行し、ユーザーアカウント制御が出たら「はい」を押します。</li>
+ <li>インストールは新しく開くウィンドウで進みます。最後に表示されるアドレスが <code>ws://100.101.102.103:8787/signal</code> になっていれば成功です。</li>
+ </ol>
+ <a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-windows-amd64.zip"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Windows 版サーバーをダウンロード</a>
+ <ul class="points">
+ <li><strong>ファイアウォールは設定済み:</strong>スクリプトが追加する受信規則はすべてのネットワークに適用され、Tailscale のアダプターも含まれます。</li>
+ <li>「Windows によって PC が保護されました」と出たら、「詳細情報」から「実行」を押します。</li>
+ </ul>
+ </div>
+ <div class="os-figures">
+ <figure class="term" role="img" aria-label="展開したフォルダーで開いたコマンドプロンプトで install.cmd 100.101.102.103 を実行する">
+ <div class="t-bar win"><span class="t-tab"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M3 5.5 10.5 4.5v7H3zM11.5 4.4 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.4z"/></svg>コマンド プロンプト</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div>
+<pre class="t-body"><span class="t-prompt">C:\Users\me\Downloads\copysync-server-windows-amd64&gt;</span>install.cmd 100.101.102.103</pre>
+ </figure>
+ <figure class="term" role="img" aria-label="install.cmd の実行後のウィンドウ。最後にアドレス ws://100.101.102.103:8787/signal を表示">
+ <div class="t-bar win"><span class="t-tab"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M3 5.5 10.5 4.5v7H3zM11.5 4.4 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.4z"/></svg>管理者: Windows PowerShell</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div>
+<pre class="t-body"><span class="t-step">&gt; Stopping the running version</span>
+<span class="t-step">&gt; Installing to C:\Program Files\CopySync Server</span>
+<span class="t-step">&gt; Registering the service CopySyncServer (relay address 100.101.102.103)</span>
+<span class="t-step">&gt; Allowing it through Windows Firewall</span>
+<span class="t-step">&gt; Starting</span>
+ √ Running
+
+Installed: copysync-server 1.3.3. It runs as a Windows service and starts with Windows.
+In CopySync on each computer, set Settings &gt; Signaling server to:
+
+ <span class="t-url">ws://100.101.102.103:8787/signal</span>
+
+ Program C:\Program Files\CopySync Server
+ Logs C:\ProgramData\CopySync Server\server.log
+ Restart Restart-Service CopySyncServer (in an administrator PowerShell)
+ Uninstall double-click uninstall.cmd</pre>
+ </figure>
+ </div>
+ </div>
+ </section>
+
+ <section class="os" id="macos" role="tabpanel" aria-labelledby="tab-macos">
+ <h3 class="os-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>macOS</h3>
+ <div class="os-grid">
+ <div class="os-steps">
+ <ol class="steps">
+ <li>「ターミナル」を開き、次の行を順に実行します。最後の行はあなたのアドレスに置き換えます:
+ <div class="code">
+ <button class="copy" type="button" data-done="コピーしました">コピー</button>
+<pre><code>curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-macos.tar.gz
+tar xzf copysync-server-macos.tar.gz
+cd copysync-server-macos
+./install.sh 100.101.102.103</code></pre>
+ </div></li>
+ <li>最後に表示されるアドレスが <code>ws://100.101.102.103:8787/signal</code> になっていれば成功です。</li>
+ </ol>
+ <ul class="points">
+ <li>インストール済みなら、同じフォルダーで <code>./install.sh 100.101.102.103</code> を実行するだけです。設定は引き継がれます。</li>
+ <li><strong>macOS のファイアウォールがオンなら、</strong>スクリプトの最後に copysync-server を許可するコマンドが表示されます。</li>
+ </ul>
+ </div>
+ <div class="os-figures">
+ <figure class="term" role="img" aria-label="ターミナルで ./install.sh 100.101.102.103 を実行した出力。最後にアドレス ws://100.101.102.103:8787/signal を表示">
+ <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">copysync-server-macos — zsh</span></div>
+<pre class="t-body"><span class="t-prompt">%</span> ./install.sh 100.101.102.103
+<span class="t-step">▶ Stopping the running version</span>
+<span class="t-step">▶ Installing to /Users/me/Library/Application Support/CopySync Server</span>
+<span class="t-step">▶ Writing the LaunchAgent (relay address 100.101.102.103)</span>
+<span class="t-step">▶ Starting</span>
+ ✓ Running
+
+Installed: copysync-server 1.3.3. It starts whenever you log in to this Mac.
+In CopySync on each computer, set Settings → Signaling server to:
+
+ <span class="t-url">ws://100.101.102.103:8787/signal</span>
+
+ Logs /Users/me/Library/Logs/CopySync/server.log
+ Restart launchctl kickstart -k gui/501/com.copysync.server
+ Uninstall ./install.sh uninstall</pre>
+ </figure>
+ </div>
+ </div>
+ </section>
+
+ <section class="os" id="linux" role="tabpanel" aria-labelledby="tab-linux">
+ <h3 class="os-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>Linux</h3>
+ <div class="os-grid">
+ <div class="os-steps">
+ <ol class="steps">
+ <li>次の行を順に実行します。最後の行はあなたのアドレスに置き換えます:<span class="aside">ARM では <code>amd64</code> を <code>arm64</code> に置き換えます。</span>
+ <div class="code">
+ <button class="copy" type="button" data-done="コピーしました">コピー</button>
+<pre><code>curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-linux-amd64.tar.gz
+tar xzf copysync-server-linux-amd64.tar.gz
+cd copysync-server-linux-amd64
+sudo ./install.sh 100.101.102.103</code></pre>
+ </div></li>
+ <li>最後に表示されるアドレスが <code>ws://100.101.102.103:8787/signal</code> になっていれば成功です。</li>
+ </ol>
+ <div class="switch">
+ <p><strong>インストール済みの場合:</strong>Linux のスクリプトは既存の設定を書き換えません。設定の中の古いアドレスを Tailscale のアドレスに置き換え(下の <code>192.168.1.20</code> を元のアドレスに)、サービスを再起動します:</p>
+ <div class="code">
+ <button class="copy" type="button" data-done="コピーしました">コピー</button>
+<pre><code>sudo sed -i 's/192.168.1.20/100.101.102.103/g' /etc/copysync/server.env
+sudo systemctl restart copysync-server</code></pre>
+ </div>
+ </div>
+ </div>
+ <div class="os-figures">
+ <figure class="term" role="img" aria-label="sudo ./install.sh 100.101.102.103 の出力。最後にアドレス ws://100.101.102.103:8787/signal を表示">
+ <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">ssh 100.101.102.103</span></div>
+<pre class="t-body"><span class="t-prompt">$</span> sudo ./install.sh 100.101.102.103
+<span class="t-step">▶ Installing the binary to /usr/local/bin</span>
+<span class="t-step">▶ Writing the systemd unit</span>
+<span class="t-step">▶ Writing /etc/copysync/server.env (relay address 100.101.102.103)</span>
+<span class="t-step">▶ Starting</span>
+ ✓ Running
+
+Installed: copysync-server 1.3.3
+In CopySync on each computer, set Settings → Signaling server to:
+
+ <span class="t-url">ws://100.101.102.103:8787/signal</span>
+
+ Config /etc/copysync/server.env
+ Logs journalctl -u copysync-server -f
+ Restart systemctl restart copysync-server
+ Uninstall sudo ./install.sh uninstall
+
+Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768-60999 (relay ports, assigned by the OS)</pre>
+ </figure>
+ </div>
+ </div>
+ </section>
+ </div>
+ </div>
+ </section>
+
+ <section class="section" id="check" aria-labelledby="check-title">
+ <div class="wrap">
+ <p class="eyebrow">ステップ 4</p>
+ <h2 id="check-title">外から確認する</h2>
+ <p class="intro">自宅のネットワークの外にあるコンピューター(スマートフォンのテザリングにつないだノートパソコンなど)で Tailscale が接続されていることを確かめ、ブラウザーで <code>http://100.101.102.103:8787/healthz</code> を開きます。次の 1 行が表示されれば、外からサーバーに届いています。</p>
+ <figure class="browser" role="img" aria-label="ブラウザーで http://100.101.102.103:8787/healthz を開くと、サーバーの状態 ok とバージョンが表示される">
+ <div class="b-bar"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="b-url">http://100.101.102.103:8787/healthz</span></div>
+ <pre class="b-body">{"status":"ok","version":"1.3.3"}</pre>
+ </figure>
+ <p class="note">開けない場合は、下の<a href="#faq">よくある質問</a>をご覧ください。</p>
+ </div>
+ </section>
+
+ <section class="section" id="clients" aria-labelledby="clients-title">
+ <div class="wrap">
+ <p class="eyebrow">ステップ 5</p>
+ <h2 id="clients-title">各コンピューターにアドレスを入力</h2>
+ <ol class="flow">
+ <li><h3>設定を開く</h3><p>各コンピューターで CopySync を開き、「設定」に進みます。サーバーを動かしているコンピューターも同じです。</p></li>
+ <li><h3>Tailscale のアドレスを入力</h3><p>「シグナリングサーバー」に <code>ws://100.101.102.103:8787/signal</code>(あなたのアドレス)を入力し、Return か Enter を押します。</p></li>
+ <li><h3>状態を確認</h3><p>「接続状態」が緑の「接続済み」になれば完了です。まだペアリングしていなければ「デバイス」でペアリングします。</p></li>
+ </ol>
+ <figure class="shot">
+ <img src="../../assets/screenshots/ja/settings-tailscale-dark.png" width="2112" height="1472" loading="lazy" alt="CopySync の設定画面:シグナリングサーバーは ws://100.101.102.103:8787/signal、接続状態は接続済み">
+ </figure>
+ <p class="note">自宅のコンピューターにも LAN ではなく Tailscale のアドレスを入力してください。持ち出しても入れ直す必要がありません。全員が自宅にいるときも、データは自宅のネットワークの中だけを流れます。</p>
+ </div>
+ </section>
+
+ <section class="section" id="faq" aria-labelledby="faq-title">
+ <div class="wrap">
+ <h2 id="faq-title">よくある質問</h2>
+ <div class="faq">
+ <details>
+ <summary>「直接接続」と表示されるのに遅い</summary>
+ <div class="answer"><p>CopySync の「直接接続」は、2 台が Tailscale のネットワーク上で直接つながっていることを指します。Tailscale 自身が 2 台を P2P でつなげないときは、遠くにあることもある DERP サーバーで中継します。</p><p>ターミナルで <code>tailscale ping 相手のアドレス</code> を実行し、via DERP なら Tailscale が中継中、via IP とポートなら P2P です。会社や学校のネットワークでは中継になりやすく、DERP サーバーを自分で立てるか、別のツールを試す方法があります。</p></div>
+ </details>
+ <details>
+ <summary>接続状態が「未接続」のまま</summary>
+ <div class="answer"><p>まずそのコンピューターで Tailscale が接続されているか確かめ、ブラウザーで <code>http://サーバーの Tailscale アドレス:8787/healthz</code> を開きます。</p><p>開けなければ、サーバーのコンピューターがスリープしていないか、そこで Tailscale がオンラインか(Windows では Run unattended、Mac ではログインしたまま)、サーバーが LAN のアドレスのままになっていないか、Mac や Linux のファイアウォールに止められていないかを確認します。</p></div>
+ </details>
+ <details>
+ <summary>すべてのコンピューターに Tailscale が必要ですか?</summary>
+ <div class="answer"><p>はい。入っていないコンピューターは 100 で始まるアドレスに届かず、外のコンピューターからもそのコンピューターに届きません。自宅から動かないものも同じです。</p></div>
+ </details>
+ <details>
+ <summary>LAN の手順でインストール済みです。やり直しが必要?</summary>
+ <div class="answer"><p>いいえ。Tailscale のアドレスを付けてインストールスクリプトをもう一度実行し(Linux は設定を編集)、各コンピューターのサーバーアドレスを Tailscale のものに変えるだけです。ペアリング済みのデバイスはそのままです。</p></div>
+ </details>
+ <details>
+ <summary>Tailscale にコピーした内容は見えますか?</summary>
+ <div class="answer"><p>見えません。Tailscale の接続は WireGuard でエンドツーエンド暗号化され、その中を CopySync 自身の DTLS 暗号化接続が通ります。どちらの層も開けるのは 2 台のコンピューターだけです。Tailscale のサーバーが扱うのはデバイスの公開鍵とアドレスだけで、中継サーバーも暗号化されたパケットを転送するだけです。</p></div>
+ </details>
+ <details>
+ <summary>サーバーの Tailscale アドレスは変わりますか?</summary>
+ <div class="answer"><p>通常は変わりません。アドレスはデバイスに付いていて、再起動やネットワークの変更でも同じです。デバイスを Tailscale から削除して追加し直したときだけ変わります。</p></div>
+ </details>
+ <details>
+ <summary>グローバル IP があります。Tailscale は必要?</summary>
+ <div class="answer"><p>不要です。グローバル IP を持つマシンにサーバーを置き、すべてのコンピューターにそのアドレスを入力してください(<a href="../../ja/#cloud">トップページの設置手順</a>)。</p></div>
+ </details>
+ </div>
+ </div>
+ </section>
+
+ <section class="closing" aria-labelledby="closing-title">
+ <div class="wrap">
+ <h2 class="display" id="closing-title">サーバーは自宅に。<br>クリップボードはあなたと一緒に。</h2>
+ <div class="cta">
+ <a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Mac 版をダウンロード</a>
+ <a class="button quiet" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Windows 版をダウンロード</a>
+ </div>
+ <p class="note">バージョン 1.3.3、無料・オープンソース。macOS 13 以降(Intel と Apple シリコン)、Windows 10・11。</p>
+ <a class="source" href="../../ja/server/">LAN での設置手順に戻る</a>
+ </div>
+ </section>
+ </main>
+
+ <footer class="footer">
+ <div class="wrap">
+ <p>CopySync は GNU AGPL-3.0 のオープンソースです。商用ライセンスもあります。</p>
+ <nav aria-label="フッターのリンク">
+ <a href="https://github.com/baiyuze/copysync/releases">すべてのリリース</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/CHANGELOG.md">更新履歴</a>
+ <a href="https://baiyuze.github.io/copysync/design/nat-traversal.html">技術資料(中国語)</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/LICENSING.md">商用ライセンス</a>
+ <a href="https://github.com/baiyuze/copysync/issues">問題を報告</a>
+ </nav>
+ <nav aria-label="言語">
+ <a href="../../tailscale/" hreflang="zh-CN" lang="zh-CN" data-lang="zh">简体中文</a>
+ <a href="../../en/tailscale/" hreflang="en" lang="en" data-lang="en">English</a>
+ <a href="../../ja/tailscale/" hreflang="ja" lang="ja" data-lang="ja" aria-current="page">日本語</a>
+ </nav>
+ </div>
+ </footer>
+
+ <script src="../../assets/site.js" defer></script>
+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
+</body>
+</html>
diff --git a/docs/llms.txt b/docs/llms.txt
index 1bb615a..45643a8 100644
--- a/docs/llms.txt
+++ b/docs/llms.txt
@@ -9,7 +9,7 @@ Key facts:
- Current version: 1.3.3, released 2026-10-11. The server now installs on Windows (as a service) and on a Mac (as a LaunchAgent) as well as Linux, and the website has a step-by-step guide for running it on a LAN. 1.3.2 stopped UU Remote placeholder files from looping through the history. 1.3.1: click a history item to preview images, including copied image files (PNG, JPEG, GIF, WebP, BMP; HEIC and TIFF on Mac), with arrows to step through several. 1.3.0 added an English and Japanese interface (follows the system language, switchable in Settings) and moves to the GNU AGPL-3.0 with an optional commercial license. 1.2.0 added the Windows client.
- Mac client: macOS 13 Ventura or later, universal binary for Intel and Apple silicon. Distributed as a DMG; not notarized by Apple, so the first launch needs "Open Anyway" in System Settings → Privacy & Security.
- Windows client: Windows 10 (21H2+) and Windows 11, x64. Per-user installer (CopySync-Setup.exe, no admin rights) or portable zip; not code-signed, so SmartScreen needs "More info → Run anyway" once. Runs in the notification area; pasted files are real files usable in Explorer, WeChat and Office. Skips content that password managers mark as sensitive.
-- Server: a single static Go binary for Linux (x86_64, ARM64), macOS or Windows 10/11 x64. Install scripts register it as a systemd service (Linux), a LaunchAgent (macOS) or a Windows service with a firewall rule (Windows), and default to the machine's LAN address; Docker Compose also works on Linux. On a LAN, any always-on computer can run it. Ports: 8787/tcp (signaling), 3478/udp (STUN/TURN), plus OS-assigned UDP relay ports. In mainland China, cloud providers intercept plain HTTP (including the WebSocket handshake) for domains without an ICP filing, so clients should use the server's IP.
+- Server: a single static Go binary for Linux (x86_64, ARM64), macOS or Windows 10/11 x64. Install scripts register it as a systemd service (Linux), a LaunchAgent (macOS) or a Windows service with a firewall rule (Windows), and default to the machine's LAN address; Docker Compose also works on Linux. On a LAN, any always-on computer can run it. No public IP is needed to sync across networks: keep the server on an always-on computer at home, put every computer on the same Tailscale network (or ZeroTier), install the server on its Tailscale address (100.x.y.z) and enter that address in every app. Ports: 8787/tcp (signaling), 3478/udp (STUN/TURN), plus OS-assigned UDP relay ports. In mainland China, cloud providers intercept plain HTTP (including the WebSocket handshake) for domains without an ICP filing, so clients should use the server's IP.
- Content synced: plain text, rich text (HTML plus a plain-text copy), images, files, folders.
- Works on multi-uplink networks (e.g. offices with two ISPs) that pick an uplink per destination: the client probes several STUN servers from one shared port to learn its address on every uplink and sends all of them to the peer. Diagnose with `copysync-cli nat`. If a connection lands on the relay first, the client retries the direct path with an ICE restart while idle.
- Items under 50 MB (adjustable 1 MB–1 GB) are pushed on copy; larger files sync as a record and are pulled on demand.
@@ -21,7 +21,9 @@ Key facts:
## Docs
- [Website (English)](https://baiyuze.github.io/copysync/en/), [简体中文](https://baiyuze.github.io/copysync/), [日本語](https://baiyuze.github.io/copysync/ja/)
+- [Quick start](https://baiyuze.github.io/copysync/en/start/): install the apps, choose how to run the server, enter its address and pair ([中文](https://baiyuze.github.io/copysync/start/), [日本語](https://baiyuze.github.io/copysync/ja/start/))
- [Run the server on your LAN](https://baiyuze.github.io/copysync/en/server/): step-by-step guide for Windows, macOS and Linux ([中文](https://baiyuze.github.io/copysync/server/), [日本語](https://baiyuze.github.io/copysync/ja/server/))
+- [Use it across networks with Tailscale](https://baiyuze.github.io/copysync/en/tailscale/): sync between home and office without a public IP, with the server at home on its Tailscale address ([中文](https://baiyuze.github.io/copysync/tailscale/), [日本語](https://baiyuze.github.io/copysync/ja/tailscale/))
- [README (English)](https://github.com/baiyuze/copysync/blob/main/README.md): features and getting started ([中文](https://github.com/baiyuze/copysync/blob/main/README.zh-CN.md))
- [How it works](https://github.com/baiyuze/copysync/blob/main/guide/how-it-works.md): architecture, NAT traversal, security model, fallbacks, lessons learned
- [Troubleshooting](https://github.com/baiyuze/copysync/blob/main/guide/troubleshooting.md) and known limitations
diff --git a/docs/server/index.html b/docs/server/index.html
index 1f1cfa8..bb91389 100644
--- a/docs/server/index.html
+++ b/docs/server/index.html
@@ -30,8 +30,9 @@
<div class="wrap">
<a class="brand" href=".././" aria-label="CopySync 首页"><img src="../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
<nav aria-label="页面导航">
+ <a href="../start/">快速开始</a>
<a class="wide" href=".././#how">工作原理</a>
- <a class="wide" href=".././#install">安装</a>
+ <a class="wide" href=".././#faq">常见问题</a>
<a href="./" aria-current="page">部署服务器</a>
<a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
<a href="../en/server/" hreflang="en" lang="en" data-lang="en">English</a>
@@ -46,11 +47,13 @@
<p class="crumb"><a href=".././">CopySync</a> / 部署服务器</p>
<h1 class="display">在局域网里部署服务器</h1>
<p class="lede">家里或办公室的电脑在同一个网络里,就不需要云服务器。找一台常开的电脑,下载、运行一个脚本,再把它显示的地址填进每台电脑的 CopySync 里。</p>
+ <p class="hero-aside">两台电脑不在同一个网络,又没有公网 IP?看<a href="../tailscale/">用 Tailscale 跨网络使用</a>。</p>
<ol class="guide-toc">
<li><a href="#prepare">准备</a></li>
<li><a href="#install">安装服务器</a></li>
<li><a href="#check">检查</a></li>
<li><a href="#clients">填地址</a></li>
+ <li><a href="#away">离开家也想用</a></li>
<li><a href="#faq">常见问题</a></li>
</ol>
</div>
@@ -106,7 +109,7 @@
<div><dt>一台常开的电脑</dt><dd>Windows 10、11,macOS 13 及以上,或者任意 Linux 都行,两台电脑中的一台也可以。它关机或睡眠时同步会暂停,醒来后自动恢复。NAS、软路由、Mac mini 这类一直开着的设备最合适,内存只占约 15 MB。</dd></div>
<div><dt>一个固定的地址</dt><dd>在路由器的「DHCP 静态分配」(也叫「地址保留」「IP 与 MAC 绑定」)里给这台电脑固定一个地址。不然路由器换了地址,每台电脑都要重新填。</dd></div>
<div><dt>在同一个网络里</dt><dd>设备连同一个 Wi‑Fi 或有线网络就行。访客网络、开了「AP 隔离」的 Wi‑Fi 不让设备互相访问,需要换个网络或关掉隔离。</dd></div>
- <div><dt>离开这个网络就不同步</dt><dd>服务器只在局域网里访问得到,笔记本带出门后,回来才会继续同步。想在任何地方都能同步,需要一台有公网 IP 的服务器,见首页的「安装」。</dd></div>
+ <div><dt>离开这个网络也想同步</dt><dd>服务器只在局域网里访问得到。笔记本带出门也想同步,给每台电脑装上 Tailscale 就行,不需要公网 IP,见<a href="../tailscale/">Tailscale 教程</a>。</dd></div>
</dl>
</div>
</section>
@@ -327,7 +330,20 @@ sudo ./install.sh</code></pre>
<figure class="shot">
<img src="../assets/screenshots/settings-lan-dark.png" width="2112" height="1472" loading="lazy" alt="CopySync 的设置页:信令服务器地址填着 ws://192.168.1.20:8787/signal,连接状态显示已连接">
</figure>
- <p class="note">还没装 App?见首页的<a href=".././#install">安装</a>。</p>
+ <p class="note">还没装 App?见<a href="../start/">快速开始</a>。</p>
+ </div>
+ </section>
+
+ <section class="section" id="away" aria-labelledby="away-title">
+ <div class="wrap">
+ <div class="callout">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><rect class="p-dev" x="39" y="20" width="44" height="12" rx="3"/><rect class="p-dev" x="39" y="35" width="44" height="12" rx="3"/><path class="p-sig" d="M180 64V54H61v-7M61 64V54"/><path class="p-data" d="M85 80h71"/><rect class="p-dev" x="42" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M37 93h48"/><rect class="p-dev" x="161" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M156 93h48"/></svg>
+ <div>
+ <h2 id="away-title">离开家,也想同步?</h2>
+ <p>给每台电脑装上 Tailscale,服务器用它分配的地址,在公司、在外面都能连回家里的服务器,就像在同一个局域网里。不需要公网 IP,也不用改路由器。</p>
+ <a class="button" href="../tailscale/">用 Tailscale 跨网络使用</a>
+ </div>
+ </div>
</div>
</section>
@@ -349,7 +365,7 @@ sudo ./install.sh</code></pre>
</details>
<details>
<summary>离开局域网以后还能同步吗?</summary>
- <div class="answer"><p>不能,服务器只在局域网里访问得到。要在外面也能用,可以把服务器部署到有公网 IP 的机器上(首页的「安装」里有步骤),或者用 Tailscale、ZeroTier 这类组网工具把设备连进同一个虚拟局域网,服务器地址填它在虚拟网里的地址。</p></div>
+ <div class="answer"><p>能,加上 Tailscale 就行:每台电脑装上 Tailscale、登录同一个账号,服务器用 Tailscale 地址安装,客户端也填这个地址,不需要公网 IP。步骤见<a href="../tailscale/">用 Tailscale 跨网络使用</a>。</p><p>有公网 IP 的话,也可以把服务器部署到云服务器上,见<a href=".././#cloud">首页的部署步骤</a>。</p></div>
</details>
<details>
<summary>用国内的云服务器,填域名连不上、填 IP 却能连?</summary>
diff --git a/docs/sitemap.xml b/docs/sitemap.xml
index 37cafc4..4b88c7c 100644
--- a/docs/sitemap.xml
+++ b/docs/sitemap.xml
@@ -25,6 +25,27 @@
<xhtml:link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://baiyuze.github.io/copysync/"/>
</url>
+ <url>
+ <loc>https://baiyuze.github.io/copysync/start/</loc>
+ <lastmod>2026-10-11</lastmod>
+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/start/"/>
+ <xhtml:link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/start/"/>
+ <xhtml:link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/start/"/>
+ </url>
+ <url>
+ <loc>https://baiyuze.github.io/copysync/en/start/</loc>
+ <lastmod>2026-10-11</lastmod>
+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/start/"/>
+ <xhtml:link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/start/"/>
+ <xhtml:link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/start/"/>
+ </url>
+ <url>
+ <loc>https://baiyuze.github.io/copysync/ja/start/</loc>
+ <lastmod>2026-10-11</lastmod>
+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/start/"/>
+ <xhtml:link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/start/"/>
+ <xhtml:link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/start/"/>
+ </url>
<url>
<loc>https://baiyuze.github.io/copysync/server/</loc>
<lastmod>2026-10-11</lastmod>
@@ -46,6 +67,27 @@
<xhtml:link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/server/"/>
<xhtml:link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/server/"/>
</url>
+ <url>
+ <loc>https://baiyuze.github.io/copysync/tailscale/</loc>
+ <lastmod>2026-10-11</lastmod>
+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/tailscale/"/>
+ <xhtml:link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/tailscale/"/>
+ <xhtml:link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/tailscale/"/>
+ </url>
+ <url>
+ <loc>https://baiyuze.github.io/copysync/en/tailscale/</loc>
+ <lastmod>2026-10-11</lastmod>
+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/tailscale/"/>
+ <xhtml:link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/tailscale/"/>
+ <xhtml:link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/tailscale/"/>
+ </url>
+ <url>
+ <loc>https://baiyuze.github.io/copysync/ja/tailscale/</loc>
+ <lastmod>2026-10-11</lastmod>
+ <xhtml:link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/tailscale/"/>
+ <xhtml:link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/tailscale/"/>
+ <xhtml:link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/tailscale/"/>
+ </url>
<url>
<loc>https://baiyuze.github.io/copysync/design/nat-traversal.html</loc>
<lastmod>2026-10-11</lastmod>
diff --git a/docs/start/index.html b/docs/start/index.html
new file mode 100644
index 0000000..1bc6c4f
--- /dev/null
+++ b/docs/start/index.html
@@ -0,0 +1,195 @@
+<!doctype html>
+<html lang="zh-CN">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>快速开始:三步用上 CopySync</title>
+ <meta name="description" content="第一次用 CopySync?在每台电脑上安装 App,选一种方式部署服务器(局域网、Tailscale 或云服务器),填好地址再配对,就能在 Mac 与 Windows 之间复制粘贴。不需要公网 IP。">
+ <link rel="canonical" href="https://baiyuze.github.io/copysync/start/">
+ <link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/start/">
+ <link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/start/">
+ <link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/start/">
+ <meta name="theme-color" content="#141416">
+ <meta property="og:type" content="article">
+ <meta property="og:site_name" content="CopySync">
+ <meta property="og:title" content="快速开始:三步用上 CopySync">
+ <meta property="og:description" content="第一次用 CopySync?在每台电脑上安装 App,选一种方式部署服务器(局域网、Tailscale 或云服务器),填好地址再配对,就能在 Mac 与 Windows 之间复制粘贴。不需要公网 IP。">
+ <meta property="og:url" content="https://baiyuze.github.io/copysync/start/">
+ <meta property="og:image" content="https://baiyuze.github.io/copysync/assets/og.png">
+ <meta property="og:locale" content="zh_CN">
+ <meta name="twitter:card" content="summary_large_image">
+ <link rel="icon" href="../assets/favicon.svg" type="image/svg+xml">
+ <link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png">
+ <link rel="apple-touch-icon" href="../assets/apple-touch-icon.png">
+ <link rel="stylesheet" href="../assets/site.css">
+</head>
+<body>
+ <a class="skip" href="#main">跳到正文</a>
+
+ <header class="bar">
+ <div class="wrap">
+ <a class="brand" href=".././" aria-label="CopySync 首页"><img src="../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
+ <nav aria-label="页面导航">
+ <a href="./" aria-current="page">快速开始</a>
+ <a class="wide" href=".././#how">工作原理</a>
+ <a class="wide" href=".././#faq">常见问题</a>
+ <a href="../server/">部署服务器</a>
+ <a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
+ <a href="../en/start/" hreflang="en" lang="en" data-lang="en">English</a>
+ <a href="../ja/start/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
+ </nav>
+ </div>
+ </header>
+
+ <main id="main">
+ <section class="hero guide-hero">
+ <div class="wrap">
+ <p class="crumb"><a href=".././">CopySync</a> / 快速开始</p>
+ <h1 class="display">快速开始</h1>
+ <p class="lede">装好 App,准备一台服务器,再把两台电脑配对。第一次大约十分钟,之后复制就会自动同步。</p>
+ <ol class="guide-toc">
+ <li><a href="#app">安装 App</a></li>
+ <li><a href="#server">准备服务器</a></li>
+ <li><a href="#connect">填服务器地址</a></li>
+ <li><a href="#pair">配对</a></li>
+ </ol>
+ </div>
+ </section>
+
+ <section class="section" id="app" aria-labelledby="app-title">
+ <div class="wrap">
+ <p class="eyebrow">第 1 步</p>
+ <h2 id="app-title">在每台电脑上安装 App</h2>
+ <p class="intro">要同步的每台电脑都装一个,Mac 与 Windows 可以混用。</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <div class="qs-app">
+ <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>Mac</h3>
+ <ol class="steps">
+ <li>下载 CopySync.dmg,打开后把 CopySync 拖进「应用程序」。</li>
+ <li>从「应用程序」里打开。<span class="aside">第一次会提示「无法验证开发者」:到「系统设置 → 隐私与安全性」,点页面下方的「仍要打开」。</span></li>
+ <li>点「启用后台同步」。系统询问是否允许读取剪贴板时,选择允许。</li>
+ </ol>
+ <a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Mac 版</a>
+ </div>
+ <div class="qs-app">
+ <h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>
+ <ol class="steps">
+ <li>运行 CopySync-Setup.exe,不需要管理员权限。<span class="aside">提示「Windows 已保护你的电脑」时,点「更多信息」,再点「仍要运行」。</span></li>
+ <li>打开 CopySync,点「启用后台同步」。关掉窗口后它在右下角的托盘里继续运行。</li>
+ </ol>
+ <a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Windows 版</a>
+ </div>
+ </div>
+ <figure class="shot">
+ <img src="../assets/screenshots/welcome-dark.png" width="2112" height="1472" alt="第一次打开 CopySync:提示启用后台同步">
+ </figure>
+ </div>
+ </div>
+ </section>
+
+ <section class="section" id="server" aria-labelledby="server-title">
+ <div class="wrap">
+ <p class="eyebrow">第 2 步</p>
+ <h2 id="server-title">准备一台服务器</h2>
+ <p class="intro">两台电脑靠它找到彼此,复制的内容不会存在上面。CopySync 不提供公共服务器,按你的情况选一种:</p>
+ <div class="paths">
+ <a class="path" href="../server/">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/><rect class="p-dev" x="98" y="16" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="31" width="44" height="12" rx="3"/><path class="p-sig" d="M58 66V30h40M182 66V30h-40"/><path class="p-data" d="M82 82h76"/><rect class="p-dev" x="39" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M34 95h48"/><rect class="p-dev" x="163" y="66" width="38" height="24" rx="3"/><path class="p-dev" d="M158 95h48"/></svg>
+ <span class="path-tag">不需要公网 IP</span>
+ <span class="path-when">两台电脑在同一个网络里</span>
+ <h3>局域网部署</h3>
+ <p>家里或办公室,连着同一个 Wi‑Fi 或有线网络。服务器装在其中一台常开的 Windows、Mac 或 Linux 电脑上,运行一个脚本就好。</p>
+ <span class="path-go">局域网部署教程 →</span>
+ </a>
+ <a class="path" href="../tailscale/">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/><rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/><rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/><rect class="p-dev" x="39" y="20" width="44" height="12" rx="3"/><rect class="p-dev" x="39" y="35" width="44" height="12" rx="3"/><path class="p-sig" d="M180 64V54H61v-7M61 64V54"/><path class="p-data" d="M85 80h71"/><rect class="p-dev" x="42" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M37 93h48"/><rect class="p-dev" x="161" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M156 93h48"/></svg>
+ <span class="path-tag">不需要公网 IP</span>
+ <span class="path-when">一台在家,一台在公司</span>
+ <h3>局域网部署 + Tailscale</h3>
+ <p>服务器照样放在家里。每台电脑装上 Tailscale,就像在同一个局域网里:笔记本带到哪儿,复制都能同步。</p>
+ <span class="path-go">Tailscale 教程 →</span>
+ </a>
+ <a class="path" href=".././#cloud">
+ <svg viewBox="0 0 240 112" aria-hidden="true"><rect class="p-dev" x="98" y="8" width="44" height="12" rx="3"/><rect class="p-dev" x="98" y="23" width="44" height="12" rx="3"/><rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/><rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/><path class="p-sig" d="M56 64V22h42M184 64V22h-42"/><path class="p-data" d="M80 80h80"/><rect class="p-dev" x="37" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M32 93h48"/><rect class="p-dev" x="165" y="64" width="38" height="24" rx="3"/><path class="p-dev" d="M160 93h48"/></svg>
+ <span class="path-tag">需要公网 IP</span>
+ <span class="path-when">有一台公网服务器</span>
+ <h3>云服务器部署</h3>
+ <p>一台有公网 IP 的 Linux 云主机,最低配置就够。所有电脑直接连它,不用另装组网工具。</p>
+ <span class="path-go">部署步骤 →</span>
+ </a>
+ </div>
+ <p class="note">装好后,安装脚本最后会显示一个地址,形如 <code>ws://192.168.1.20:8787/signal</code>,下一步要用。</p>
+ </div>
+ </section>
+
+ <section class="section" id="connect" aria-labelledby="connect-title">
+ <div class="wrap">
+ <p class="eyebrow">第 3 步</p>
+ <h2 id="connect-title">在每台电脑上填服务器地址</h2>
+ <ol class="flow">
+ <li><h3>打开设置</h3><p>在每台电脑上打开 CopySync,进入「设置」。服务器所在的那台电脑也一样。</p></li>
+ <li><h3>填入地址</h3><p>在「信令服务器地址」里填上一步显示的地址,按回车保存。</p></li>
+ <li><h3>看连接状态</h3><p>「连接状态」变成绿色的「已连接」,这台电脑就准备好了。</p></li>
+ </ol>
+ <figure class="shot">
+ <img src="../assets/screenshots/settings-lan-dark.png" width="2112" height="1472" loading="lazy" alt="CopySync 的设置页:信令服务器地址填着 ws://192.168.1.20:8787/signal,连接状态显示已连接">
+ </figure>
+ <p class="note">一直是「未连接」?看<a href="../server/#faq">常见问题</a>。</p>
+ </div>
+ </section>
+
+ <section class="section" id="pair" aria-labelledby="pair-title">
+ <div class="wrap">
+ <p class="eyebrow">第 4 步</p>
+ <h2 id="pair-title">把两台电脑配对</h2>
+ <p class="intro">每两台电脑之间配对一次,之后就不用再管了。</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <ol class="steps">
+ <li>在一台电脑上打开「设备」,点「添加设备」,会显示一个 6 位配对码,5 分钟内有效。</li>
+ <li>在另一台电脑上同样点「添加设备」,切到「输入配对码」,输入它。</li>
+ <li>两块屏幕会显示同样的两行安全指纹。逐字核对一致后,再点确认。<span class="aside">这一步防止有人在中间冒充你的设备,不要跳过。</span></li>
+ </ol>
+ <figure class="figure-card qs-verify">
+ <img src="../assets/screenshots/card-verify-dark.png" width="1120" height="800" loading="lazy" alt="配对时的「核对安全指纹」对话框,显示 R8NF-2WTC-QL5J,要求与另一台电脑上显示的完全一致">
+ </figure>
+ </div>
+ <figure class="shot">
+ <img src="../assets/screenshots/pairing-dark.png" width="2112" height="1472" loading="lazy" alt="添加设备:显示配对码 K7MP2X,在另一台设备上输入它">
+ </figure>
+ </div>
+ </div>
+ </section>
+
+ <section class="closing" aria-labelledby="closing-title">
+ <div class="wrap">
+ <h2 class="display" id="closing-title">复制试试。</h2>
+ <p class="lede">在一台电脑上复制文字、图片或文件,到另一台按 ⌘V 或 Ctrl+V。两边复制过的内容都在「复制记录」里。</p>
+ <p class="note">遇到问题:<a href="../server/#faq">局域网部署的常见问题</a> · <a href="../tailscale/#faq">Tailscale 的常见问题</a> · <a href="https://github.com/baiyuze/copysync/issues">反馈问题</a></p>
+ </div>
+ </section>
+ </main>
+
+ <footer class="footer">
+ <div class="wrap">
+ <p>CopySync 以 GNU AGPL-3.0 开源,另提供商业授权。</p>
+ <nav aria-label="页脚链接">
+ <a href="https://github.com/baiyuze/copysync/releases">所有版本</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/CHANGELOG.md">更新记录</a>
+ <a href="https://baiyuze.github.io/copysync/design/nat-traversal.html">技术方案</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/LICENSING.md">商业授权</a>
+ <a href="https://github.com/baiyuze/copysync/issues">反馈问题</a>
+ </nav>
+ <nav aria-label="语言">
+ <a href="../start/" hreflang="zh-CN" lang="zh-CN" data-lang="zh" aria-current="page">简体中文</a>
+ <a href="../en/start/" hreflang="en" lang="en" data-lang="en">English</a>
+ <a href="../ja/start/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
+ </nav>
+ </div>
+ </footer>
+
+ <script src="../assets/site.js" defer></script>
+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
+</body>
+</html>
diff --git a/docs/tailscale/index.html b/docs/tailscale/index.html
new file mode 100644
index 0000000..b26eba0
--- /dev/null
+++ b/docs/tailscale/index.html
@@ -0,0 +1,425 @@
+<!doctype html>
+<html lang="zh-CN">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>用 Tailscale 跨网络使用 CopySync:没有公网 IP 也能在家和公司之间同步</title>
+ <meta name="description" content="服务器放在家里一台常开的电脑上,每台电脑装上 Tailscale,就像在同一个局域网里:不需要公网 IP,也不用改路由器,在公司、在外面都能同步剪贴板。Windows、Mac、Linux 图文教程。">
+ <link rel="canonical" href="https://baiyuze.github.io/copysync/tailscale/">
+ <link rel="alternate" hreflang="zh-CN" href="https://baiyuze.github.io/copysync/tailscale/">
+ <link rel="alternate" hreflang="en" href="https://baiyuze.github.io/copysync/en/tailscale/">
+ <link rel="alternate" hreflang="ja" href="https://baiyuze.github.io/copysync/ja/tailscale/">
+ <meta name="theme-color" content="#141416">
+ <meta property="og:type" content="article">
+ <meta property="og:site_name" content="CopySync">
+ <meta property="og:title" content="用 Tailscale 跨网络使用 CopySync:没有公网 IP 也能在家和公司之间同步">
+ <meta property="og:description" content="服务器放在家里一台常开的电脑上,每台电脑装上 Tailscale,就像在同一个局域网里:不需要公网 IP,也不用改路由器,在公司、在外面都能同步剪贴板。Windows、Mac、Linux 图文教程。">
+ <meta property="og:url" content="https://baiyuze.github.io/copysync/tailscale/">
+ <meta property="og:image" content="https://baiyuze.github.io/copysync/assets/og.png">
+ <meta property="og:locale" content="zh_CN">
+ <meta name="twitter:card" content="summary_large_image">
+ <link rel="icon" href="../assets/favicon.svg" type="image/svg+xml">
+ <link rel="icon" href="../assets/favicon-32.png" sizes="32x32" type="image/png">
+ <link rel="apple-touch-icon" href="../assets/apple-touch-icon.png">
+ <link rel="stylesheet" href="../assets/site.css">
+</head>
+<body>
+ <a class="skip" href="#main">跳到正文</a>
+
+ <header class="bar">
+ <div class="wrap">
+ <a class="brand" href=".././" aria-label="CopySync 首页"><img src="../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
+ <nav aria-label="页面导航">
+ <a href="../start/">快速开始</a>
+ <a class="wide" href=".././#how">工作原理</a>
+ <a class="wide" href=".././#faq">常见问题</a>
+ <a href="../server/">部署服务器</a>
+ <a class="wide" href="https://github.com/baiyuze/copysync">GitHub</a>
+ <a href="../en/tailscale/" hreflang="en" lang="en" data-lang="en">English</a>
+ <a href="../ja/tailscale/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
+ </nav>
+ </div>
+ </header>
+
+ <main id="main">
+ <section class="hero guide-hero">
+ <div class="wrap">
+ <p class="crumb"><a href=".././">CopySync</a> / <a href="../server/">部署服务器</a> / Tailscale</p>
+ <h1 class="display">用 Tailscale 跨网络使用</h1>
+ <p class="lede">没有公网 IP,也能在家和公司之间同步。服务器照样放在家里,每台电脑装上 Tailscale,它们就像在同一个局域网里,不用改路由器,也不用买云服务器。</p>
+ <ol class="guide-toc">
+ <li><a href="#join">装 Tailscale</a></li>
+ <li><a href="#address">查地址</a></li>
+ <li><a href="#install">安装服务器</a></li>
+ <li><a href="#check">检查</a></li>
+ <li><a href="#clients">填地址</a></li>
+ <li><a href="#faq">常见问题</a></li>
+ </ol>
+ </div>
+ </section>
+
+ <section class="section" id="overview" aria-labelledby="overview-title">
+ <div class="wrap">
+ <h2 id="overview-title">像在同一个局域网里</h2>
+ <p class="intro">Tailscale 是一个组网工具:装了它、登录同一个账号的设备,各自分到一个固定的 100 开头的地址,不管实际在哪个网络里,都能用这个地址互相访问。CopySync 的服务器用这个地址安装,客户端也填这个地址,其余和局域网部署一样。</p>
+ <figure class="diagram">
+ <svg viewBox="0 0 960 460" role="img" aria-labelledby="ts-title ts-desc">
+ <title id="ts-title">通过 Tailscale 使用 CopySync</title>
+ <desc id="ts-desc">服务器在家里,Mac 在公司,Windows 在家里,三台设备都装了 Tailscale,在同一个虚拟局域网里各有一个 100 开头的地址。两台电脑通过信令连接到服务器 100.101.102.103,复制的内容在两台电脑之间直连传输,直连不通时经服务器中转。</desc>
+ <rect class="d-ts" x="8" y="8" width="944" height="404" rx="22"/>
+ <text class="d-ts-label" x="32" y="42">Tailscale 虚拟局域网:每台设备一个 100 开头的地址</text>
+ <rect class="d-box" x="340" y="64" width="280" height="122" rx="14"/>
+ <text class="d-title" x="480" y="102" text-anchor="middle">服务器</text>
+ <text class="d-sub" x="480" y="130" text-anchor="middle">在家里,一直开着</text>
+ <text class="d-ip" x="480" y="164" text-anchor="middle">100.101.102.103</text>
+ <path class="d-sig" d="M150 266V96H340"/>
+ <path class="d-sig" d="M810 266V96H620"/>
+ <path class="d-relay" d="M206 266V154H340"/>
+ <path class="d-relay" d="M754 266V154H620"/>
+ <text class="d-note" x="164" y="86">信令 TCP 8787</text>
+ <text class="d-note" x="220" y="214">中转 UDP 3478,直连不通时</text>
+ <rect class="d-box" x="40" y="266" width="240" height="126" rx="14"/>
+ <text class="d-title" x="160" y="306" text-anchor="middle">Mac</text>
+ <text class="d-sub" x="160" y="334" text-anchor="middle">在公司</text>
+ <text class="d-ip" x="160" y="368" text-anchor="middle">100.88.20.5</text>
+ <rect class="d-box" x="680" y="266" width="240" height="126" rx="14"/>
+ <text class="d-title" x="800" y="306" text-anchor="middle">Windows</text>
+ <text class="d-sub" x="800" y="334" text-anchor="middle">在家里</text>
+ <text class="d-ip" x="800" y="368" text-anchor="middle">100.92.41.17</text>
+ <path class="d-direct" d="M280 330H680"/>
+ <text class="d-label" x="480" y="316" text-anchor="middle">直连,两层加密</text>
+ <text class="d-note" x="480" y="358" text-anchor="middle">复制的内容只在两台电脑之间传输</text>
+ <g class="d-legend" transform="translate(40 444)">
+ <path class="d-direct" d="M0 0H28"/><text x="38" y="5">数据(直连)</text>
+ <path class="d-relay" d="M250 0H278"/><text x="288" y="5">数据(中转,备用)</text>
+ <path class="d-sig" d="M560 0H588"/><text x="598" y="5">信令</text>
+ </g>
+ </svg>
+ </figure>
+ <ul class="points ports">
+ <li><strong>服务器还在家里。</strong>任意一台常开的 Windows、Mac 或 Linux 电脑,和局域网部署一样。</li>
+ <li><strong>每台电脑都装 Tailscale,</strong>登录同一个账号。服务器所在的那台也要装。</li>
+ <li><strong>两层加密。</strong>Tailscale 的 WireGuard 隧道里,跑的是 CopySync 自己端到端加密的连接,Tailscale 和你的服务器都看不到内容。</li>
+ </ul>
+ </div>
+ </section>
+
+ <section class="section" id="prepare" aria-labelledby="prepare-title">
+ <div class="wrap">
+ <h2 id="prepare-title">开始之前</h2>
+ <dl class="fallbacks">
+ <div><dt>一台常开的电脑</dt><dd>当服务器用,要求和<a href="../server/#prepare">局域网部署</a>一样,关机或睡眠时同步会暂停。它的 Tailscale 地址不会变,不需要在路由器里固定地址。</dd></div>
+ <div><dt>一个 Tailscale 账号</dt><dd>个人使用免费,用 Google、Microsoft、GitHub 或 Apple 账号就能登录。所有设备登录同一个账号。</dd></div>
+ <div><dt>每台电脑都装 Tailscale</dt><dd>Windows、macOS、Linux 都有客户端。用 CopySync 的电脑都要装,一直待在家里的那台也一样。</dd></div>
+ <div><dt>用 ZeroTier 也行</dt><dd>其他能给每台设备分配固定虚拟地址的组网工具,做法相同:服务器用它分配的地址安装,客户端填这个地址。下面以 Tailscale 为例。</dd></div>
+ </dl>
+ </div>
+ </section>
+
+ <section class="section" id="join" aria-labelledby="join-title">
+ <div class="wrap">
+ <p class="eyebrow">第 1 步</p>
+ <h2 id="join-title">在每台电脑上装 Tailscale</h2>
+ <p class="intro">服务器所在的电脑和每台要同步的电脑,都装上并登录同一个账号。</p>
+ <div class="os-grid qs-grid">
+ <div class="os-steps">
+ <ol class="steps">
+ <li>到 Tailscale 官网下载对应系统的客户端并安装。<span class="aside">Linux 上运行 <code>curl -fsSL https://tailscale.com/install.sh | sh</code>,再运行 <code>sudo tailscale up</code>,打开它给出的链接登录。</span></li>
+ <li>打开 Tailscale,登录。每台电脑都用同一个账号。</li>
+ <li>登录后,在 Tailscale 的管理后台能看到所有设备,每台都有一个 100 开头的地址。</li>
+ </ol>
+ <a class="button" href="https://tailscale.com/download"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Tailscale</a>
+ </div>
+ <div class="os-figures">
+ <figure class="browser machines" role="img" aria-label="Tailscale 管理后台的设备列表(示意):mac-mini 是服务器,地址 100.101.102.103;macbook-pro 是 100.88.20.5;home-pc 是 100.92.41.17">
+ <div class="b-bar"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="b-url">login.tailscale.com/admin/machines</span></div>
+ <table>
+ <thead><tr><th scope="col">设备</th><th scope="col">Tailscale 地址</th><th scope="col">系统</th></tr></thead>
+ <tbody>
+ <tr class="hl"><td>mac-mini <em>服务器</em></td><td>100.101.102.103</td><td>macOS</td></tr>
+ <tr><td>macbook-pro</td><td>100.88.20.5</td><td>macOS</td></tr>
+ <tr><td>home-pc</td><td>100.92.41.17</td><td>Windows</td></tr>
+ </tbody>
+ </table>
+ </figure>
+ </div>
+ </div>
+ <div class="server-notes">
+ <h3>服务器所在的那台电脑,再多做一步</h3>
+ <ul class="points">
+ <li><strong>Windows:</strong>在任务栏右下角的 Tailscale 图标上右键,在「Preferences」里勾选「Run unattended」。不然注销之后 Tailscale 会断开,外面的电脑就连不上服务器了。</li>
+ <li><strong>Mac:</strong>保持登录、不睡眠,确认 Tailscale 登录后会自动打开。CopySync 的服务器也是登录后才运行。</li>
+ <li><strong>关掉密钥过期:</strong>Tailscale 默认每 180 天要求设备重新登录一次。在管理后台的 Machines 页面,点服务器那一行最右边的菜单,选「Disable key expiry」。</li>
+ </ul>
+ </div>
+ </div>
+ </section>
+
+ <section class="section" id="address" aria-labelledby="address-title">
+ <div class="wrap">
+ <p class="eyebrow">第 2 步</p>
+ <h2 id="address-title">查服务器的 Tailscale 地址</h2>
+ <p class="intro">在服务器所在的电脑上点菜单栏(Windows 上是任务栏右下角)的 Tailscale 图标,菜单里能看到本机的地址;或者在终端里运行 <code>tailscale ip -4</code>。</p>
+ <div class="address-term">
+ <figure class="term" role="img" aria-label="在终端里运行 tailscale ip -4,输出本机的 Tailscale 地址 100.101.102.103">
+ <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">mac-mini — zsh</span></div>
+<pre class="t-body"><span class="t-prompt">%</span> tailscale ip -4
+<span class="t-url">100.101.102.103</span></pre>
+ </figure>
+ </div>
+ <p class="note">下面都以 <code>100.101.102.103</code> 为例,换成你的地址。</p>
+ </div>
+ </section>
+
+ <section class="section" id="install" aria-labelledby="install-title">
+ <div class="wrap">
+ <p class="eyebrow">第 3 步</p>
+ <h2 id="install-title">用这个地址安装服务器</h2>
+ <p class="intro">安装脚本默认用局域网地址,这里要带上 Tailscale 地址,外面的电脑才用得到服务器的中转。已经照<a href="../server/">局域网教程</a>装过的,带上地址再运行一次即可,原来的设置保留。</p>
+ <div class="os-tabs" data-tabs>
+ <div class="tablist" role="tablist" aria-label="服务器所在电脑的系统" hidden>
+ <button type="button" role="tab" id="tab-windows" aria-controls="windows">Windows</button>
+ <button type="button" role="tab" id="tab-macos" aria-controls="macos">macOS</button>
+ <button type="button" role="tab" id="tab-linux" aria-controls="linux">Linux</button>
+ </div>
+
+ <section class="os" id="windows" role="tabpanel" aria-labelledby="tab-windows">
+ <h3 class="os-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3>
+ <div class="os-grid">
+ <div class="os-steps">
+ <ol class="steps">
+ <li>下载 copysync-server-windows-amd64.zip,右键选「全部解压缩」。已经装过的,用原来解压出的文件夹。</li>
+ <li>打开解压出的文件夹,在窗口顶部的地址栏里输入 <code>cmd</code>,按回车,打开命令提示符。</li>
+ <li>运行 <code>install.cmd 100.101.102.103</code>(换成你的地址),弹出用户账户控制时点「是」。</li>
+ <li>安装在新打开的窗口里进行。最后显示的地址应当是 <code>ws://100.101.102.103:8787/signal</code>。</li>
+ </ol>
+ <a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-windows-amd64.zip"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Windows 版服务器</a>
+ <ul class="points">
+ <li><strong>防火墙已经放行:</strong>脚本添加的入站规则对所有网络生效,Tailscale 的网卡也包括在内。</li>
+ <li>提示「Windows 已保护你的电脑」时,点「更多信息」,再点「仍要运行」。</li>
+ </ul>
+ </div>
+ <div class="os-figures">
+ <figure class="term" role="img" aria-label="在解压出的文件夹里打开命令提示符,运行 install.cmd 100.101.102.103">
+ <div class="t-bar win"><span class="t-tab"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M3 5.5 10.5 4.5v7H3zM11.5 4.4 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.4z"/></svg>命令提示符</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div>
+<pre class="t-body"><span class="t-prompt">C:\Users\me\Downloads\copysync-server-windows-amd64&gt;</span>install.cmd 100.101.102.103</pre>
+ </figure>
+ <figure class="term" role="img" aria-label="install.cmd 运行完的窗口:最后显示客户端要填的地址 ws://100.101.102.103:8787/signal">
+ <div class="t-bar win"><span class="t-tab"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M3 5.5 10.5 4.5v7H3zM11.5 4.4 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.4z"/></svg>管理员: Windows PowerShell</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div>
+<pre class="t-body"><span class="t-step">&gt; 停止旧版本</span>
+<span class="t-step">&gt; 安装到 C:\Program Files\CopySync Server</span>
+<span class="t-step">&gt; 注册服务 CopySyncServer(中转地址 100.101.102.103)</span>
+<span class="t-step">&gt; 在 Windows 防火墙里放行</span>
+<span class="t-step">&gt; 启动</span>
+ √ 已启动
+
+安装完成:copysync-server 1.3.3,作为 Windows 服务开机自动运行
+在每台电脑的 CopySync「设置 → 信令服务器地址」填:
+
+ <span class="t-url">ws://100.101.102.103:8787/signal</span>
+
+ 程序 C:\Program Files\CopySync Server
+ 日志 C:\ProgramData\CopySync Server\server.log
+ 重启 Restart-Service CopySyncServer(管理员 PowerShell)
+ 卸载 双击 uninstall.cmd</pre>
+ </figure>
+ </div>
+ </div>
+ </section>
+
+ <section class="os" id="macos" role="tabpanel" aria-labelledby="tab-macos">
+ <h3 class="os-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="11" rx="1.5"/><path d="M2 19h20"/></svg>macOS</h3>
+ <div class="os-grid">
+ <div class="os-steps">
+ <ol class="steps">
+ <li>打开「终端」,逐行运行,最后一行换成你的地址:
+ <div class="code">
+ <button class="copy" type="button" data-done="已复制">复制</button>
+<pre><code>curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-macos.tar.gz
+tar xzf copysync-server-macos.tar.gz
+cd copysync-server-macos
+./install.sh 100.101.102.103</code></pre>
+ </div></li>
+ <li>最后显示的地址应当是 <code>ws://100.101.102.103:8787/signal</code>。</li>
+ </ol>
+ <ul class="points">
+ <li>已经装过的,在原来的文件夹里运行 <code>./install.sh 100.101.102.103</code> 即可,原来的设置保留。</li>
+ <li><strong>开着系统防火墙的话,</strong>脚本最后会给出放行 copysync-server 的命令。</li>
+ </ul>
+ </div>
+ <div class="os-figures">
+ <figure class="term" role="img" aria-label="在终端里运行 ./install.sh 100.101.102.103 的输出,最后显示客户端要填的地址 ws://100.101.102.103:8787/signal">
+ <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">copysync-server-macos — zsh</span></div>
+<pre class="t-body"><span class="t-prompt">%</span> ./install.sh 100.101.102.103
+<span class="t-step">▶ 停止旧版本</span>
+<span class="t-step">▶ 安装到 /Users/me/Library/Application Support/CopySync Server</span>
+<span class="t-step">▶ 写入 LaunchAgent(中转地址 100.101.102.103)</span>
+<span class="t-step">▶ 启动</span>
+ ✓ 已启动
+
+安装完成:copysync-server 1.3.3,登录这台 Mac 后自动运行
+在每台电脑的 CopySync「设置 → 信令服务器地址」填:
+
+ <span class="t-url">ws://100.101.102.103:8787/signal</span>
+
+ 日志 /Users/me/Library/Logs/CopySync/server.log
+ 重启 launchctl kickstart -k gui/501/com.copysync.server
+ 卸载 ./install.sh uninstall</pre>
+ </figure>
+ </div>
+ </div>
+ </section>
+
+ <section class="os" id="linux" role="tabpanel" aria-labelledby="tab-linux">
+ <h3 class="os-title"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/></svg>Linux</h3>
+ <div class="os-grid">
+ <div class="os-steps">
+ <ol class="steps">
+ <li>逐行运行,最后一行换成你的地址:<span class="aside">ARM 设备把 <code>amd64</code> 换成 <code>arm64</code>。</span>
+ <div class="code">
+ <button class="copy" type="button" data-done="已复制">复制</button>
+<pre><code>curl -LO https://github.com/baiyuze/copysync/releases/latest/download/copysync-server-linux-amd64.tar.gz
+tar xzf copysync-server-linux-amd64.tar.gz
+cd copysync-server-linux-amd64
+sudo ./install.sh 100.101.102.103</code></pre>
+ </div></li>
+ <li>最后显示的地址应当是 <code>ws://100.101.102.103:8787/signal</code>。</li>
+ </ol>
+ <div class="switch">
+ <p><strong>已经装过的:</strong>Linux 的安装脚本不会改动已有的配置。把配置里原来的地址换成 Tailscale 地址(下面的 <code>192.168.1.20</code> 换成你原来的地址),再重启服务:</p>
+ <div class="code">
+ <button class="copy" type="button" data-done="已复制">复制</button>
+<pre><code>sudo sed -i 's/192.168.1.20/100.101.102.103/g' /etc/copysync/server.env
+sudo systemctl restart copysync-server</code></pre>
+ </div>
+ </div>
+ </div>
+ <div class="os-figures">
+ <figure class="term" role="img" aria-label="运行 sudo ./install.sh 100.101.102.103 的输出,最后显示客户端要填的地址 ws://100.101.102.103:8787/signal">
+ <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">ssh 100.101.102.103</span></div>
+<pre class="t-body"><span class="t-prompt">$</span> sudo ./install.sh 100.101.102.103
+<span class="t-step">▶ 安装二进制到 /usr/local/bin</span>
+<span class="t-step">▶ 写入 systemd 单元</span>
+<span class="t-step">▶ 生成配置 /etc/copysync/server.env(中转地址 100.101.102.103)</span>
+<span class="t-step">▶ 启动</span>
+ ✓ 已启动
+
+安装完成:copysync-server 1.3.3
+在每台电脑的 CopySync「设置 → 信令服务器地址」填:
+
+ <span class="t-url">ws://100.101.102.103:8787/signal</span>
+
+ 配置 /etc/copysync/server.env
+ 日志 journalctl -u copysync-server -f
+ 重启 systemctl restart copysync-server
+ 卸载 sudo ./install.sh uninstall
+
+防火墙需放行:TCP 8787(信令)、UDP 3478(STUN 与 TURN)、UDP 32768-60999(中转端口,系统随机分配)</pre>
+ </figure>
+ </div>
+ </div>
+ </section>
+ </div>
+ </div>
+ </section>
+
+ <section class="section" id="check" aria-labelledby="check-title">
+ <div class="wrap">
+ <p class="eyebrow">第 4 步</p>
+ <h2 id="check-title">从外面检查一下</h2>
+ <p class="intro">找一台不在家里网络的电脑,或者让笔记本连上手机热点,确认 Tailscale 已连接,在浏览器里打开 <code>http://100.101.102.103:8787/healthz</code>。看到下面这一行,在外面也能访问到服务器了。</p>
+ <figure class="browser" role="img" aria-label="浏览器打开 http://100.101.102.103:8787/healthz,页面显示服务器的状态 ok 与版本号">
+ <div class="b-bar"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="b-url">http://100.101.102.103:8787/healthz</span></div>
+ <pre class="b-body">{"status":"ok","version":"1.3.3"}</pre>
+ </figure>
+ <p class="note">打不开的话,看下面的<a href="#faq">常见问题</a>。</p>
+ </div>
+ </section>
+
+ <section class="section" id="clients" aria-labelledby="clients-title">
+ <div class="wrap">
+ <p class="eyebrow">第 5 步</p>
+ <h2 id="clients-title">在每台电脑上填地址</h2>
+ <ol class="flow">
+ <li><h3>打开设置</h3><p>在每台电脑上打开 CopySync,进入「设置」。服务器所在的那台电脑也一样。</p></li>
+ <li><h3>填 Tailscale 地址</h3><p>在「信令服务器地址」里填 <code>ws://100.101.102.103:8787/signal</code>(换成你的地址),按回车保存。</p></li>
+ <li><h3>看连接状态</h3><p>「连接状态」变成绿色的「已连接」就好了。还没配对的话,在「设备」里配对。</p></li>
+ </ol>
+ <figure class="shot">
+ <img src="../assets/screenshots/settings-tailscale-dark.png" width="2112" height="1472" loading="lazy" alt="CopySync 的设置页:信令服务器地址填着 ws://100.101.102.103:8787/signal,连接状态显示已连接">
+ </figure>
+ <p class="note">家里的电脑也填 Tailscale 地址,不要填局域网地址:这样电脑在家、在外面,地址都不用改。都在家时,数据照样只在家里的网络里走。</p>
+ </div>
+ </section>
+
+ <section class="section" id="faq" aria-labelledby="faq-title">
+ <div class="wrap">
+ <h2 id="faq-title">常见问题</h2>
+ <div class="faq">
+ <details>
+ <summary>设备之间显示「直连」,速度却很慢?</summary>
+ <div class="answer"><p>CopySync 显示的「直连」,指两台电脑在 Tailscale 的虚拟网里直接相连。Tailscale 自己打不通两台电脑时,会经它在境外的中转服务器(DERP)转发,在国内用就会慢。</p><p>在终端里运行 <code>tailscale ping 对方的地址</code>:显示 via DERP,说明 Tailscale 在中转;显示 via 一个 IP 和端口,就是点对点。公司网络、校园网比较容易遇到中转,可以自建 DERP 中转服务器,或者换一种组网工具。</p></div>
+ </details>
+ <details>
+ <summary>连接状态一直是「未连接」?</summary>
+ <div class="answer"><p>先确认这台电脑的 Tailscale 已连接,再在浏览器里打开 <code>http://服务器的 Tailscale 地址:8787/healthz</code>。</p><p>打不开的话,看服务器那台电脑是不是睡眠了、Tailscale 是否在线(Windows 上要勾选 Run unattended,Mac 上要保持登录),服务器是不是还用着局域网地址,以及 Mac、Linux 上的防火墙有没有放行。</p></div>
+ </details>
+ <details>
+ <summary>一定要每台电脑都装 Tailscale 吗?</summary>
+ <div class="answer"><p>是的。没装的电脑访问不到 100 开头的地址,在外面的电脑也找不到它。一直待在家里的那台也要装。</p></div>
+ </details>
+ <details>
+ <summary>已经照局域网教程装好了,要从头来吗?</summary>
+ <div class="answer"><p>不用。带上 Tailscale 地址把安装脚本再运行一次(Linux 上改一下配置),然后在每台电脑上把服务器地址改成 Tailscale 地址。已经配对的设备不用重新配对。</p></div>
+ </details>
+ <details>
+ <summary>Tailscale 能看到我复制的内容吗?</summary>
+ <div class="answer"><p>不能。Tailscale 的连接用 WireGuard 端到端加密,里面跑的又是 CopySync 自己的 DTLS 加密连接,两层都只有两台电脑能解开。Tailscale 的服务器只交换设备的公钥和地址,中转服务器也只转发加密后的数据包。</p></div>
+ </details>
+ <details>
+ <summary>服务器的 Tailscale 地址会变吗?</summary>
+ <div class="answer"><p>一般不会。地址跟着设备走,重启、换网络都不变;只有把设备从 Tailscale 里删掉再重新加入,才会换一个。</p></div>
+ </details>
+ <details>
+ <summary>我有公网 IP,还需要 Tailscale 吗?</summary>
+ <div class="answer"><p>不需要。把服务器部署在有公网 IP 的机器上,所有电脑填它的公网地址就行,见<a href=".././#cloud">首页的部署步骤</a>。</p></div>
+ </details>
+ </div>
+ </div>
+ </section>
+
+ <section class="closing" aria-labelledby="closing-title">
+ <div class="wrap">
+ <h2 class="display" id="closing-title">服务器在家里,<br>复制跟着你走。</h2>
+ <div class="cta">
+ <a class="button" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Mac 版</a>
+ <a class="button quiet" href="https://github.com/baiyuze/copysync/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Windows 版</a>
+ </div>
+ <p class="note">版本 1.3.3,免费开源。macOS 13 及以上,Intel 与 Apple 芯片通用;Windows 10、11。</p>
+ <a class="source" href="../server/">回到局域网部署教程</a>
+ </div>
+ </section>
+ </main>
+
+ <footer class="footer">
+ <div class="wrap">
+ <p>CopySync 以 GNU AGPL-3.0 开源,另提供商业授权。</p>
+ <nav aria-label="页脚链接">
+ <a href="https://github.com/baiyuze/copysync/releases">所有版本</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/CHANGELOG.md">更新记录</a>
+ <a href="https://baiyuze.github.io/copysync/design/nat-traversal.html">技术方案</a>
+ <a href="https://github.com/baiyuze/copysync/blob/main/LICENSING.md">商业授权</a>
+ <a href="https://github.com/baiyuze/copysync/issues">反馈问题</a>
+ </nav>
+ <nav aria-label="语言">
+ <a href="../tailscale/" hreflang="zh-CN" lang="zh-CN" data-lang="zh" aria-current="page">简体中文</a>
+ <a href="../en/tailscale/" hreflang="en" lang="en" data-lang="en">English</a>
+ <a href="../ja/tailscale/" hreflang="ja" lang="ja" data-lang="ja">日本語</a>
+ </nav>
+ </div>
+ </footer>
+
+ <script src="../assets/site.js" defer></script>
+ <script type="module" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "7ee226baf4a949a397c4bfd69a9e7461"}'></script>
+</body>
+</html>
diff --git a/guide/troubleshooting.md b/guide/troubleshooting.md
index 67572ca..312ecd1 100644
--- a/guide/troubleshooting.md
+++ b/guide/troubleshooting.md
@@ -8,6 +8,9 @@ Check that the address starts with `ws://`, uses port 8787 and ends in `/signal`
**A cloud server in mainland China works by IP but not by domain**
Providers in mainland China intercept plain HTTP requests for domains without an ICP filing, on any port, and answer with a redirect to a block page. The WebSocket handshake is a plain HTTP request, so it's intercepted too. Enter the IP, as in `ws://<server IP>:8787/signal`, or file the domain.
+**Using Tailscale: devices show Direct, but transfers are slow**
+Direct means the two computers connect directly on the Tailscale network. When Tailscale can't connect them peer to peer, it relays through its DERP servers, which can be far away. Run `tailscale ping <other device>`: "via DERP" means Tailscale is relaying, "via <IP>:<port>" means peer to peer. Also make sure the server was installed on its Tailscale address and every computer uses `ws://<Tailscale address>:8787/signal`; see the [Tailscale guide](https://baiyuze.github.io/copysync/en/tailscale/).
+
**`.uuremote_…` file records keep appearing while UU Remote is running**
Upgrade both clients to 1.3.2 or later. UU Remote puts temporary placeholder files on the system clipboard; older CopySync clients recorded and forwarded them as ordinary files. The new version filters the confirmed `.uuremote_aeawv` followed by digits before scanning, recording or sending, keeps ordinary files in mixed selections, ignores placeholder-only incoming offers, and removes placeholder-only history on startup without deleting UU's source files. Ordinary empty, hidden and large files are unaffected. The 50 MB threshold controls automatic transfer; there is no need to disable UU's UDP P2P. Other clipboard sync tools can still duplicate ordinary content; use one clipboard sync provider if needed. See the [investigation and validation notes](../design/uu-remote-clipboard.md).
diff --git a/guide/troubleshooting.zh-CN.md b/guide/troubleshooting.zh-CN.md
index 3c5497a..cd7a67f 100644
--- a/guide/troubleshooting.zh-CN.md
+++ b/guide/troubleshooting.zh-CN.md
@@ -8,6 +8,9 @@
**国内云服务器:填域名连不上,填 IP 能连**
域名没有备案时,国内云厂商会拦截访问它的明文 HTTP 请求,任何端口都一样,返回一个跳转到拦截页的响应。WebSocket 握手就是明文 HTTP 请求,所以同样被拦。地址里直接填 IP(`ws://<服务器IP>:8787/signal`),或者给域名备案。
+**用 Tailscale 时显示「直连」,传输却很慢**
+「直连」指两台电脑在 Tailscale 的虚拟网里直接相连。Tailscale 自己打不通两台电脑时,会经它在境外的中转服务器(DERP)转发,在国内用就会慢。运行 `tailscale ping <对方>`:显示 via DERP 说明 Tailscale 在中转,显示 via <IP>:<端口> 才是点对点。另外确认服务器是用 Tailscale 地址安装的,每台电脑填的都是 `ws://<Tailscale 地址>:8787/signal`,见 [Tailscale 教程](https://baiyuze.github.io/copysync/tailscale/)。
+
**UU 远程开启时不断新增 `.uuremote_…` 文件记录**
升级两端客户端到 1.3.2 或更新的版本。UU 远程会把临时占位文件写入系统剪贴板,旧版 CopySync 会把它们当成普通文件再次转发。新版在扫描、入库和发送之前过滤已确认的 `.uuremote_aeawv` 加数字命名;混合选择保留正常文件,接收端忽略纯占位记录,启动时清理历史里的纯占位记录(不删除 UU 的源文件)。普通空文件、隐藏文件和大文件不受这条规则影响。50 MB 是自动传输阈值,不是故障原因;无需关闭 UU 的 UDP P2P。其他剪贴板同步工具仍可能造成普通内容重复,可只保留一个工具负责剪贴板同步。技术与验证记录见 [UU 远程兼容修复](../design/uu-remote-clipboard.md)。
diff --git a/server/deploy/README.md b/server/deploy/README.md
index 72f0ab5..bb6fba5 100644
--- a/server/deploy/README.md
+++ b/server/deploy/README.md
@@ -4,14 +4,17 @@ The server only does two things: it lets your devices find each other (signaling
CopySync 的服务器只做两件事:让你的设备找到彼此(信令),以及在设备之间打不通直连时转发加密后的数据(TURN 中转)。它不存账号,也看不到你复制的内容。
-Step-by-step guide with screenshots / 带截图的图文教程:
-<https://baiyuze.github.io/copysync/server/>
+Step-by-step guides with screenshots / 带截图的图文教程:
+
+- On your LAN / 局域网部署:<https://baiyuze.github.io/copysync/server/>
+- Across networks with Tailscale, no public IP / 用 Tailscale 跨网络使用,不需要公网 IP:<https://baiyuze.github.io/copysync/tailscale/>
## Where to run it / 放在哪里
| | Requirement 要求 |
|---|---|
| **On your LAN** 局域网 | Any always-on Windows 10/11, macOS 13+ or Linux computer on the same network, one of your own computers included. Reserve its address in the router. 同一网络里任意一台常开的 Windows 10/11、macOS 13 以上或 Linux 电脑,自己的电脑也行;在路由器里给它固定地址。 |
+| **Across networks, no public IP** 跨网络,没有公网 IP | The same always-on computer at home, with [Tailscale](https://tailscale.com) on it and on every client; see [Tailscale](#tailscale) below. 同样放在家里一台常开的电脑上,它和每台客户端都装上 Tailscale,见下面的 [Tailscale](#tailscale)。 |
| **Across the internet** 跨公网 | A Linux machine with a public IP; the smallest VPS is enough. 一台有公网 IP 的 Linux 机器,最低配的云主机就够。 |
It uses about 15 MB of RAM. 内存占用约 15 MB。
@@ -95,15 +98,36 @@ docker compose up -d
必须使用 `network_mode: host`(compose 文件里已经写好):TURN 为每个会话随机分配 UDP 端口,端口映射模式下这些端口不可达。同样的原因,Mac 与 Windows 上的 Docker Desktop 不适用,请用安装脚本。
+## Tailscale
+
+Without a public IP you can still sync across networks: keep the server at home and join every computer, the server's included, to the same [Tailscale](https://tailscale.com) network. Each device gets a fixed `100.x.y.z` address that the others can reach from anywhere. Install the server on that address, so the TURN relay is reachable through Tailscale too, and enter it in every app.
+
+没有公网 IP 也能跨网络使用:服务器照样放在家里,所有电脑(包括服务器所在的那台)加入同一个 [Tailscale](https://tailscale.com) 网络。每台设备会分到一个固定的 `100.x.y.z` 地址,在哪儿都能互相访问。服务器用这个地址安装(TURN 中转也就能通过 Tailscale 访问到),每台电脑也填这个地址。
+
+```bash
+tailscale ip -4 # the server's Tailscale address / 服务器的 Tailscale 地址,例如 100.101.102.103
+install.cmd 100.101.102.103 # Windows
+./install.sh 100.101.102.103 # macOS
+sudo ./install.sh 100.101.102.103 # Linux, fresh install / Linux 首次安装
+```
+
+Windows and macOS switch to the new address when you run the script again. The Linux script keeps an existing config, so replace the old address (it appears in `-turn-ip` and `-stun`) in `/etc/copysync/server.env` and run `systemctl restart copysync-server`. Then use `ws://100.101.102.103:8787/signal` in the apps, at home too.
+
+Windows 与 macOS 带上新地址再运行一次脚本即可切换。Linux 的脚本不改已有配置:把 `/etc/copysync/server.env` 里原来的地址(`-turn-ip` 与 `-stun` 两处)换成 Tailscale 地址,再 `systemctl restart copysync-server`。之后每台电脑都填 `ws://100.101.102.103:8787/signal`,家里的也一样。
+
+On the server computer: turn on **Run unattended** in Tailscale on Windows (otherwise it disconnects when you sign out), and **Disable key expiry** for it in the Tailscale admin console. If CopySync shows Direct but transfers are slow, `tailscale ping <peer>` tells you whether Tailscale itself is relaying through DERP. The same approach works with ZeroTier or any tool that gives each device a fixed virtual address.
+
+服务器所在的电脑:Windows 上在 Tailscale 里打开 **Run unattended**(否则注销后会断开),并在 Tailscale 管理后台给它 **Disable key expiry**。CopySync 显示直连但传输很慢时,用 `tailscale ping <对方>` 看 Tailscale 自己是不是在经 DERP 中转。ZeroTier 等能给每台设备分配固定虚拟地址的工具,做法相同。
+
## Run it directly / 直接运行
```bash
./copysync-server -addr :8787 -turn-ip <address> -turn-secret <random string>
```
-`-turn-ip` is the address clients use to reach the relay: the LAN address on a LAN, the public IP on a cloud server. Without it there is no relay. `-log <file>` writes the log to a file instead of standard error. Run `copysync-server -h` for all options.
+`-turn-ip` is the address clients use to reach the relay: the LAN address on a LAN, the Tailscale address with Tailscale, the public IP on a cloud server. Without it there is no relay. `-log <file>` writes the log to a file instead of standard error. Run `copysync-server -h` for all options.
-`-turn-ip` 是客户端访问中转用的地址:局域网里填局域网地址,云服务器填公网 IP;不填就没有中转。`-log <文件>` 把日志写到文件而不是标准错误。全部参数见 `copysync-server -h`。
+`-turn-ip` 是客户端访问中转用的地址:局域网里填局域网地址,用 Tailscale 时填 Tailscale 地址,云服务器填公网 IP;不填就没有中转。`-log <文件>` 把日志写到文件而不是标准错误。全部参数见 `copysync-server -h`。
## Client setup / 客户端设置
diff --git a/tools/site/build.py b/tools/site/build.py
index c72a48f..a2bf9b3 100644
--- a/tools/site/build.py
+++ b/tools/site/build.py
@@ -1,4 +1,5 @@
-"""生成官网:docs/index.html(简体中文)、docs/en/、docs/ja/,以及 docs/design/ 下的技术方案页面。
+"""生成官网:docs/index.html(简体中文)、docs/en/、docs/ja/,每种语言下还有快速开始(start/)、
+局域网部署(server/)、用 Tailscale 跨网络使用(tailscale/)三个教程页面,以及 docs/design/ 下的技术方案页面。
python3 tools/site/build.py
@@ -34,8 +35,11 @@ LANGS = {
ANALYTICS = (" <script type=\"module\" src=\"https://static.cloudflareinsights.com/beacon.min.js\" "
"data-cf-beacon='{\"token\": \"7ee226baf4a949a397c4bfd69a9e7461\"}'></script>\n")
-# 「在局域网里部署服务器」教程,每种语言目录下一份
+# 教程页面,每种语言目录下各一份:在局域网里部署服务器、快速开始、用 Tailscale 跨网络使用
GUIDE = "server/"
+START = "start/"
+TAILSCALE = "tailscale/"
+SUBPAGES = [START, GUIDE, TAILSCALE]
# 放到网站上的技术方案:文件名 → 网页名。其他 design/*.md 链接到 GitHub
DESIGN_DOCS = {"nat-traversal.md": "nat-traversal", "windows-client.md": "windows-client"}
@@ -126,13 +130,96 @@ def footer(c: dict, code: str, up: str, sub: str = "") -> str:
</footer>"""
-def cta(c: dict) -> str:
+def cta(c: dict, start: str = "") -> str:
+ """两个下载按钮。start 是快速开始页面的地址,给了就在下面加一行链接。"""
+ link = f'\n <a class="start-link" href="{start}">{c["start_link"]}</a>' if start else ""
return f"""
<div class="cta">
<a class="button" href="{DL}CopySync.dmg">{DOWN}{c["dl_mac"]}</a>
<a class="button quiet" href="{DL}CopySync-Setup.exe">{DOWN}{c["dl_win"]}</a>
</div>
- <p class="note">{c["dl_note"]}</p>"""
+ <p class="note">{c["dl_note"]}</p>{link}"""
+
+
+def header(c: dict, code: str, up: str, sub: str = "") -> str:
+ """顶栏。sub 是当前的教程页面(START、GUIDE 等),首页为空。窄屏只留不带 wide 的几项。"""
+ path = LANGS[code][0]
+ if sub:
+ home = up + (path or "./")
+ base = up + path # 语言根目录,教程页面互相链接用
+ else:
+ home, base = "", ""
+
+ def page(target: str, label: str) -> str:
+ if target == sub:
+ return f'<a href="./" aria-current="page">{label}</a>'
+ return f'<a href="{base}{target}">{label}</a>'
+
+ return f""" <header class="bar">
+ <div class="wrap">
+ <a class="brand" href="{home or "./"}" aria-label="{c["home_label"]}"><img src="{up}assets/icon.svg" alt="" width="26" height="26">CopySync</a>
+ <nav aria-label="{c["nav_label"]}">
+ {page(START, c["nav_start"])}
+ <a class="wide" href="{home}#how">{c["nav_how"]}</a>
+ <a class="wide" href="{home}#faq">{c["nav_faq"]}</a>
+ {page(GUIDE, c["nav_server"])}
+ <a class="wide" href="{REPO}">GitHub</a>
+ {lang_links(code, up, sub)}
+ </nav>
+ </div>
+ </header>"""
+
+
+# 三种部署方式的小插图:设备是笔记本与服务器的轮廓,虚线框是一个网络,蓝线是复制的内容走的路
+def _laptop(x: int, y: int) -> str:
+ return (f'<rect class="p-dev" x="{x + 5}" y="{y}" width="38" height="24" rx="3"/>'
+ f'<path class="p-dev" d="M{x} {y + 29}h48"/>')
+
+
+def _server(x: int, y: int) -> str:
+ return (f'<rect class="p-dev" x="{x}" y="{y}" width="44" height="12" rx="3"/>'
+ f'<rect class="p-dev" x="{x}" y="{y + 15}" width="44" height="12" rx="3"/>')
+
+
+PATH_ART = {
+ # 同一个局域网:一个网络里,服务器在上,两台电脑在下
+ "lan": ('<rect class="p-net" x="6" y="6" width="228" height="100" rx="14"/>'
+ + _server(98, 16)
+ + '<path class="p-sig" d="M58 66V30h40M182 66V30h-40"/>'
+ + '<path class="p-data" d="M82 82h76"/>'
+ + _laptop(34, 66) + _laptop(158, 66)),
+ # 局域网 + Tailscale:家与公司是两个网络,蓝色虚线框把它们连成一个虚拟局域网
+ "ts": ('<rect class="p-ts" x="2" y="2" width="236" height="108" rx="16"/>'
+ '<rect class="p-net" x="12" y="12" width="98" height="88" rx="10"/>'
+ '<rect class="p-net" x="130" y="12" width="98" height="88" rx="10"/>'
+ + _server(39, 20)
+ + '<path class="p-sig" d="M180 64V54H61v-7M61 64V54"/>'
+ + '<path class="p-data" d="M85 80h71"/>'
+ + _laptop(37, 64) + _laptop(156, 64)),
+ # 云服务器:服务器在两个网络之外,两边都直接连它
+ "cloud": (_server(98, 8)
+ + '<rect class="p-net" x="6" y="50" width="100" height="56" rx="10"/>'
+ + '<rect class="p-net" x="134" y="50" width="100" height="56" rx="10"/>'
+ + '<path class="p-sig" d="M56 64V22h42M184 64V22h-42"/>'
+ + '<path class="p-data" d="M80 80h80"/>'
+ + _laptop(32, 64) + _laptop(160, 64)),
+}
+
+
+def paths(c: dict, base: str, home: str) -> str:
+ """三种部署方式的卡片。base 是语言根目录(教程页面在它下面),home 是首页地址(首页上为空)。"""
+ hrefs = [base + GUIDE, base + TAILSCALE, home + "#cloud"]
+ cards = []
+ for (tag, when, title, text, go), href, art in zip(c["paths"], hrefs, PATH_ART.values()):
+ cards.append(f""" <a class="path" href="{href}">
+ <svg viewBox="0 0 240 112" aria-hidden="true">{art}</svg>
+ <span class="path-tag">{tag}</span>
+ <span class="path-when">{when}</span>
+ <h3>{title}</h3>
+ <p>{text}</p>
+ <span class="path-go">{go}</span>
+ </a>""")
+ return '<div class="paths">\n' + "\n".join(cards) + "\n </div>"
def jsonld(c: dict, code: str, path: str, shots: str) -> str:
@@ -199,11 +286,8 @@ def home(code: str) -> str:
win_steps = "\n".join(f" <li>{s}</li>" for s in c["win_steps"])
ports = "\n".join(f" <tr><td>{p}</td><td>{u}</td></tr>" for p, u in c["ports"])
specs = "\n".join(f' <tr><th scope="row">{k}</th><td>{v}</td></tr>' for k, v in c["specs"])
- faq = "\n".join(
- f""" <details>
- <summary>{q}</summary>
- <div class="answer">{"".join(f"<p>{p}</p>" for p in answer)}</div>
- </details>""" for q, answer in c["faq"])
+ links = {"server": GUIDE, "ts": TAILSCALE, "start": START}
+ faq = faq_list(c["faq"], links)
d = c["diagram"]
return f"""<!doctype html>
@@ -238,25 +322,13 @@ def home(code: str) -> str:
<body>
<a class="skip" href="#main">{c["skip"]}</a>
- <header class="bar">
- <div class="wrap">
- <a class="brand" href="./" aria-label="{c["home_label"]}"><img src="{a}icon.svg" alt="" width="26" height="26">CopySync</a>
- <nav aria-label="{c["nav_label"]}">
- <a class="wide" href="#how">{c["nav_how"]}</a>
- <a class="wide" href="#install">{c["nav_install"]}</a>
- <a class="wide" href="#faq">{c["nav_faq"]}</a>
- <a href="{GUIDE}">{c["nav_server"]}</a>
- <a class="wide" href="{REPO}">GitHub</a>
- {lang_links(code, up)}
- </nav>
- </div>
- </header>
+{header(c, code, up)}
<main id="main">
<section class="hero">
<div class="wrap">
<h1 class="display">{c["h1"]}</h1>
- <p class="lede">{c["lede"]}</p>{cta(c)}
+ <p class="lede">{c["lede"]}</p>{cta(c, START)}
<div class="stage" data-play role="img" aria-label="{esc(c["stage_label"])}">
<figure class="device mac">
<div class="screen"><div class="desk">
@@ -284,6 +356,15 @@ def home(code: str) -> str:
</div>
</section>
+ <section class="section" id="deploy" aria-labelledby="deploy-title">
+ <div class="wrap">
+ <h2 id="deploy-title">{c["paths_h2"]}</h2>
+ <p class="intro">{c["paths_intro"]}</p>
+ {paths(c, "", "")}
+ <p class="note">{fill(c["paths_after"], links)}</p>
+ </div>
+ </section>
+
<section class="section" aria-labelledby="history-title">
<div class="wrap">
<h2 id="history-title">{c["history_h2"]}</h2>
@@ -417,7 +498,7 @@ def home(code: str) -> str:
<section class="section" id="install" aria-labelledby="install-title">
<div class="wrap">
<h2 id="install-title">{c["install_h2"]}</h2>
- <p class="intro">{c["install_intro"]}</p>
+ <p class="intro">{fill(c["install_intro"], links)}</p>
<div class="install">
<div>
<h3>{LAPTOP}Mac</h3>
@@ -435,6 +516,12 @@ def home(code: str) -> str:
</div>
<div>
<h3>{SERVER}{c["server_h3"]}</h3>
+ <p class="small">{c["server_lan"]}</p>
+ <div class="stack">
+ <a class="button" href="{GUIDE}">{c["server_guide"]}</a>
+ <a class="button quiet" href="{TAILSCALE}">{c["server_ts"]}</a>
+ </div>
+ <h4 id="cloud">{c["server_cloud"]}</h4>
<p class="small">{c["server_intro"]}</p>
<div class="code">
<button class="copy" type="button" data-done="{c["copied"]}">{c["copy"]}</button>
@@ -451,7 +538,6 @@ sudo ./install.sh {c["public_ip"]}</code></pre>
</tbody>
</table>
<p class="small">{c["server_docker"]}</p>
- <a class="button quiet" href="{GUIDE}">{c["server_guide"]}</a>
</div>
</div>
<p class="pairing">{c["pairing"]}</p>
@@ -482,7 +568,7 @@ sudo ./install.sh {c["public_ip"]}</code></pre>
<section class="closing" aria-labelledby="closing-title">
<div class="wrap">
- <h2 class="display" id="closing-title">{c["closing"]}</h2>{cta(c)}
+ <h2 class="display" id="closing-title">{c["closing"]}</h2>{cta(c, START)}
<a class="source" href="{REPO}">{c["source"]}</a>
</div>
</section>
@@ -608,10 +694,11 @@ WINDOWS_LOGO = ('<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"
'<path d="M3 5.5 10.5 4.5v7H3zM11.5 4.4 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.4z"/></svg>')
-def transcript(text: str, prompt: str, command: str) -> str:
- """终端窗口里的内容:先是输入的命令,再是脚本的输出,客户端要填的地址用蓝色标出来。"""
- out = html.escape(text, quote=False)
- url = f"ws://{LAN_IP}:8787/signal"
+def transcript(text: str, prompt: str, command: str, ip: str = LAN_IP) -> str:
+ """终端窗口里的内容:先是输入的命令,再是脚本的输出,客户端要填的地址用蓝色标出来。
+ ip 是服务器的地址:脚本输出照局域网教程抄写,换成别的地址时一并替换。"""
+ out = html.escape(text.replace(LAN_IP, ip), quote=False)
+ url = f"ws://{ip}:8787/signal"
out = out.replace(url, f'<span class="t-url">{url}</span>')
# 脚本每一步的提示行(Mac 与 Linux 是 ▶,Windows 是 >,转义后是 &gt;)
out = re.sub(r"^((?:▶|&gt;) .*)$", r'<span class="t-step">\1</span>', out, flags=re.M)
@@ -639,76 +726,64 @@ def code_block(c: dict, code: str) -> str:
</div>"""
-def server_page(code: str) -> str:
- c = load(code)
- g = c["guide"]
- path, hl, locale, _ = LANGS[code]
- up = "../" * (path + GUIDE).count("/")
- home_href = up + (path or "./")
- a = up + "assets/"
- shots = up + "assets/screenshots/" + ("" if code == "zh" else code + "/")
- t = TRANSCRIPTS["zh" if code == "zh" else "en"]
- url = f"ws://{LAN_IP}:8787/signal"
- alternates = "\n".join(
- f' <link rel="alternate" hreflang="{h}" href="{SITE}{p}{GUIDE}">' for p, h, _, _ in LANGS.values())
+def items(lst: list[str], indent: str = " ") -> str:
+ return "\n".join(f"{indent}<li>{x}</li>" for x in lst)
- def items(lst: list[str], indent: str = " ") -> str:
- return "\n".join(f"{indent}<li>{x}</li>" for x in lst)
- def manage(rows: list[tuple[str, str]]) -> str:
- body = "\n".join(f' <tr><th scope="row">{k}</th><td>{v}</td></tr>' for k, v in rows)
- return f"""<div class="table-scroll">
+def manage(caption: str, rows: list[tuple[str, str]]) -> str:
+ """安装后会用到的命令表。"""
+ body = "\n".join(f' <tr><th scope="row">{k}</th><td>{v}</td></tr>' for k, v in rows)
+ return f"""<div class="table-scroll">
<table class="manage">
- <caption>{g["manage_caption"]}</caption>
+ <caption>{caption}</caption>
<tbody>
{body}
</tbody>
</table>
</div>"""
- linux_dl = f"""curl -LO {DL}copysync-server-linux-amd64.tar.gz
-tar xzf copysync-server-linux-amd64.tar.gz
-cd copysync-server-linux-amd64
-sudo ./install.sh"""
- mac_dl = f"""curl -LO {DL}copysync-server-macos.tar.gz
-tar xzf copysync-server-macos.tar.gz
-cd copysync-server-macos
-./install.sh"""
- w, m, l = g["win"], g["mac"], g["linux"]
- explorer = []
- for name, kind in [("copysync-server.exe", "exe"), ("install.cmd", "cmd"), ("install.ps1", "doc"),
- ("README.md", "doc"), ("uninstall.cmd", "cmd")]:
- # 要双击的那个文件标出来
- mark = f'<em>{w["double_click"]}</em>' if name == "install.cmd" else ""
- cls = ' class="hl"' if mark else ""
- explorer.append(f' <li{cls}><span class="f-icon {kind}" aria-hidden="true"></span>'
- f'<span class="f-name">{name}</span>{mark}</li>')
- explorer = "\n".join(explorer)
- prep = "\n".join(f" <div><dt>{h}</dt><dd>{p}</dd></div>" for h, p in g["prep"])
- faq = "\n".join(
+def fill(text: str, links: dict) -> str:
+ """把文案里的 {home}、{ts} 这类占位换成链接地址。不用 str.format:文案里可能有别的花括号。"""
+ for k, v in links.items():
+ text = text.replace("{" + k + "}", v)
+ return text
+
+
+def faq_list(faq: list, links: dict) -> str:
+ return "\n".join(
f""" <details>
<summary>{q}</summary>
- <div class="answer">{"".join(f"<p>{p}</p>" for p in answer)}</div>
- </details>""" for q, answer in g["faq"])
- d = g["diagram"]
- toc = "\n".join(f' <li><a href="#{anchor}">{label}</a></li>' for anchor, label in g["toc"])
+ <div class="answer">{"".join(f"<p>{fill(p, links)}</p>" for p in answer)}</div>
+ </details>""" for q, answer in faq)
+
+
+def toc_list(toc: list[tuple[str, str]]) -> str:
+ return "\n".join(f' <li><a href="#{anchor}">{label}</a></li>' for anchor, label in toc)
+
+def page_top(c: dict, code: str, sub: str, title: str, description: str) -> str:
+ """教程页面从 <!doctype> 到顶栏的部分。sub 是页面目录(GUIDE、START 等)。"""
+ path, hl, locale, _ = LANGS[code]
+ up = "../" * (path + sub).count("/")
+ a = up + "assets/"
+ alternates = "\n".join(
+ f' <link rel="alternate" hreflang="{h}" href="{SITE}{p}{sub}">' for p, h, _, _ in LANGS.values())
return f"""<!doctype html>
<html lang="{hl}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <title>{g["title"]}</title>
- <meta name="description" content="{esc(g["description"])}">
- <link rel="canonical" href="{SITE}{path}{GUIDE}">
+ <title>{title}</title>
+ <meta name="description" content="{esc(description)}">
+ <link rel="canonical" href="{SITE}{path}{sub}">
{alternates}
<meta name="theme-color" content="#141416">
<meta property="og:type" content="article">
<meta property="og:site_name" content="CopySync">
- <meta property="og:title" content="{esc(g["title"])}">
- <meta property="og:description" content="{esc(g["description"])}">
- <meta property="og:url" content="{SITE}{path}{GUIDE}">
+ <meta property="og:title" content="{esc(title)}">
+ <meta property="og:description" content="{esc(description)}">
+ <meta property="og:url" content="{SITE}{path}{sub}">
<meta property="og:image" content="{SITE}assets/{c["og_image"]}">
<meta property="og:locale" content="{locale}">
<meta name="twitter:card" content="summary_large_image">
@@ -720,27 +795,64 @@ cd copysync-server-macos
<body>
<a class="skip" href="#main">{c["skip"]}</a>
- <header class="bar">
- <div class="wrap">
- <a class="brand" href="{home_href}" aria-label="{c["home_label"]}"><img src="{a}icon.svg" alt="" width="26" height="26">CopySync</a>
- <nav aria-label="{c["nav_label"]}">
- <a class="wide" href="{home_href}#how">{c["nav_how"]}</a>
- <a class="wide" href="{home_href}#install">{c["nav_install"]}</a>
- <a href="./" aria-current="page">{c["nav_server"]}</a>
- <a class="wide" href="{REPO}">GitHub</a>
- {lang_links(code, up, GUIDE)}
- </nav>
- </div>
- </header>
+{header(c, code, up, sub)}
+"""
+
+
+def page_bottom(c: dict, code: str, sub: str) -> str:
+ up = "../" * (LANGS[code][0] + sub).count("/")
+ return f"""
+{footer(c, code, up, sub)}
+
+ <script src="{up}assets/site.js" defer></script>
+{ANALYTICS}</body>
+</html>
+"""
+
+
+def server_page(code: str) -> str:
+ c = load(code)
+ g = c["guide"]
+ path = LANGS[code][0]
+ up = "../" * (path + GUIDE).count("/")
+ home_href = up + (path or "./")
+ base = up + path
+ shots = up + "assets/screenshots/" + ("" if code == "zh" else code + "/")
+ t = TRANSCRIPTS["zh" if code == "zh" else "en"]
+ linux_dl = f"""curl -LO {DL}copysync-server-linux-amd64.tar.gz
+tar xzf copysync-server-linux-amd64.tar.gz
+cd copysync-server-linux-amd64
+sudo ./install.sh"""
+ mac_dl = f"""curl -LO {DL}copysync-server-macos.tar.gz
+tar xzf copysync-server-macos.tar.gz
+cd copysync-server-macos
+./install.sh"""
+
+ w, m, l = g["win"], g["mac"], g["linux"]
+ explorer = []
+ for name, kind in [("copysync-server.exe", "exe"), ("install.cmd", "cmd"), ("install.ps1", "doc"),
+ ("README.md", "doc"), ("uninstall.cmd", "cmd")]:
+ # 要双击的那个文件标出来
+ mark = f'<em>{w["double_click"]}</em>' if name == "install.cmd" else ""
+ cls = ' class="hl"' if mark else ""
+ explorer.append(f' <li{cls}><span class="f-icon {kind}" aria-hidden="true"></span>'
+ f'<span class="f-name">{name}</span>{mark}</li>')
+ explorer = "\n".join(explorer)
+ links = {"home": home_href, "ts": base + TAILSCALE, "start": base + START}
+ prep = "\n".join(f" <div><dt>{h}</dt><dd>{fill(p, links)}</dd></div>" for h, p in g["prep"])
+ d = g["diagram"]
+
+ return page_top(c, code, GUIDE, g["title"], g["description"]) + f"""
<main id="main">
<section class="hero guide-hero">
<div class="wrap">
<p class="crumb"><a href="{home_href}">CopySync</a> / {c["nav_server"]}</p>
<h1 class="display">{g["h1"]}</h1>
<p class="lede">{g["lede"]}</p>
+ <p class="hero-aside">{fill(g["hero_aside"], links)}</p>
<ol class="guide-toc">
-{toc}
+{toc_list(g["toc"])}
</ol>
</div>
</section>
@@ -828,7 +940,7 @@ cd copysync-server-macos
{term("win", w["term_title"], transcript(t["win"], "", ""), w["term_label"])}
</div>
</div>
- {manage(w["manage"])}
+ {manage(g["manage_caption"], w["manage"])}
</section>
<section class="os" id="macos" role="tabpanel" aria-labelledby="tab-macos">
@@ -848,7 +960,7 @@ cd copysync-server-macos
{term("mac", "copysync-server-macos — zsh", transcript(t["mac"], "%", "./install.sh"), m["term_label"])}
</div>
</div>
- {manage(m["manage"])}
+ {manage(g["manage_caption"], m["manage"])}
</section>
<section class="os" id="linux" role="tabpanel" aria-labelledby="tab-linux">
@@ -868,7 +980,7 @@ cd copysync-server-macos
{term("mac", f"ssh {LAN_IP}", transcript(t["linux"], "$", "sudo ./install.sh"), l["term_label"])}
</div>
</div>
- {manage(l["manage"])}
+ {manage(g["manage_caption"], l["manage"])}
</section>
</div>
</div>
@@ -895,7 +1007,20 @@ cd copysync-server-macos
<figure class="shot">
<img src="{shots}settings-lan-dark.png" width="2112" height="1472" loading="lazy" alt="{esc(g["clients_alt"])}">
</figure>
- <p class="note">{g["clients_after"].format(home=home_href)}</p>
+ <p class="note">{fill(g["clients_after"], links)}</p>
+ </div>
+ </section>
+
+ <section class="section" id="away" aria-labelledby="away-title">
+ <div class="wrap">
+ <div class="callout">
+ <svg viewBox="0 0 240 112" aria-hidden="true">{PATH_ART["ts"]}</svg>
+ <div>
+ <h2 id="away-title">{g["away_h2"]}</h2>
+ <p>{g["away_text"]}</p>
+ <a class="button" href="{links["ts"]}">{g["away_button"]}</a>
+ </div>
+ </div>
</div>
</section>
@@ -903,7 +1028,7 @@ cd copysync-server-macos
<div class="wrap">
<h2 id="faq-title">{g["faq_h2"]}</h2>
<div class="faq">
-{faq}
+{faq_list(g["faq"], links)}
</div>
</div>
</section>
@@ -915,13 +1040,397 @@ cd copysync-server-macos
</div>
</section>
</main>
+""" + page_bottom(c, code, GUIDE)
-{footer(c, code, up, GUIDE)}
- <script src="{a}site.js" defer></script>
-{ANALYTICS}</body>
-</html>
-"""
+# ─────────────────────────── 快速开始 ───────────────────────────
+
+
+def start_page(code: str) -> str:
+ c = load(code)
+ s = c["start"]
+ path = LANGS[code][0]
+ up = "../" * (path + START).count("/")
+ home_href = up + (path or "./")
+ base = up + path
+ shots = up + "assets/screenshots/" + ("" if code == "zh" else code + "/")
+ links = {"home": home_href, "server": base + GUIDE, "ts": base + TAILSCALE, "issues": REPO + "/issues"}
+
+ def step(n: int) -> str:
+ return f'<p class="eyebrow">{s["step"].format(n=n)}</p>'
+
+ return page_top(c, code, START, s["title"], s["description"]) + f"""
+ <main id="main">
+ <section class="hero guide-hero">
+ <div class="wrap">
+ <p class="crumb"><a href="{home_href}">CopySync</a> / {c["nav_start"]}</p>
+ <h1 class="display">{s["h1"]}</h1>
+ <p class="lede">{s["lede"]}</p>
+ <ol class="guide-toc">
+{toc_list(s["toc"])}
+ </ol>
+ </div>
+ </section>
+
+ <section class="section" id="app" aria-labelledby="app-title">
+ <div class="wrap">
+ {step(1)}
+ <h2 id="app-title">{s["app_h2"]}</h2>
+ <p class="intro">{s["app_intro"]}</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <div class="qs-app">
+ <h3>{LAPTOP}Mac</h3>
+ <ol class="steps">
+{items(s["mac"])}
+ </ol>
+ <a class="button" href="{DL}CopySync.dmg">{DOWN}{c["dl_mac"]}</a>
+ </div>
+ <div class="qs-app">
+ <h3>{DESKTOP}Windows</h3>
+ <ol class="steps">
+{items(s["win"])}
+ </ol>
+ <a class="button" href="{DL}CopySync-Setup.exe">{DOWN}{c["dl_win"]}</a>
+ </div>
+ </div>
+ <figure class="shot">
+ <img src="{shots}welcome-dark.png" width="2112" height="1472" alt="{esc(s["app_alt"])}">
+ </figure>
+ </div>
+ </div>
+ </section>
+
+ <section class="section" id="server" aria-labelledby="server-title">
+ <div class="wrap">
+ {step(2)}
+ <h2 id="server-title">{s["server_h2"]}</h2>
+ <p class="intro">{s["server_intro"]}</p>
+ {paths(c, base, home_href)}
+ <p class="note">{s["server_after"]}</p>
+ </div>
+ </section>
+
+ <section class="section" id="connect" aria-labelledby="connect-title">
+ <div class="wrap">
+ {step(3)}
+ <h2 id="connect-title">{s["connect_h2"]}</h2>
+ <ol class="flow">
+{chr(10).join(f" <li><h3>{h}</h3><p>{p}</p></li>" for h, p in s["connect_steps"])}
+ </ol>
+ <figure class="shot">
+ <img src="{shots}settings-lan-dark.png" width="2112" height="1472" loading="lazy" alt="{esc(s["connect_alt"])}">
+ </figure>
+ <p class="note">{fill(s["connect_after"], links)}</p>
+ </div>
+ </section>
+
+ <section class="section" id="pair" aria-labelledby="pair-title">
+ <div class="wrap">
+ {step(4)}
+ <h2 id="pair-title">{s["pair_h2"]}</h2>
+ <p class="intro">{s["pair_intro"]}</p>
+ <div class="os-grid qs-grid">
+ <div>
+ <ol class="steps">
+{items(s["pair_steps"], " ")}
+ </ol>
+ <figure class="figure-card qs-verify">
+ <img src="{shots}card-verify-dark.png" width="1120" height="800" loading="lazy" alt="{esc(c["verify_alt"])}">
+ </figure>
+ </div>
+ <figure class="shot">
+ <img src="{shots}pairing-dark.png" width="2112" height="1472" loading="lazy" alt="{esc(s["pair_alt"])}">
+ </figure>
+ </div>
+ </div>
+ </section>
+
+ <section class="closing" aria-labelledby="closing-title">
+ <div class="wrap">
+ <h2 class="display" id="closing-title">{s["done_h2"]}</h2>
+ <p class="lede">{s["done_text"]}</p>
+ <p class="note">{fill(s["help"], links)}</p>
+ </div>
+ </section>
+ </main>
+""" + page_bottom(c, code, START)
+
+
+# ─────────────────────────── 用 Tailscale 跨网络使用 ───────────────────────────
+
+# 教程里的 Tailscale 地址:服务器一个,两台电脑各一个。都在 Tailscale 用的 100.64.0.0/10 里
+TS_IP = "100.101.102.103"
+TS_MAC = "100.88.20.5"
+TS_WIN = "100.92.41.17"
+# 管理后台设备列表里的示例:主机名、地址、系统,第一台是服务器
+TS_MACHINES = [("mac-mini", TS_IP, "macOS"), ("macbook-pro", TS_MAC, "macOS"), ("home-pc", TS_WIN, "Windows")]
+
+
+def tailscale_page(code: str) -> str:
+ c = load(code)
+ g = c["guide"]
+ ts = c["ts"]
+ path = LANGS[code][0]
+ up = "../" * (path + TAILSCALE).count("/")
+ home_href = up + (path or "./")
+ base = up + path
+ shots = up + "assets/screenshots/" + ("" if code == "zh" else code + "/")
+ t = TRANSCRIPTS["zh" if code == "zh" else "en"]
+ links = {"home": home_href, "server": base + GUIDE, "start": base + START}
+ d = ts["diagram"]
+ w, m, l = ts["win"], ts["mac"], ts["linux"]
+
+ mac_dl = f"""curl -LO {DL}copysync-server-macos.tar.gz
+tar xzf copysync-server-macos.tar.gz
+cd copysync-server-macos
+./install.sh {TS_IP}"""
+ linux_dl = f"""curl -LO {DL}copysync-server-linux-amd64.tar.gz
+tar xzf copysync-server-linux-amd64.tar.gz
+cd copysync-server-linux-amd64
+sudo ./install.sh {TS_IP}"""
+ # Linux 的安装脚本不会改已有配置里的地址,装过的要自己换:-turn-ip 与 -stun 两处
+ linux_switch = f"""sudo sed -i 's/{LAN_IP}/{TS_IP}/g' /etc/copysync/server.env
+sudo systemctl restart copysync-server"""
+ cmd_line = (f'<span class="t-prompt">C:\\Users\\me\\Downloads\\copysync-server-windows-amd64&gt;</span>'
+ f"install.cmd {TS_IP}")
+
+ rows = []
+ for i, (name, ip, system) in enumerate(TS_MACHINES):
+ tag = f' <em>{ts["machines_server"]}</em>' if i == 0 else ""
+ cls = ' class="hl"' if i == 0 else ""
+ rows.append(f" <tr{cls}><td>{name}{tag}</td><td>{ip}</td><td>{system}</td></tr>")
+ machines = "\n".join(rows)
+ cols = "".join(f'<th scope="col">{h}</th>' for h in ts["machines_cols"])
+
+ return page_top(c, code, TAILSCALE, ts["title"], ts["description"]) + f"""
+ <main id="main">
+ <section class="hero guide-hero">
+ <div class="wrap">
+ <p class="crumb"><a href="{home_href}">CopySync</a> / <a href="{links["server"]}">{c["nav_server"]}</a> / Tailscale</p>
+ <h1 class="display">{ts["h1"]}</h1>
+ <p class="lede">{ts["lede"]}</p>
+ <ol class="guide-toc">
+{toc_list(ts["toc"])}
+ </ol>
+ </div>
+ </section>
+
+ <section class="section" id="overview" aria-labelledby="overview-title">
+ <div class="wrap">
+ <h2 id="overview-title">{ts["overview_h2"]}</h2>
+ <p class="intro">{ts["overview_intro"]}</p>
+ <figure class="diagram">
+ <svg viewBox="0 0 960 460" role="img" aria-labelledby="ts-title ts-desc">
+ <title id="ts-title">{d["title"]}</title>
+ <desc id="ts-desc">{d["desc"]}</desc>
+ <rect class="d-ts" x="8" y="8" width="944" height="404" rx="22"/>
+ <text class="d-ts-label" x="32" y="42">{d["net"]}</text>
+ <rect class="d-box" x="340" y="64" width="280" height="122" rx="14"/>
+ <text class="d-title" x="480" y="102" text-anchor="middle">{d["server"]}</text>
+ <text class="d-sub" x="480" y="130" text-anchor="middle">{d["server_place"]}</text>
+ <text class="d-ip" x="480" y="164" text-anchor="middle">{TS_IP}</text>
+ <path class="d-sig" d="M150 266V96H340"/>
+ <path class="d-sig" d="M810 266V96H620"/>
+ <path class="d-relay" d="M206 266V154H340"/>
+ <path class="d-relay" d="M754 266V154H620"/>
+ <text class="d-note" x="164" y="86">{d["sig_note"]}</text>
+ <text class="d-note" x="220" y="214">{d["relay_note"]}</text>
+ <rect class="d-box" x="40" y="266" width="240" height="126" rx="14"/>
+ <text class="d-title" x="160" y="306" text-anchor="middle">Mac</text>
+ <text class="d-sub" x="160" y="334" text-anchor="middle">{d["mac_place"]}</text>
+ <text class="d-ip" x="160" y="368" text-anchor="middle">{TS_MAC}</text>
+ <rect class="d-box" x="680" y="266" width="240" height="126" rx="14"/>
+ <text class="d-title" x="800" y="306" text-anchor="middle">Windows</text>
+ <text class="d-sub" x="800" y="334" text-anchor="middle">{d["win_place"]}</text>
+ <text class="d-ip" x="800" y="368" text-anchor="middle">{TS_WIN}</text>
+ <path class="d-direct" d="M280 330H680"/>
+ <text class="d-label" x="480" y="316" text-anchor="middle">{d["direct"]}</text>
+ <text class="d-note" x="480" y="358" text-anchor="middle">{d["direct_note"]}</text>
+ <g class="d-legend" transform="translate(40 444)">
+ <path class="d-direct" d="M0 0H28"/><text x="38" y="5">{g["diagram"]["legend_direct"]}</text>
+ <path class="d-relay" d="M250 0H278"/><text x="288" y="5">{g["diagram"]["legend_relay"]}</text>
+ <path class="d-sig" d="M560 0H588"/><text x="598" y="5">{g["diagram"]["legend_sig"]}</text>
+ </g>
+ </svg>
+ </figure>
+ <ul class="points ports">
+{items(ts["overview_points"], " ")}
+ </ul>
+ </div>
+ </section>
+
+ <section class="section" id="prepare" aria-labelledby="prepare-title">
+ <div class="wrap">
+ <h2 id="prepare-title">{g["prep_h2"]}</h2>
+ <dl class="fallbacks">
+{chr(10).join(f" <div><dt>{h}</dt><dd>{fill(p, links)}</dd></div>" for h, p in ts["prep"])}
+ </dl>
+ </div>
+ </section>
+
+ <section class="section" id="join" aria-labelledby="join-title">
+ <div class="wrap">
+ <p class="eyebrow">{ts["step"].format(n=1)}</p>
+ <h2 id="join-title">{ts["join_h2"]}</h2>
+ <p class="intro">{ts["join_intro"]}</p>
+ <div class="os-grid qs-grid">
+ <div class="os-steps">
+ <ol class="steps">
+{items(ts["join_steps"], " ")}
+ </ol>
+ <a class="button" href="https://tailscale.com/download">{DOWN}{ts["join_download"]}</a>
+ </div>
+ <div class="os-figures">
+ <figure class="browser machines" role="img" aria-label="{esc(ts["machines_label"])}">
+ <div class="b-bar"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="b-url">login.tailscale.com/admin/machines</span></div>
+ <table>
+ <thead><tr>{cols}</tr></thead>
+ <tbody>
+{machines}
+ </tbody>
+ </table>
+ </figure>
+ </div>
+ </div>
+ <div class="server-notes">
+ <h3>{ts["server_notes_h3"]}</h3>
+ <ul class="points">
+{items(ts["server_notes"], " ")}
+ </ul>
+ </div>
+ </div>
+ </section>
+
+ <section class="section" id="address" aria-labelledby="address-title">
+ <div class="wrap">
+ <p class="eyebrow">{ts["step"].format(n=2)}</p>
+ <h2 id="address-title">{ts["address_h2"]}</h2>
+ <p class="intro">{ts["address_intro"]}</p>
+ <div class="address-term">
+ {term("mac", "mac-mini — zsh", f'<span class="t-prompt">%</span> tailscale ip -4{chr(10)}<span class="t-url">{TS_IP}</span>', ts["address_label"])}
+ </div>
+ <p class="note">{ts["address_after"]}</p>
+ </div>
+ </section>
+
+ <section class="section" id="install" aria-labelledby="install-title">
+ <div class="wrap">
+ <p class="eyebrow">{ts["step"].format(n=3)}</p>
+ <h2 id="install-title">{ts["install_h2"]}</h2>
+ <p class="intro">{fill(ts["install_intro"], links)}</p>
+ <div class="os-tabs" data-tabs>
+ <div class="tablist" role="tablist" aria-label="{g["os_label"]}" hidden>
+ <button type="button" role="tab" id="tab-windows" aria-controls="windows">Windows</button>
+ <button type="button" role="tab" id="tab-macos" aria-controls="macos">macOS</button>
+ <button type="button" role="tab" id="tab-linux" aria-controls="linux">Linux</button>
+ </div>
+
+ <section class="os" id="windows" role="tabpanel" aria-labelledby="tab-windows">
+ <h3 class="os-title">{DESKTOP}Windows</h3>
+ <div class="os-grid">
+ <div class="os-steps">
+ <ol class="steps">
+{items(w["steps"])}
+ </ol>
+ <a class="button" href="{DL}copysync-server-windows-amd64.zip">{DOWN}{g["win"]["download"]}</a>
+ <ul class="points">
+{items(w["notes"])}
+ </ul>
+ </div>
+ <div class="os-figures">
+ {term("win", w["cmd_title"], cmd_line, w["cmd_label"])}
+ {term("win", g["win"]["term_title"], transcript(t["win"], "", "", TS_IP), w["term_label"])}
+ </div>
+ </div>
+ </section>
+
+ <section class="os" id="macos" role="tabpanel" aria-labelledby="tab-macos">
+ <h3 class="os-title">{LAPTOP}macOS</h3>
+ <div class="os-grid">
+ <div class="os-steps">
+ <ol class="steps">
+ <li>{m["steps"][0]}
+ {code_block(c, mac_dl)}</li>
+{items(m["steps"][1:])}
+ </ol>
+ <ul class="points">
+{items(m["notes"])}
+ </ul>
+ </div>
+ <div class="os-figures">
+ {term("mac", "copysync-server-macos — zsh", transcript(t["mac"], "%", f"./install.sh {TS_IP}", TS_IP), m["term_label"])}
+ </div>
+ </div>
+ </section>
+
+ <section class="os" id="linux" role="tabpanel" aria-labelledby="tab-linux">
+ <h3 class="os-title">{SERVER}Linux</h3>
+ <div class="os-grid">
+ <div class="os-steps">
+ <ol class="steps">
+ <li>{l["steps"][0]}
+ {code_block(c, linux_dl)}</li>
+{items(l["steps"][1:])}
+ </ol>
+ <div class="switch">
+ <p>{l["switch"]}</p>
+ {code_block(c, linux_switch)}
+ </div>
+ </div>
+ <div class="os-figures">
+ {term("mac", f"ssh {TS_IP}", transcript(t["linux"], "$", f"sudo ./install.sh {TS_IP}", TS_IP), l["term_label"])}
+ </div>
+ </div>
+ </section>
+ </div>
+ </div>
+ </section>
+
+ <section class="section" id="check" aria-labelledby="check-title">
+ <div class="wrap">
+ <p class="eyebrow">{ts["step"].format(n=4)}</p>
+ <h2 id="check-title">{ts["check_h2"]}</h2>
+ <p class="intro">{ts["check_intro"]}</p>
+ <figure class="browser" role="img" aria-label="{esc(ts["check_label"])}">
+ <div class="b-bar"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="b-url">http://{TS_IP}:8787/healthz</span></div>
+ <pre class="b-body">{{"status":"ok","version":"{VERSION}"}}</pre>
+ </figure>
+ <p class="note">{ts["check_after"]}</p>
+ </div>
+ </section>
+
+ <section class="section" id="clients" aria-labelledby="clients-title">
+ <div class="wrap">
+ <p class="eyebrow">{ts["step"].format(n=5)}</p>
+ <h2 id="clients-title">{ts["clients_h2"]}</h2>
+ <ol class="flow">
+{chr(10).join(f" <li><h3>{h}</h3><p>{p}</p></li>" for h, p in ts["clients_steps"])}
+ </ol>
+ <figure class="shot">
+ <img src="{shots}settings-tailscale-dark.png" width="2112" height="1472" loading="lazy" alt="{esc(ts["clients_alt"])}">
+ </figure>
+ <p class="note">{fill(ts["clients_after"], links)}</p>
+ </div>
+ </section>
+
+ <section class="section" id="faq" aria-labelledby="faq-title">
+ <div class="wrap">
+ <h2 id="faq-title">{g["faq_h2"]}</h2>
+ <div class="faq">
+{faq_list(ts["faq"], links)}
+ </div>
+ </div>
+ </section>
+
+ <section class="closing" aria-labelledby="closing-title">
+ <div class="wrap">
+ <h2 class="display" id="closing-title">{ts["closing"]}</h2>{cta(c)}
+ <a class="source" href="{links["server"]}">{ts["source"]}</a>
+ </div>
+ </section>
+ </main>
+""" + page_bottom(c, code, TAILSCALE)
# ─────────────────────────── Markdown → HTML ───────────────────────────
@@ -1117,6 +1626,7 @@ def design_page(md_name: str, page: str) -> str:
<div class="wrap">
<a class="brand" href="../" aria-label="CopySync 首页"><img src="../assets/icon.svg" alt="" width="26" height="26">CopySync</a>
<nav aria-label="页面导航">
+ <a href="../{START}">{zh["nav_start"]}</a>
<a href="../{GUIDE}">{zh["nav_server"]}</a>
<a class="wide" href="{REPO}/blob/main/design/{md_name}">在 GitHub 上查看</a>
<a class="wide" href="{REPO}">GitHub</a>
@@ -1175,10 +1685,11 @@ def sitemap() -> str:
alts += f'\n <xhtml:link rel="alternate" hreflang="x-default" href="{SITE}"/>'
urls = [f" <url>\n <loc>{SITE}{p}</loc>\n <lastmod>{DATE}</lastmod>{alts}\n </url>"
for p, _, _, _ in LANGS.values()]
- server_alts = "".join(
- f'\n <xhtml:link rel="alternate" hreflang="{h}" href="{SITE}{p}{GUIDE}"/>' for p, h, _, _ in LANGS.values())
- urls += [f" <url>\n <loc>{SITE}{p}{GUIDE}</loc>\n <lastmod>{DATE}</lastmod>{server_alts}\n </url>"
- for p, _, _, _ in LANGS.values()]
+ for sub in SUBPAGES:
+ sub_alts = "".join(
+ f'\n <xhtml:link rel="alternate" hreflang="{h}" href="{SITE}{p}{sub}"/>' for p, h, _, _ in LANGS.values())
+ urls += [f" <url>\n <loc>{SITE}{p}{sub}</loc>\n <lastmod>{DATE}</lastmod>{sub_alts}\n </url>"
+ for p, _, _, _ in LANGS.values()]
urls += [f" <url>\n <loc>{SITE}design/{page}.html</loc>\n <lastmod>{DATE}</lastmod>\n </url>"
for page in DESIGN_DOCS.values()]
return ('<?xml version="1.0" encoding="UTF-8"?>\n'
@@ -1196,6 +1707,8 @@ def main() -> None:
for code, (path, _, _, _) in LANGS.items():
write(DOCS / path / "index.html", home(code))
write(DOCS / path / GUIDE / "index.html", server_page(code))
+ write(DOCS / path / START / "index.html", start_page(code))
+ write(DOCS / path / TAILSCALE / "index.html", tailscale_page(code))
for md_name, page in DESIGN_DOCS.items():
write(DOCS / "design" / f"{page}.html", design_page(md_name, page))
write(DOCS / "404.html", not_found())
diff --git a/tools/site/content/en.py b/tools/site/content/en.py
index d080203..e22f91c 100644
--- a/tools/site/content/en.py
+++ b/tools/site/content/en.py
@@ -15,8 +15,8 @@ C = {
"skip": "Skip to content",
"home_label": "CopySync home",
"nav_label": "Page",
+ "nav_start": "Quick start",
"nav_how": "How it works",
- "nav_install": "Install",
"nav_faq": "FAQ",
"nav_server": "Self-host",
"lang_label": "Language",
@@ -27,6 +27,7 @@ C = {
"dl_mac": "Download for Mac",
"dl_win": "Download for Windows",
"dl_note": "Version 1.3.3, free and open source. macOS 13 or later, Intel and Apple silicon; Windows 10 and 11.",
+ "start_link": "New here? Set it up in three steps →",
"stage_label": "Demo: Command C on a MacBook turns a file into a sheet that flies over a direct connection to a Windows "
"laptop, where Ctrl V pastes it",
"stage_file": "Q3 review - final.pptx",
@@ -34,6 +35,27 @@ C = {
"stage_arc": "Direct, end-to-end encrypted",
"replay": "Play again",
+ # Three ways to run the server: (requirement, situation, approach, text, link). Links go to the LAN guide,
+ # the Tailscale guide and the cloud steps on the home page, in that order.
+ "paths_h2": "No public IP? No problem",
+ "paths_intro": "Your computers find each other through a server, but it doesn't have to be on the public internet. "
+ "Most home connections have no public IP, and an always-on computer at home works fine.",
+ "paths": [
+ ("No public IP needed", "Both computers on one network", "On your LAN",
+ "At home or in the office, on the same Wi‑Fi or wired network. Run the server on one of your always-on Windows, "
+ "Mac or Linux computers with a single script.",
+ "LAN guide →"),
+ ("No public IP needed", "One at home, one at the office", "LAN + Tailscale",
+ "The server stays at home. Install Tailscale on each computer and they act as if they shared a LAN, so your "
+ "laptop keeps syncing wherever you take it.",
+ "Tailscale guide →"),
+ ("Needs a public IP", "You have a public server", "Cloud server",
+ "A Linux VM with a public IP; the smallest one is enough. Every computer connects to it directly, with nothing "
+ "else to install.",
+ "Setup steps →"),
+ ],
+ "paths_after": "Not sure which? Follow the <a href=\"{start}\">quick start</a>.",
+
"history_h2": "Everything you copied, on every computer",
"history_intro": "History keeps the last 3 days, ready to go back on the clipboard; click an image to preview it. "
"Files under 50 MB have already arrived by the time you switch computers, and larger ones are a click away.",
@@ -149,8 +171,9 @@ C = {
],
"install_h2": "Install",
- "install_intro": "Install the app on each computer, and set up a server both of them can reach. If both share a LAN, the "
- "server can run on one of your Windows, Mac or Linux computers; see the <a href=\"server/\">LAN guide</a>.",
+ "install_intro": "Install the app on each computer and set up a server. No public IP needed: run the server on an always-on "
+ "computer at home, use it directly on your LAN, and add Tailscale for computers elsewhere. "
+ "First time? Follow the <a href=\"{start}\">quick start</a>.",
"mac_steps": [
"Download CopySync.dmg, open it and drag CopySync into Applications.",
"Open it from Applications.<span class=\"aside\">The first time, macOS says it can't verify the developer: CopySync "
@@ -167,7 +190,11 @@ C = {
"In Settings, enter your server address and press Enter. Allow it if Windows Firewall asks.",
],
"server_h3": "Server",
- "server_intro": "To use it across networks: a Linux server with a public IP, as root. On ARM, replace <code>amd64</code> with <code>arm64</code>.",
+ "server_lan": "<strong>No public IP needed.</strong> Run the server on an always-on Windows, Mac or Linux computer at home "
+ "or in the office with one script. Computers on other networks reach it through Tailscale.",
+ "server_ts": "Across networks with Tailscale",
+ "server_cloud": "On a server with a public IP",
+ "server_intro": "A Linux server with a public IP, as root. On ARM, replace <code>amd64</code> with <code>arm64</code>.",
"copy": "Copy",
"copied": "Copied",
"public_ip": "YOUR_PUBLIC_IP",
@@ -222,9 +249,15 @@ C = {
"back to the relay.",
]),
("Do I need my own server?", [
- "Yes. There is no public server, so nobody's data passes through anyone else's machine. On a LAN, run the server on "
- "any always-on Windows, Mac or Linux computer; see the <a href=\"server/\">LAN guide</a>. Across networks you need a "
- "machine with a public IP; the smallest cloud VM is enough.",
+ "Yes. There is no public server, so nobody's data passes through anyone else's machine. But it doesn't need a public IP: "
+ "an always-on Windows, Mac or Linux computer at home will do; see the <a href=\"{server}\">LAN guide</a>. Computers on "
+ "other networks reach it through Tailscale; see the <a href=\"{ts}\">Tailscale guide</a>. If you have a public IP, a "
+ "cloud server works too, and the smallest VM is enough.",
+ ]),
+ ("No public IP at home. Can I sync between home and the office?", [
+ "Yes. Run the server on an always-on computer at home, install Tailscale on your home and office computers under the "
+ "same account, and use the server's Tailscale address. They behave as if they shared a LAN, and what you copy still "
+ "goes directly between the two computers. See <a href=\"{ts}\">Use it across networks with Tailscale</a>.",
]),
("Windows? iPhone?", [
"Windows 10 and 11 (x64) are supported and work together with Macs. Files you paste on Windows are real files you "
@@ -269,7 +302,9 @@ C = {
"h1": "Run the server on your LAN",
"lede": "If your computers are on the same home or office network, you don't need a cloud server. Pick a computer that stays on, "
"download and run one script, then enter the address it prints into CopySync on each computer.",
- "toc": [("prepare", "Before you start"), ("install", "Install"), ("check", "Check"), ("clients", "Set up the apps"), ("faq", "Questions")],
+ "hero_aside": "Not on the same network, and no public IP? See <a href=\"{ts}\">Use it across networks with Tailscale</a>.",
+ "toc": [("prepare", "Before you start"), ("install", "Install"), ("check", "Check"), ("clients", "Set up the apps"),
+ ("away", "Away from home"), ("faq", "Questions")],
"overview_h2": "The server only introduces devices",
"overview_intro": "Each computer stays connected to the server, which is how they find each other and exchange connection details. "
@@ -305,8 +340,8 @@ C = {
"Otherwise, when the router hands out a new address, every computer has to be updated."),
("The same network", "Devices just need to be on the same Wi‑Fi or wired network. Guest networks and Wi‑Fi with client "
"(AP) isolation block devices from reaching each other; use another network or turn isolation off."),
- ("No sync away from it", "The server is only reachable on your LAN, so a laptop taken elsewhere catches up when it's back. "
- "To sync from anywhere you need a server with a public IP; see Install on the home page."),
+ ("Syncing away from it", "The server is only reachable on your LAN. To keep a laptop syncing when you take it out, "
+ "install Tailscale on each computer; no public IP needed. See the <a href=\"{ts}\">Tailscale guide</a>."),
],
"install_h2": "Install the server",
@@ -397,7 +432,12 @@ C = {
("Check the status", "When Connection shows a green Connected, you're set. Pair your devices under Devices and copying starts syncing."),
],
"clients_alt": "CopySync Settings: the signaling server is ws://192.168.1.20:8787/signal and the connection status shows Connected",
- "clients_after": 'Haven\'t installed the app yet? See <a href="{home}#install">Install</a> on the home page.',
+ "clients_after": 'Haven\'t installed the app yet? See the <a href="{start}">quick start</a>.',
+
+ "away_h2": "Want to sync away from home?",
+ "away_text": "Install Tailscale on each computer and run the server on its Tailscale address. From the office or anywhere "
+ "else, your computers reach the server at home as if they were on the same LAN. No public IP, no router settings.",
+ "away_button": "Use it across networks with Tailscale",
"faq_h2": "Questions",
"faq": [
@@ -420,9 +460,9 @@ C = {
"Reserving the address in your router avoids this.",
]),
("Does it sync away from the LAN?", [
- "No, the server is only reachable on your LAN. To sync from anywhere, deploy the server on a machine with a public IP "
- "(steps under Install on the home page), or join your devices with a mesh VPN such as Tailscale or ZeroTier and enter "
- "the server's address on that network.",
+ "Yes, with Tailscale: install it on each computer under the same account, install the server with its Tailscale "
+ "address and enter that address in the apps. No public IP needed. See <a href=\"{ts}\">Use it across networks with Tailscale</a>.",
+ "If you have a public IP, you can also run the server in the cloud; see the <a href=\"{home}#cloud\">steps on the home page</a>.",
]),
("A cloud server in mainland China works by IP but not by domain", [
"Cloud providers in mainland China intercept plain HTTP requests for domains without an ICP filing and answer with a "
@@ -439,6 +479,245 @@ C = {
"source": "Full server guide, including public servers and Docker",
},
+ # ── Quick start (start/ page) ──
+ "start": {
+ "title": "Quick start: set up CopySync in three steps",
+ "description": "New to CopySync? Install the app on each computer, pick a way to run the server (on your LAN, with "
+ "Tailscale, or in the cloud), enter its address and pair, then copy and paste between Mac and Windows. "
+ "No public IP needed.",
+ "h1": "Quick start",
+ "lede": "Install the app, set up a server, and pair your computers. The first time takes about ten minutes; "
+ "after that, copying just syncs.",
+ "toc": [("app", "Install the app"), ("server", "Set up a server"), ("connect", "Enter the address"), ("pair", "Pair")],
+ "step": "Step {n}",
+
+ "app_h2": "Install the app on each computer",
+ "app_intro": "One on every computer you want to sync. Macs and Windows PCs mix freely.",
+ "mac": [
+ "Download CopySync.dmg, open it and drag CopySync into Applications.",
+ "Open it from Applications.<span class=\"aside\">The first time, macOS says it can't verify the developer: go to "
+ "System Settings → Privacy &amp; Security and click Open Anyway near the bottom.</span>",
+ "Click Turn on background sync, and allow clipboard access when macOS asks.",
+ ],
+ "win": [
+ "Run CopySync-Setup.exe; no administrator rights needed.<span class=\"aside\">If you see \"Windows protected your PC\", "
+ "click More info, then Run anyway.</span>",
+ "Open CopySync and click Turn on background sync. After you close the window it keeps running in the notification area.",
+ ],
+ "app_alt": "CopySync the first time it opens, asking you to turn on background sync",
+
+ "server_h2": "Set up a server",
+ "server_intro": "Your computers find each other through it; nothing you copy is stored there. There's no public server, "
+ "so pick the option that fits:",
+ "server_after": "When it's installed, the script prints an address like <code>ws://192.168.1.20:8787/signal</code>. "
+ "You'll need it in the next step.",
+
+ "connect_h2": "Enter the server address on each computer",
+ "connect_steps": [
+ ("Open Settings", "Open CopySync on each computer, including the one running the server, and go to Settings."),
+ ("Enter the address", "Under Signaling server, enter the address from the previous step and press Return or Enter."),
+ ("Check the status", "When Connection shows a green Connected, that computer is ready."),
+ ],
+ "connect_alt": "CopySync Settings: the signaling server is ws://192.168.1.20:8787/signal and the connection status shows Connected",
+ "connect_after": "Stuck at Not connected? See the <a href=\"{server}#faq\">questions</a>.",
+
+ "pair_h2": "Pair your computers",
+ "pair_intro": "Pair each two computers once, and you're done.",
+ "pair_steps": [
+ "On one computer, open Devices and click Add device. It shows a 6-character code, valid for 5 minutes.",
+ "On the other, click Add device too, switch to Enter a code and type it in.",
+ "Both screens show the same two fingerprint lines. Check them character by character, then confirm."
+ "<span class=\"aside\">This stops anyone in the middle from posing as your device. Don't skip it.</span>",
+ ],
+ "pair_alt": "Add device: the pairing code K7MP2X, to be entered on the other device",
+
+ "done_h2": "Now copy something.",
+ "done_text": "Copy text, an image or a file on one computer and press ⌘V or Ctrl+V on the other. Everything copied on "
+ "either side is in the history.",
+ "help": "Need help? <a href=\"{server}#faq\">LAN questions</a> · <a href=\"{ts}#faq\">Tailscale questions</a> · "
+ "<a href=\"{issues}\">Report an issue</a>",
+ },
+
+ # ── Use it across networks with Tailscale (tailscale/ page) ──
+ "ts": {
+ "title": "Use CopySync across networks with Tailscale: sync home and office without a public IP",
+ "description": "Run the server on an always-on computer at home and install Tailscale on each computer: they act as if "
+ "they shared a LAN, so the clipboard syncs from the office or anywhere else. No public IP, no router "
+ "settings. Step-by-step for Windows, Mac and Linux.",
+ "h1": "Across networks with Tailscale",
+ "lede": "Sync between home and the office without a public IP. The server stays at home; with Tailscale on each "
+ "computer, they act as if they shared a LAN. No router settings, no cloud server.",
+ "toc": [("join", "Install Tailscale"), ("address", "Find the address"), ("install", "Install the server"),
+ ("check", "Check"), ("clients", "Set up the apps"), ("faq", "Questions")],
+ "step": "Step {n}",
+
+ "overview_h2": "As if on one LAN",
+ "overview_intro": "Tailscale connects your devices into a private network: every device signed in to the same account "
+ "gets a fixed address starting with 100, reachable from the others wherever they are. Install the "
+ "CopySync server on that address and enter it in the apps; everything else works as on a LAN.",
+ "diagram": {
+ "title": "CopySync over Tailscale",
+ "desc": "The server and a Windows PC are at home, a Mac is at the office. All three run Tailscale and each has an "
+ "address starting with 100 on the same private network. Both computers connect to the server at "
+ "100.101.102.103 for signaling; copied content goes directly between them, and through the server's relay "
+ "only if that fails.",
+ "net": "Tailscale network: every device has a 100.x address",
+ "server": "Server",
+ "server_place": "At home, always on",
+ "mac_place": "At the office",
+ "win_place": "At home",
+ "sig_note": "Signaling, TCP 8787",
+ "relay_note": "Relay, UDP 3478, if direct fails",
+ "direct": "Direct, encrypted twice",
+ "direct_note": "Content stays between the two computers",
+ },
+ "overview_points": [
+ "<strong>The server stays at home</strong> on any always-on Windows, Mac or Linux computer, just like on a LAN.",
+ "<strong>Every computer runs Tailscale,</strong> signed in to the same account, including the server computer.",
+ "<strong>Encrypted twice.</strong> Inside Tailscale's WireGuard tunnel runs CopySync's own end-to-end encrypted "
+ "connection. Neither Tailscale nor your server can see the content.",
+ ],
+
+ "prep": [
+ ("A computer that stays on", "It runs the server, with the same requirements as <a href=\"{server}#prepare\">on a LAN</a>; "
+ "sync pauses while it's off or asleep. Its Tailscale address doesn't change, so there's "
+ "nothing to reserve in the router."),
+ ("A Tailscale account", "Free for personal use; sign in with Google, Microsoft, GitHub or Apple. Use the same account on every device."),
+ ("Tailscale on every computer", "There are clients for Windows, macOS and Linux. Every computer that runs CopySync needs "
+ "it, including one that never leaves home."),
+ ("ZeroTier works too", "So does any tool that gives each device a fixed virtual address: install the server on that "
+ "address and enter it in the apps. This guide uses Tailscale."),
+ ],
+
+ "join_h2": "Install Tailscale on each computer",
+ "join_intro": "On the server computer and every computer you sync, install it and sign in to the same account.",
+ "join_steps": [
+ "Download the client for your system from the Tailscale website and install it."
+ "<span class=\"aside\">On Linux, run <code>curl -fsSL https://tailscale.com/install.sh | sh</code>, then "
+ "<code>sudo tailscale up</code>, and open the link it prints to sign in.</span>",
+ "Open Tailscale and sign in, using the same account on every computer.",
+ "The Tailscale admin console then lists all your devices, each with an address starting with 100.",
+ ],
+ "join_download": "Download Tailscale",
+ "machines_cols": ["Machine", "Tailscale address", "OS"],
+ "machines_server": "Server",
+ "machines_label": "The machine list in the Tailscale admin console (illustration): mac-mini is the server at 100.101.102.103, "
+ "macbook-pro is 100.88.20.5 and home-pc is 100.92.41.17",
+ "server_notes_h3": "One more thing on the server computer",
+ "server_notes": [
+ "<strong>Windows:</strong> right-click the Tailscale icon in the notification area and turn on Run unattended under "
+ "Preferences. Otherwise Tailscale disconnects when you sign out, and computers elsewhere lose the server.",
+ "<strong>Mac:</strong> stay logged in, keep it awake, and make sure Tailscale opens at login. The CopySync server "
+ "also only runs while you're logged in.",
+ "<strong>Turn off key expiry:</strong> by default Tailscale asks devices to sign in again every 180 days. On the "
+ "Machines page of the admin console, open the menu at the end of the server's row and choose Disable key expiry.",
+ ],
+
+ "address_h2": "Find the server's Tailscale address",
+ "address_intro": "On the server computer, click the Tailscale icon in the menu bar (the notification area on Windows); "
+ "the menu shows this device's address. Or run <code>tailscale ip -4</code> in a terminal.",
+ "address_label": "tailscale ip -4 in a terminal prints this device's Tailscale address, 100.101.102.103",
+ "address_after": "The steps below use <code>100.101.102.103</code>; use your own address.",
+
+ "install_h2": "Install the server on that address",
+ "install_intro": "The install scripts use the LAN address by default. Pass the Tailscale address instead so computers "
+ "elsewhere can use the server's relay. Already installed it with the <a href=\"{server}\">LAN guide</a>? "
+ "Run the script again with the address; your settings are kept.",
+ "win": {
+ "steps": [
+ "Download copysync-server-windows-amd64.zip and choose Extract All. If it's already installed, use the folder you extracted before.",
+ "Open the extracted folder, type <code>cmd</code> in the address bar at the top and press Enter to open a Command Prompt.",
+ "Run <code>install.cmd 100.101.102.103</code> with your address, and click Yes when User Account Control asks.",
+ "Installation continues in a new window. The address at the end should be <code>ws://100.101.102.103:8787/signal</code>.",
+ ],
+ "notes": [
+ "<strong>Firewall already allowed:</strong> the script's inbound rule applies to every network, Tailscale's adapter included.",
+ "If you see \"Windows protected your PC\", click More info, then Run anyway.",
+ ],
+ "cmd_title": "Command Prompt",
+ "cmd_label": "A Command Prompt opened in the extracted folder runs install.cmd 100.101.102.103",
+ "term_label": "The window after install.cmd finishes, ending with the address ws://100.101.102.103:8787/signal",
+ },
+ "mac": {
+ "steps": [
+ "Open Terminal and run these lines, with your address on the last one:",
+ "The address at the end should be <code>ws://100.101.102.103:8787/signal</code>.",
+ ],
+ "notes": [
+ "Already installed? Run <code>./install.sh 100.101.102.103</code> in the same folder; your settings are kept.",
+ "<strong>If the macOS firewall is on,</strong> the script ends with the command to allow copysync-server.",
+ ],
+ "term_label": "Output of ./install.sh 100.101.102.103 in Terminal, ending with the address ws://100.101.102.103:8787/signal",
+ },
+ "linux": {
+ "steps": [
+ "Run these lines, with your address on the last one:<span class=\"aside\">On ARM, replace <code>amd64</code> with <code>arm64</code>.</span>",
+ "The address at the end should be <code>ws://100.101.102.103:8787/signal</code>.",
+ ],
+ "switch": "<strong>Already installed?</strong> The Linux script leaves an existing config alone. Replace the old "
+ "address in it with the Tailscale address (put your old address in place of <code>192.168.1.20</code>) "
+ "and restart the service:",
+ "term_label": "Output of sudo ./install.sh 100.101.102.103, ending with the address ws://100.101.102.103:8787/signal",
+ },
+
+ "check_h2": "Check from outside",
+ "check_intro": "On a computer outside your home network, or a laptop on your phone's hotspot, make sure Tailscale is "
+ "connected and open <code>http://100.101.102.103:8787/healthz</code> in a browser. If you see this line, "
+ "the server is reachable from outside.",
+ "check_label": "A browser showing http://100.101.102.103:8787/healthz, with the server's status ok and its version",
+ "check_after": "If it doesn't load, see the <a href=\"#faq\">questions</a> below.",
+
+ "clients_h2": "Enter the address on each computer",
+ "clients_steps": [
+ ("Open Settings", "Open CopySync on each computer, including the one running the server, and go to Settings."),
+ ("Enter the Tailscale address", "Under Signaling server, enter <code>ws://100.101.102.103:8787/signal</code> with your address and press Return or Enter."),
+ ("Check the status", "When Connection shows a green Connected, you're set. If you haven't paired yet, pair under Devices."),
+ ],
+ "clients_alt": "CopySync Settings: the signaling server is ws://100.101.102.103:8787/signal and the connection status shows Connected",
+ "clients_after": "Use the Tailscale address on your home computers too, not the LAN address, so nothing changes when a "
+ "computer leaves the house. When they're all at home, the data still stays on your home network.",
+
+ "faq": [
+ ("Devices show Direct, but it's slow", [
+ "Direct in CopySync means the two computers connect directly on the Tailscale network. When Tailscale can't "
+ "connect them peer to peer, it relays through its DERP servers, which can be far away.",
+ "Run <code>tailscale ping other-address</code> in a terminal: via DERP means Tailscale is relaying; via an IP "
+ "and port means it's peer to peer. Office and campus networks relay more often; you can run your own DERP "
+ "server or try another mesh VPN.",
+ ]),
+ ("The status stays at Not connected", [
+ "First make sure Tailscale is connected on that computer, then open <code>http://server-tailscale-address:8787/healthz</code> in a browser.",
+ "If it doesn't load, check whether the server computer is asleep, whether Tailscale is online there (Run unattended "
+ "on Windows, staying logged in on a Mac), whether the server still uses its LAN address, and whether a firewall on "
+ "a Mac or Linux server blocks it.",
+ ]),
+ ("Does every computer need Tailscale?", [
+ "Yes. A computer without it can't reach the 100.x addresses, and computers elsewhere can't reach it. That includes "
+ "one that never leaves home.",
+ ]),
+ ("I already followed the LAN guide. Start over?", [
+ "No. Run the install script again with the Tailscale address (on Linux, edit the config), then change the server "
+ "address on each computer to the Tailscale one. Paired devices stay paired.",
+ ]),
+ ("Can Tailscale see what I copy?", [
+ "No. Tailscale connections are end-to-end encrypted with WireGuard, and inside runs CopySync's own DTLS-encrypted "
+ "connection; only your two computers can open either layer. Tailscale's servers only exchange device keys and "
+ "addresses, and its relays forward encrypted packets.",
+ ]),
+ ("Will the server's Tailscale address change?", [
+ "Usually not. The address belongs to the device and survives restarts and network changes; it only changes if you "
+ "remove the device from Tailscale and add it again.",
+ ]),
+ ("I have a public IP. Do I need Tailscale?", [
+ "No. Run the server on the machine with the public IP and enter that address on every computer; see the "
+ "<a href=\"{home}#cloud\">steps on the home page</a>.",
+ ]),
+ ],
+
+ "closing": "The server stays home.<br>Your clipboard comes with you.",
+ "source": "Back to the LAN guide",
+ },
+
"ld_description": "Open-source app that syncs the clipboard and files between Mac and Windows computers. Copy text, "
"images, files or folders on one computer and paste on the other. Devices connect directly over "
"WebRTC with end-to-end DTLS encryption, falling back to a TURN relay on a server the user hosts.",
diff --git a/tools/site/content/ja.py b/tools/site/content/ja.py
index 892fa98..d51a6ea 100644
--- a/tools/site/content/ja.py
+++ b/tools/site/content/ja.py
@@ -15,8 +15,8 @@ C = {
"skip": "本文へ移動",
"home_label": "CopySync ホーム",
"nav_label": "ページ内の移動",
+ "nav_start": "はじめかた",
"nav_how": "しくみ",
- "nav_install": "インストール",
"nav_faq": "よくある質問",
"nav_server": "サーバーの設置",
"lang_label": "言語",
@@ -27,12 +27,30 @@ C = {
"dl_mac": "Mac 版をダウンロード",
"dl_win": "Windows 版をダウンロード",
"dl_note": "バージョン 1.3.3、無料・オープンソース。macOS 13 以降(Intel と Apple シリコン)、Windows 10・11。",
+ "start_link": "はじめての方は、3 ステップのはじめかたへ →",
"stage_label": "デモ:MacBook で Command C を押すと、ファイルが一枚の紙になって直接接続で Windows ノートへ飛び、そこで Ctrl V を押して貼り付けます",
"stage_file": "四半期報告_最終版.pptx",
"stage_win": "Windows ノート",
"stage_arc": "直接接続、エンドツーエンド暗号化",
"replay": "もう一度再生",
+ # サーバーの置き方 3 通り:(条件、状況、方法、説明、リンク)。リンク先は順に LAN の手順、Tailscale の手順、トップページのクラウド手順
+ "paths_h2": "グローバル IP がなくても使える",
+ "paths_intro": "2 台のコンピューターはサーバーを通じてお互いを見つけます。ただしサーバーはインターネットに公開されている必要はありません。"
+ "多くの家庭の回線にはグローバル IP がありませんが、家で電源を入れたままのコンピューターで十分です。",
+ "paths": [
+ ("グローバル IP 不要", "2 台が同じネットワークにある", "LAN に置く",
+ "家や会社で、同じ Wi‑Fi か有線ネットワークにつながっている場合。電源を入れたままの Windows・Mac・Linux のどれか 1 台で、スクリプトをひとつ実行するだけです。",
+ "LAN での設置手順 →"),
+ ("グローバル IP 不要", "1 台は自宅、1 台は会社", "LAN + Tailscale",
+ "サーバーは自宅に置いたまま。各コンピューターに Tailscale を入れれば同じ LAN にあるのと同じように扱えて、ノートパソコンを持ち出しても同期が続きます。",
+ "Tailscale での手順 →"),
+ ("グローバル IP が必要", "公開サーバーがある", "クラウドに置く",
+ "グローバル IP を持つ Linux のクラウドサーバー。最小構成で足ります。すべてのコンピューターが直接つながり、ほかに入れるものはありません。",
+ "設置手順 →"),
+ ],
+ "paths_after": "迷ったら<a href=\"{start}\">はじめかた</a>に沿って進めてください。",
+
"history_h2": "どのデバイスでコピーしたものも、ここに",
"history_intro": "履歴には直近 3 日分が残り、いつでもクリップボードに戻せます。画像はクリックでプレビュー。"
"50 MB までのファイルはコピーした時点で届いていて、それより大きいものは必要なときにワンクリックで取り込めます。",
@@ -144,7 +162,8 @@ C = {
],
"install_h2": "インストール",
- "install_intro": "それぞれのコンピューターにアプリを入れ、両方からアクセスできるサーバーを 1 台用意します。2 台が同じ LAN にあるなら、サーバーはどれか 1 台の Windows・Mac・Linux で動かせば十分です。<a href=\"server/\">LAN での設置手順</a>をご覧ください。",
+ "install_intro": "それぞれのコンピューターにアプリを入れ、サーバーを 1 台用意します。グローバル IP は要りません。自宅で電源を入れたままのコンピューターでサーバーを動かし、"
+ "同じ LAN ならそのまま、別のネットワークからは Tailscale を加えて使います。はじめての方は<a href=\"{start}\">はじめかた</a>をどうぞ。",
"mac_steps": [
"CopySync.dmg をダウンロードして開き、CopySync を「アプリケーション」にドラッグします。",
"「アプリケーション」から開きます。<span class=\"aside\">初回は「開発元を検証できません」と表示されます。CopySync はまだ Apple の公証を受けていないためです。"
@@ -160,7 +179,11 @@ C = {
"「設定」でサーバーのアドレスを入力して Enter を押します。ファイアウォールに聞かれたら許可します。",
],
"server_h3": "サーバー",
- "server_intro": "ネットワークをまたいで使う場合:グローバル IP を持つ Linux サーバー、root 権限が必要です。ARM の場合は <code>amd64</code> を <code>arm64</code> に置き換えます。",
+ "server_lan": "<strong>グローバル IP は不要です。</strong>家や会社で電源を入れたままの Windows・Mac・Linux で、スクリプトをひとつ実行するだけ。"
+ "別のネットワークにあるコンピューターは Tailscale でつながります。",
+ "server_ts": "Tailscale でネットワークをまたぐ",
+ "server_cloud": "グローバル IP を持つサーバーに置く",
+ "server_intro": "グローバル IP を持つ Linux サーバー、root 権限が必要です。ARM の場合は <code>amd64</code> を <code>arm64</code> に置き換えます。",
"copy": "コピー",
"copied": "コピーしました",
"public_ip": "グローバルIP",
@@ -210,9 +233,15 @@ C = {
"テストでは、出口が 4 つある会社の Mac と家庭の回線が直接つながりました。相手がポートをランダムに割り当てる NAT の場合は中継になります。",
]),
("サーバーは自分で用意する必要がありますか?", [
- "はい。CopySync は公開サーバーを提供しません。だから誰のデータも他人のマシンを通りません。2 台が同じ LAN にあるなら、電源を入れたままの Windows・Mac・Linux の"
- "どれか 1 台でサーバーを動かせば十分で(<a href=\"server/\">LAN での設置手順</a>)、"
- "ネットワークをまたぐ場合はグローバル IP を持つサーバーが 1 台必要です。最小構成のクラウドサーバーで足ります。",
+ "はい。CopySync は公開サーバーを提供しません。だから誰のデータも他人のマシンを通りません。ただしグローバル IP は不要で、"
+ "自宅で電源を入れたままの Windows・Mac・Linux で十分です(<a href=\"{server}\">LAN での設置手順</a>)。"
+ "別のネットワークにあるコンピューターは Tailscale でつながります(<a href=\"{ts}\">Tailscale での手順</a>)。"
+ "グローバル IP があれば、最小構成のクラウドサーバーに置くこともできます。",
+ ]),
+ ("自宅にグローバル IP がありません。自宅と会社のあいだで同期できますか?", [
+ "できます。自宅で電源を入れたままのコンピューターでサーバーを動かし、自宅と会社のコンピューターに Tailscale を入れて同じアカウントでサインインし、"
+ "サーバーのアドレスに Tailscale のアドレスを使います。同じ LAN にあるのと同じように扱え、コピーした内容は 2 台のあいだを直接流れます。"
+ "手順は<a href=\"{ts}\">Tailscale でネットワークをまたいで使う</a>をご覧ください。",
]),
("Windows に対応していますか?iPhone は?", [
"Windows 10 と Windows 11(x64)に対応し、Mac と相互に使えます。Windows で貼り付けたファイルは本物のファイルなので、エクスプローラーや Office にそのまま貼り付けられます。",
@@ -251,7 +280,9 @@ C = {
"h1": "LAN にサーバーを置く",
"lede": "家や会社のコンピューターが同じネットワークにあるなら、クラウドサーバーは要りません。電源を入れたままのコンピューターを 1 台選び、"
"スクリプトをダウンロードして実行し、表示されたアドレスを各コンピューターの CopySync に入力します。",
- "toc": [("prepare", "準備"), ("install", "インストール"), ("check", "確認"), ("clients", "アドレスの入力"), ("faq", "よくある質問")],
+ "hero_aside": "2 台が別のネットワークにあり、グローバル IP もない場合は<a href=\"{ts}\">Tailscale でネットワークをまたいで使う</a>をご覧ください。",
+ "toc": [("prepare", "準備"), ("install", "インストール"), ("check", "確認"), ("clients", "アドレスの入力"),
+ ("away", "外出先でも使う"), ("faq", "よくある質問")],
"overview_h2": "サーバーは引き合わせるだけ",
"overview_intro": "各コンピューターはサーバーにつながったままで、それを通じて相手を見つけ、接続情報を交換します。つながったあと、"
@@ -285,8 +316,8 @@ C = {
"そうしないと、アドレスが変わるたびに全部のコンピューターで入れ直すことになります。"),
("同じネットワークに", "同じ Wi‑Fi か有線ネットワークにつながっていれば十分です。ゲストネットワークや AP アイソレーションが有効な Wi‑Fi では"
"デバイスどうしが通信できないので、別のネットワークを使うか、アイソレーションをオフにしてください。"),
- ("ネットワークの外では同期しない", "サーバーには LAN の中からしか届きません。持ち出したノートパソコンは、戻ってきてから同期を再開します。"
- "どこからでも同期したい場合は、グローバル IP を持つサーバーが必要です(トップページの「インストール」)。"),
+ ("ネットワークの外でも同期したいなら", "サーバーには LAN の中からしか届きません。持ち出したノートパソコンでも同期したい場合は、"
+ "各コンピューターに Tailscale を入れれば、グローバル IP なしでつながります(<a href=\"{ts}\">Tailscale での手順</a>)。"),
],
"install_h2": "サーバーをインストール",
@@ -377,7 +408,12 @@ C = {
("状態を確認", "「接続状態」が緑の「接続済み」になれば完了です。「デバイス」でペアリングすれば、コピーが同期されるようになります。"),
],
"clients_alt": "CopySync の設定画面:シグナリングサーバーは ws://192.168.1.20:8787/signal、接続状態は接続済み",
- "clients_after": 'アプリがまだなら、トップページの<a href="{home}#install">インストール</a>をご覧ください。',
+ "clients_after": 'アプリがまだなら、<a href="{start}">はじめかた</a>をご覧ください。',
+
+ "away_h2": "外出先でも同期したい?",
+ "away_text": "各コンピューターに Tailscale を入れ、サーバーをその Tailscale アドレスで動かせば、会社からでも外出先からでも、"
+ "同じ LAN にいるように自宅のサーバーにつながります。グローバル IP もルーターの設定も要りません。",
+ "away_button": "Tailscale でネットワークをまたいで使う",
"faq_h2": "よくある質問",
"faq": [
@@ -397,8 +433,9 @@ C = {
"ルーターでアドレスを固定しておけば、こうしたことは起きません。",
]),
("LAN の外でも同期できますか?", [
- "できません。サーバーには LAN の中からしか届かないためです。どこでも使いたい場合は、グローバル IP を持つマシンにサーバーを置くか(トップページの「インストール」)、"
- "Tailscale や ZeroTier などでデバイスを同じ仮想ネットワークに参加させ、その中でのサーバーのアドレスを入力します。",
+ "Tailscale を使えばできます。各コンピューターに入れて同じアカウントでサインインし、サーバーを Tailscale のアドレスでインストールして、"
+ "アプリにもそのアドレスを入力します。グローバル IP は不要です。手順は<a href=\"{ts}\">Tailscale でネットワークをまたいで使う</a>をご覧ください。",
+ "グローバル IP があれば、クラウドサーバーに置くこともできます(<a href=\"{home}#cloud\">トップページの設置手順</a>)。",
]),
("中国本土のクラウドサーバーで、ドメインではつながらず IP ならつながる", [
"ICP 登録(备案)のないドメインへの平文 HTTP リクエストは、中国本土のクラウド事業者に横取りされ、ブロックページへのリダイレクトが返されます。"
@@ -414,6 +451,222 @@ C = {
"source": "サーバーの詳しい構築手順(グローバル IP、Docker を含む、英語・中国語)",
},
+ # ── はじめかた(start/ ページ) ──
+ "start": {
+ "title": "はじめかた:3 ステップで CopySync を使い始める",
+ "description": "CopySync がはじめての方へ。各コンピューターにアプリを入れ、サーバーの置き方(LAN、Tailscale、クラウド)を選び、"
+ "アドレスを入力してペアリングすれば、Mac と Windows のあいだでコピー&ペーストできます。グローバル IP は不要です。",
+ "h1": "はじめかた",
+ "lede": "アプリを入れて、サーバーを用意し、2 台をペアリングします。最初の設定は 10 分ほど。そのあとはコピーするだけで同期されます。",
+ "toc": [("app", "アプリを入れる"), ("server", "サーバーを用意"), ("connect", "アドレスを入力"), ("pair", "ペアリング")],
+ "step": "ステップ {n}",
+
+ "app_h2": "各コンピューターにアプリを入れる",
+ "app_intro": "同期したいコンピューターすべてに入れます。Mac と Windows の組み合わせも自由です。",
+ "mac": [
+ "CopySync.dmg をダウンロードして開き、CopySync を「アプリケーション」にドラッグします。",
+ "「アプリケーション」から開きます。<span class=\"aside\">初回は「開発元を検証できません」と表示されます。"
+ "「システム設定 → プライバシーとセキュリティ」を開き、ページ下部の「このまま開く」をクリックします。</span>",
+ "「バックグラウンド同期を有効にする」をクリックし、クリップボードの読み取りを聞かれたら許可します。",
+ ],
+ "win": [
+ "CopySync-Setup.exe を実行します。管理者権限は要りません。<span class=\"aside\">「Windows によって PC が保護されました」と出たら、"
+ "「詳細情報」を押してから「実行」を押します。</span>",
+ "CopySync を開き、「バックグラウンド同期を有効にする」をクリックします。ウィンドウを閉じても通知領域で動き続けます。",
+ ],
+ "app_alt": "初めて開いた CopySync:バックグラウンド同期を有効にするよう案内している",
+
+ "server_h2": "サーバーを用意する",
+ "server_intro": "2 台はサーバーを通じてお互いを見つけます。コピーした内容がそこに保存されることはありません。公開サーバーはないので、状況に合うものを選んでください。",
+ "server_after": "インストールが終わると、スクリプトが <code>ws://192.168.1.20:8787/signal</code> のようなアドレスを表示します。次のステップで使います。",
+
+ "connect_h2": "各コンピューターにサーバーのアドレスを入力",
+ "connect_steps": [
+ ("設定を開く", "各コンピューターで CopySync を開き、「設定」に進みます。サーバーを動かしているコンピューターも同じです。"),
+ ("アドレスを入力", "「シグナリングサーバー」に前のステップで表示されたアドレスを入力し、Return か Enter を押します。"),
+ ("状態を確認", "「接続状態」が緑の「接続済み」になれば、そのコンピューターは準備完了です。"),
+ ],
+ "connect_alt": "CopySync の設定画面:シグナリングサーバーは ws://192.168.1.20:8787/signal、接続状態は接続済み",
+ "connect_after": "「未接続」のままなら<a href=\"{server}#faq\">よくある質問</a>をご覧ください。",
+
+ "pair_h2": "2 台をペアリングする",
+ "pair_intro": "2 台ごとに一度ペアリングすれば、あとは何もする必要はありません。",
+ "pair_steps": [
+ "一台で「デバイス」を開き、「デバイスを追加」をクリックします。5 分間有効な 6 桁のコードが表示されます。",
+ "もう一台でも「デバイスを追加」をクリックし、「コードを入力」に切り替えて入力します。",
+ "両方の画面に同じ 2 行の指紋が表示されます。1 文字ずつ照合して一致していれば確定します。"
+ "<span class=\"aside\">途中で誰かがあなたのデバイスになりすますのを防ぐ手順です。省略しないでください。</span>",
+ ],
+ "pair_alt": "デバイスを追加:ペアリングコード K7MP2X を表示し、もう一台で入力する",
+
+ "done_h2": "コピーしてみましょう。",
+ "done_text": "一台でテキスト、画像、ファイルをコピーし、もう一台で ⌘V か Ctrl+V を押します。どちらでコピーしたものも履歴に残ります。",
+ "help": "困ったときは:<a href=\"{server}#faq\">LAN のよくある質問</a> · <a href=\"{ts}#faq\">Tailscale のよくある質問</a> · "
+ "<a href=\"{issues}\">問題を報告</a>",
+ },
+
+ # ── Tailscale でネットワークをまたいで使う(tailscale/ ページ) ──
+ "ts": {
+ "title": "Tailscale で CopySync をネットワークをまたいで使う:グローバル IP なしで自宅と会社を同期",
+ "description": "サーバーは自宅で電源を入れたままのコンピューターに置き、各コンピューターに Tailscale を入れれば、同じ LAN にあるのと同じように使えます。"
+ "グローバル IP もルーターの設定も不要で、会社や外出先からもクリップボードを同期できます。Windows・Mac・Linux の手順つき。",
+ "h1": "Tailscale でネットワークをまたぐ",
+ "lede": "グローバル IP がなくても、自宅と会社のあいだで同期できます。サーバーは自宅に置いたまま、各コンピューターに Tailscale を入れれば、"
+ "同じ LAN にあるのと同じように扱えます。ルーターの設定もクラウドサーバーも要りません。",
+ "toc": [("join", "Tailscale を入れる"), ("address", "アドレスを調べる"), ("install", "サーバーを入れる"), ("check", "確認"),
+ ("clients", "アドレスの入力"), ("faq", "よくある質問")],
+ "step": "ステップ {n}",
+
+ "overview_h2": "同じ LAN にあるように",
+ "overview_intro": "Tailscale はデバイスどうしをつなぐネットワークツールです。同じアカウントでサインインしたデバイスにはそれぞれ 100 で始まる固定のアドレスが割り当てられ、"
+ "実際にどこのネットワークにいても、そのアドレスで互いに届きます。CopySync のサーバーをこのアドレスでインストールし、アプリにも同じアドレスを入力すれば、"
+ "あとは LAN に置く場合と同じです。",
+ "diagram": {
+ "title": "Tailscale 経由の CopySync",
+ "desc": "サーバーと Windows PC は自宅に、Mac は会社にあります。3 台とも Tailscale を使い、同じ仮想ネットワーク上で 100 で始まるアドレスを持っています。"
+ "2 台はシグナリングでサーバー 100.101.102.103 に接続し、コピーした内容は 2 台のあいだを直接流れ、直接つながらないときだけサーバーで中継します。",
+ "net": "Tailscale の仮想ネットワーク:各デバイスに 100 で始まるアドレス",
+ "server": "サーバー",
+ "server_place": "自宅、電源を入れたまま",
+ "mac_place": "会社",
+ "win_place": "自宅",
+ "sig_note": "シグナリング TCP 8787",
+ "relay_note": "中継 UDP 3478(直接不可のとき)",
+ "direct": "直接接続、二重の暗号化",
+ "direct_note": "内容は 2 台のあいだだけを流れる",
+ },
+ "overview_points": [
+ "<strong>サーバーは自宅のまま。</strong>電源を入れたままの Windows・Mac・Linux なら何でもよく、LAN に置く場合と同じです。",
+ "<strong>すべてのコンピューターに Tailscale を入れ、</strong>同じアカウントでサインインします。サーバーを動かすコンピューターも同様です。",
+ "<strong>二重の暗号化。</strong>Tailscale の WireGuard トンネルの中を、CopySync 自身のエンドツーエンド暗号化接続が通ります。Tailscale にもサーバーにも内容は見えません。",
+ ],
+
+ "prep": [
+ ("電源を入れたままのコンピューター", "サーバーを動かします。条件は<a href=\"{server}#prepare\">LAN に置く場合</a>と同じで、電源が切れたりスリープしたりすると同期は止まります。"
+ "Tailscale のアドレスは変わらないので、ルーターでアドレスを固定する必要はありません。"),
+ ("Tailscale のアカウント", "個人利用は無料で、Google、Microsoft、GitHub、Apple のアカウントでサインインできます。すべてのデバイスで同じアカウントを使います。"),
+ ("すべてのコンピューターに Tailscale", "Windows、macOS、Linux 用のクライアントがあります。CopySync を使うコンピューターにはすべて必要で、自宅から動かないものも同じです。"),
+ ("ZeroTier でも同様", "各デバイスに固定の仮想アドレスを割り当てるツールなら同じ手順で使えます。サーバーをそのアドレスでインストールし、アプリにも入力します。ここでは Tailscale を例にします。"),
+ ],
+
+ "join_h2": "各コンピューターに Tailscale を入れる",
+ "join_intro": "サーバーを動かすコンピューターと、同期するすべてのコンピューターに入れて、同じアカウントでサインインします。",
+ "join_steps": [
+ "Tailscale の公式サイトから OS に合ったクライアントをダウンロードしてインストールします。"
+ "<span class=\"aside\">Linux では <code>curl -fsSL https://tailscale.com/install.sh | sh</code> を実行してから "
+ "<code>sudo tailscale up</code> を実行し、表示されたリンクを開いてサインインします。</span>",
+ "Tailscale を開いてサインインします。すべてのコンピューターで同じアカウントを使います。",
+ "サインインすると、Tailscale の管理画面にすべてのデバイスが並び、それぞれに 100 で始まるアドレスが付いています。",
+ ],
+ "join_download": "Tailscale をダウンロード",
+ "machines_cols": ["デバイス", "Tailscale のアドレス", "OS"],
+ "machines_server": "サーバー",
+ "machines_label": "Tailscale の管理画面のデバイス一覧(イメージ):mac-mini がサーバーで 100.101.102.103、macbook-pro は 100.88.20.5、home-pc は 100.92.41.17",
+ "server_notes_h3": "サーバーを動かすコンピューターでは、もうひと手間",
+ "server_notes": [
+ "<strong>Windows:</strong>通知領域の Tailscale アイコンを右クリックし、「Preferences」で「Run unattended」をオンにします。"
+ "そうしないとサインアウトしたときに Tailscale が切れ、外のコンピューターからサーバーに届かなくなります。",
+ "<strong>Mac:</strong>ログインしたまま、スリープさせず、Tailscale がログイン時に開くようにしておきます。CopySync のサーバーもログイン中だけ動きます。",
+ "<strong>キーの有効期限をオフに:</strong>Tailscale は初期設定で 180 日ごとにデバイスの再サインインを求めます。"
+ "管理画面の Machines ページで、サーバーの行の右端のメニューから「Disable key expiry」を選びます。",
+ ],
+
+ "address_h2": "サーバーの Tailscale アドレスを調べる",
+ "address_intro": "サーバーを動かすコンピューターで、メニューバー(Windows では通知領域)の Tailscale アイコンをクリックすると、メニューにこのデバイスのアドレスが表示されます。"
+ "ターミナルで <code>tailscale ip -4</code> を実行しても分かります。",
+ "address_label": "ターミナルで tailscale ip -4 を実行すると、このデバイスの Tailscale アドレス 100.101.102.103 が表示される",
+ "address_after": "以下では <code>100.101.102.103</code> を例にします。あなたのアドレスに置き換えてください。",
+
+ "install_h2": "そのアドレスでサーバーを入れる",
+ "install_intro": "インストールスクリプトは初期設定で LAN のアドレスを使います。ここでは Tailscale のアドレスを指定して、外のコンピューターからもサーバーの中継を使えるようにします。"
+ "すでに<a href=\"{server}\">LAN での手順</a>で入れている場合は、アドレスを付けてもう一度実行するだけで、設定は引き継がれます。",
+ "win": {
+ "steps": [
+ "copysync-server-windows-amd64.zip をダウンロードし、右クリックで「すべて展開」します。インストール済みなら、前に展開したフォルダーを使います。",
+ "展開したフォルダーを開き、上部のアドレスバーに <code>cmd</code> と入力して Enter を押し、コマンドプロンプトを開きます。",
+ "<code>install.cmd 100.101.102.103</code>(あなたのアドレス)を実行し、ユーザーアカウント制御が出たら「はい」を押します。",
+ "インストールは新しく開くウィンドウで進みます。最後に表示されるアドレスが <code>ws://100.101.102.103:8787/signal</code> になっていれば成功です。",
+ ],
+ "notes": [
+ "<strong>ファイアウォールは設定済み:</strong>スクリプトが追加する受信規則はすべてのネットワークに適用され、Tailscale のアダプターも含まれます。",
+ "「Windows によって PC が保護されました」と出たら、「詳細情報」から「実行」を押します。",
+ ],
+ "cmd_title": "コマンド プロンプト",
+ "cmd_label": "展開したフォルダーで開いたコマンドプロンプトで install.cmd 100.101.102.103 を実行する",
+ "term_label": "install.cmd の実行後のウィンドウ。最後にアドレス ws://100.101.102.103:8787/signal を表示",
+ },
+ "mac": {
+ "steps": [
+ "「ターミナル」を開き、次の行を順に実行します。最後の行はあなたのアドレスに置き換えます:",
+ "最後に表示されるアドレスが <code>ws://100.101.102.103:8787/signal</code> になっていれば成功です。",
+ ],
+ "notes": [
+ "インストール済みなら、同じフォルダーで <code>./install.sh 100.101.102.103</code> を実行するだけです。設定は引き継がれます。",
+ "<strong>macOS のファイアウォールがオンなら、</strong>スクリプトの最後に copysync-server を許可するコマンドが表示されます。",
+ ],
+ "term_label": "ターミナルで ./install.sh 100.101.102.103 を実行した出力。最後にアドレス ws://100.101.102.103:8787/signal を表示",
+ },
+ "linux": {
+ "steps": [
+ "次の行を順に実行します。最後の行はあなたのアドレスに置き換えます:<span class=\"aside\">ARM では <code>amd64</code> を <code>arm64</code> に置き換えます。</span>",
+ "最後に表示されるアドレスが <code>ws://100.101.102.103:8787/signal</code> になっていれば成功です。",
+ ],
+ "switch": "<strong>インストール済みの場合:</strong>Linux のスクリプトは既存の設定を書き換えません。設定の中の古いアドレスを Tailscale のアドレスに置き換え"
+ "(下の <code>192.168.1.20</code> を元のアドレスに)、サービスを再起動します:",
+ "term_label": "sudo ./install.sh 100.101.102.103 の出力。最後にアドレス ws://100.101.102.103:8787/signal を表示",
+ },
+
+ "check_h2": "外から確認する",
+ "check_intro": "自宅のネットワークの外にあるコンピューター(スマートフォンのテザリングにつないだノートパソコンなど)で Tailscale が接続されていることを確かめ、"
+ "ブラウザーで <code>http://100.101.102.103:8787/healthz</code> を開きます。次の 1 行が表示されれば、外からサーバーに届いています。",
+ "check_label": "ブラウザーで http://100.101.102.103:8787/healthz を開くと、サーバーの状態 ok とバージョンが表示される",
+ "check_after": "開けない場合は、下の<a href=\"#faq\">よくある質問</a>をご覧ください。",
+
+ "clients_h2": "各コンピューターにアドレスを入力",
+ "clients_steps": [
+ ("設定を開く", "各コンピューターで CopySync を開き、「設定」に進みます。サーバーを動かしているコンピューターも同じです。"),
+ ("Tailscale のアドレスを入力", "「シグナリングサーバー」に <code>ws://100.101.102.103:8787/signal</code>(あなたのアドレス)を入力し、Return か Enter を押します。"),
+ ("状態を確認", "「接続状態」が緑の「接続済み」になれば完了です。まだペアリングしていなければ「デバイス」でペアリングします。"),
+ ],
+ "clients_alt": "CopySync の設定画面:シグナリングサーバーは ws://100.101.102.103:8787/signal、接続状態は接続済み",
+ "clients_after": "自宅のコンピューターにも LAN ではなく Tailscale のアドレスを入力してください。持ち出しても入れ直す必要がありません。"
+ "全員が自宅にいるときも、データは自宅のネットワークの中だけを流れます。",
+
+ "faq": [
+ ("「直接接続」と表示されるのに遅い", [
+ "CopySync の「直接接続」は、2 台が Tailscale のネットワーク上で直接つながっていることを指します。Tailscale 自身が 2 台を P2P でつなげないときは、"
+ "遠くにあることもある DERP サーバーで中継します。",
+ "ターミナルで <code>tailscale ping 相手のアドレス</code> を実行し、via DERP なら Tailscale が中継中、via IP とポートなら P2P です。"
+ "会社や学校のネットワークでは中継になりやすく、DERP サーバーを自分で立てるか、別のツールを試す方法があります。",
+ ]),
+ ("接続状態が「未接続」のまま", [
+ "まずそのコンピューターで Tailscale が接続されているか確かめ、ブラウザーで <code>http://サーバーの Tailscale アドレス:8787/healthz</code> を開きます。",
+ "開けなければ、サーバーのコンピューターがスリープしていないか、そこで Tailscale がオンラインか(Windows では Run unattended、Mac ではログインしたまま)、"
+ "サーバーが LAN のアドレスのままになっていないか、Mac や Linux のファイアウォールに止められていないかを確認します。",
+ ]),
+ ("すべてのコンピューターに Tailscale が必要ですか?", [
+ "はい。入っていないコンピューターは 100 で始まるアドレスに届かず、外のコンピューターからもそのコンピューターに届きません。自宅から動かないものも同じです。",
+ ]),
+ ("LAN の手順でインストール済みです。やり直しが必要?", [
+ "いいえ。Tailscale のアドレスを付けてインストールスクリプトをもう一度実行し(Linux は設定を編集)、各コンピューターのサーバーアドレスを Tailscale のものに変えるだけです。"
+ "ペアリング済みのデバイスはそのままです。",
+ ]),
+ ("Tailscale にコピーした内容は見えますか?", [
+ "見えません。Tailscale の接続は WireGuard でエンドツーエンド暗号化され、その中を CopySync 自身の DTLS 暗号化接続が通ります。どちらの層も開けるのは 2 台のコンピューターだけです。"
+ "Tailscale のサーバーが扱うのはデバイスの公開鍵とアドレスだけで、中継サーバーも暗号化されたパケットを転送するだけです。",
+ ]),
+ ("サーバーの Tailscale アドレスは変わりますか?", [
+ "通常は変わりません。アドレスはデバイスに付いていて、再起動やネットワークの変更でも同じです。デバイスを Tailscale から削除して追加し直したときだけ変わります。",
+ ]),
+ ("グローバル IP があります。Tailscale は必要?", [
+ "不要です。グローバル IP を持つマシンにサーバーを置き、すべてのコンピューターにそのアドレスを入力してください(<a href=\"{home}#cloud\">トップページの設置手順</a>)。",
+ ]),
+ ],
+
+ "closing": "サーバーは自宅に。<br>クリップボードはあなたと一緒に。",
+ "source": "LAN での設置手順に戻る",
+ },
+
"ld_description": "Mac と Windows のコンピューター間でクリップボードとファイルを同期するオープンソースのアプリ。テキスト、画像、ファイル、フォルダを一台でコピーし、もう一台で貼り付けられる。"
"デバイス間は WebRTC で直接つながり DTLS でエンドツーエンド暗号化、つながらないときはユーザーが用意したサーバーの TURN で中継する。",
"ld_os": "macOS 13 以降(Intel と Apple シリコン)、Windows 10、Windows 11(x64)",
diff --git a/tools/site/content/zh.py b/tools/site/content/zh.py
index 1162f7b..5a11bf3 100644
--- a/tools/site/content/zh.py
+++ b/tools/site/content/zh.py
@@ -13,8 +13,8 @@ C = {
"skip": "跳到正文",
"home_label": "CopySync 首页",
"nav_label": "页面导航",
+ "nav_start": "快速开始",
"nav_how": "工作原理",
- "nav_install": "安装",
"nav_faq": "常见问题",
"nav_server": "部署服务器",
"lang_label": "语言",
@@ -25,12 +25,29 @@ C = {
"dl_mac": "下载 Mac 版",
"dl_win": "下载 Windows 版",
"dl_note": "版本 1.3.3,免费开源。macOS 13 及以上,Intel 与 Apple 芯片通用;Windows 10、11。",
+ "start_link": "第一次用?看快速开始,三步配好 →",
"stage_label": "演示:在 MacBook 上按下 Command C,文件化作一张纸,经直连飞到 Windows 笔记本,在那里按下 Ctrl V 粘贴出来",
"stage_file": "季度汇报-终版.pptx",
"stage_win": "Windows 笔记本",
"stage_arc": "直连,端到端加密",
"replay": "再演示一次",
+ # 三种部署方式:(适用条件, 情况, 做法, 说明, 链接文字),链接依次是局域网教程、Tailscale 教程、首页的云服务器部署
+ "paths_h2": "没有公网 IP,也能用",
+ "paths_intro": "两台电脑要靠一台服务器找到彼此。这台服务器不必在公网上:大多数人家里没有公网 IP,放在家里一台常开的电脑上就行。",
+ "paths": [
+ ("不需要公网 IP", "两台电脑在同一个网络里", "局域网部署",
+ "家里或办公室,连着同一个 Wi‑Fi 或有线网络。服务器装在其中一台常开的 Windows、Mac 或 Linux 电脑上,运行一个脚本就好。",
+ "局域网部署教程 →"),
+ ("不需要公网 IP", "一台在家,一台在公司", "局域网部署 + Tailscale",
+ "服务器照样放在家里。每台电脑装上 Tailscale,就像在同一个局域网里:笔记本带到哪儿,复制都能同步。",
+ "Tailscale 教程 →"),
+ ("需要公网 IP", "有一台公网服务器", "云服务器部署",
+ "一台有公网 IP 的 Linux 云主机,最低配置就够。所有电脑直接连它,不用另装组网工具。",
+ "部署步骤 →"),
+ ],
+ "paths_after": "拿不准选哪个?跟着<a href=\"{start}\">快速开始</a>一步步来。",
+
"history_h2": "所有设备上复制过的,都在这里",
"history_intro": "复制记录保留最近 3 天的内容,随时可以放回剪贴板,图片点开就能预览。"
"50 MB 以内的文件在你复制的时候就已经传好了,更大的文件需要时点一下再拉取。",
@@ -138,7 +155,7 @@ C = {
],
"install_h2": "安装",
- "install_intro": "每台电脑装一个 App,再准备一台两边都能访问到的服务器。两台电脑在同一个局域网的话,服务器放在其中一台 Windows、Mac 或 Linux 电脑上就行,见<a href=\"server/\">局域网部署教程</a>。",
+ "install_intro": "每台电脑装一个 App,再准备一台服务器。不需要公网 IP:服务器放在家里一台常开的电脑上,同一个局域网直接用,不在同一个网络就加上 Tailscale。第一次装可以跟着<a href=\"{start}\">快速开始</a>。",
"mac_steps": [
"下载 CopySync.dmg,打开后把 CopySync 拖进「应用程序」。",
"从「应用程序」里打开。<span class=\"aside\">第一次会提示「无法验证开发者」:CopySync 还没有经过 Apple 公证。"
@@ -154,7 +171,10 @@ C = {
"在「设置」里填入服务器地址,按回车。防火墙询问时选择允许。",
],
"server_h3": "服务器",
- "server_intro": "跨公网使用时,一台有公网 IP 的 Linux 服务器,需要 root。ARM 服务器把 <code>amd64</code> 换成 <code>arm64</code>。",
+ "server_lan": "<strong>没有公网 IP 也行。</strong>服务器装在家里或办公室一台常开的 Windows、Mac 或 Linux 电脑上,运行一个脚本。不在同一个网络的电脑,装上 Tailscale 就能连回来。",
+ "server_ts": "用 Tailscale 跨网络",
+ "server_cloud": "有公网 IP 的服务器",
+ "server_intro": "一台有公网 IP 的 Linux 服务器,需要 root。ARM 服务器把 <code>amd64</code> 换成 <code>arm64</code>。",
"copy": "复制",
"copied": "已复制",
"public_ip": "你的公网IP",
@@ -203,8 +223,12 @@ C = {
"实测公司 4 个出口与家用宽带之间可以直连。对端是端口随机分配的 NAT 时仍会走中转。",
]),
("必须自己准备服务器吗?", [
- "是的,CopySync 不提供公共服务器,这样就不会有任何人的数据经过别人的机器。两台电脑在同一个局域网时,在其中一台常开的 Windows、Mac 或 Linux 电脑上运行服务器即可,见<a href=\"server/\">局域网部署教程</a>;"
- "跨网络使用需要一台有公网 IP 的服务器,最低配置的云主机就够。",
+ "是的,CopySync 不提供公共服务器,这样就不会有任何人的数据经过别人的机器。但它不需要公网 IP:放在家里一台常开的 Windows、Mac 或 Linux 电脑上就行,见<a href=\"{server}\">局域网部署教程</a>;"
+ "不在同一个网络的电脑,装上 Tailscale 就能连回来,见<a href=\"{ts}\">Tailscale 教程</a>。有公网 IP 的话,也可以部署在云服务器上,最低配置就够。",
+ ]),
+ ("家里没有公网 IP,能在家和公司之间同步吗?", [
+ "能。服务器装在家里一台常开的电脑上,家里和公司的电脑都装上 Tailscale、登录同一个账号,服务器地址填它的 Tailscale 地址。"
+ "它们就像在同一个局域网里,复制的内容照样在两台电脑之间直接传输。步骤见<a href=\"{ts}\">用 Tailscale 跨网络使用</a>。",
]),
("支持 Windows 吗?iPhone 呢?", [
"支持 Windows 10 与 Windows 11(x64),与 Mac 互通。复制的文件在 Windows 上粘贴出来就是真实文件,能直接粘进资源管理器、微信、Office。",
@@ -243,7 +267,8 @@ C = {
"h1": "在局域网里部署服务器",
"lede": "家里或办公室的电脑在同一个网络里,就不需要云服务器。找一台常开的电脑,下载、运行一个脚本,"
"再把它显示的地址填进每台电脑的 CopySync 里。",
- "toc": [("prepare", "准备"), ("install", "安装服务器"), ("check", "检查"), ("clients", "填地址"), ("faq", "常见问题")],
+ "hero_aside": "两台电脑不在同一个网络,又没有公网 IP?看<a href=\"{ts}\">用 Tailscale 跨网络使用</a>。",
+ "toc": [("prepare", "准备"), ("install", "安装服务器"), ("check", "检查"), ("clients", "填地址"), ("away", "离开家也想用"), ("faq", "常见问题")],
"overview_h2": "服务器只负责牵线",
"overview_intro": "每台电脑一直连着服务器,靠它找到对方、交换连接信息。连上之后,复制的内容在两台电脑之间直接传输;"
@@ -276,8 +301,8 @@ C = {
("一个固定的地址", "在路由器的「DHCP 静态分配」(也叫「地址保留」「IP 与 MAC 绑定」)里给这台电脑固定一个地址。"
"不然路由器换了地址,每台电脑都要重新填。"),
("在同一个网络里", "设备连同一个 Wi‑Fi 或有线网络就行。访客网络、开了「AP 隔离」的 Wi‑Fi 不让设备互相访问,需要换个网络或关掉隔离。"),
- ("离开这个网络就不同步", "服务器只在局域网里访问得到,笔记本带出门后,回来才会继续同步。想在任何地方都能同步,"
- "需要一台有公网 IP 的服务器,见首页的「安装」。"),
+ ("离开这个网络也想同步", "服务器只在局域网里访问得到。笔记本带出门也想同步,给每台电脑装上 Tailscale 就行,"
+ "不需要公网 IP,见<a href=\"{ts}\">Tailscale 教程</a>。"),
],
"install_h2": "安装服务器",
@@ -366,7 +391,11 @@ C = {
("看连接状态", "「连接状态」变成绿色的「已连接」就好了。接着在「设备」里配对,之后复制就会同步。"),
],
"clients_alt": "CopySync 的设置页:信令服务器地址填着 ws://192.168.1.20:8787/signal,连接状态显示已连接",
- "clients_after": '还没装 App?见首页的<a href="{home}#install">安装</a>。',
+ "clients_after": '还没装 App?见<a href="{start}">快速开始</a>。',
+
+ "away_h2": "离开家,也想同步?",
+ "away_text": "给每台电脑装上 Tailscale,服务器用它分配的地址,在公司、在外面都能连回家里的服务器,就像在同一个局域网里。不需要公网 IP,也不用改路由器。",
+ "away_button": "用 Tailscale 跨网络使用",
"faq_h2": "常见问题",
"faq": [
@@ -386,8 +415,9 @@ C = {
"在路由器里给它固定一个地址,就不会再遇到这件事。",
]),
("离开局域网以后还能同步吗?", [
- "不能,服务器只在局域网里访问得到。要在外面也能用,可以把服务器部署到有公网 IP 的机器上(首页的「安装」里有步骤),"
- "或者用 Tailscale、ZeroTier 这类组网工具把设备连进同一个虚拟局域网,服务器地址填它在虚拟网里的地址。",
+ "能,加上 Tailscale 就行:每台电脑装上 Tailscale、登录同一个账号,服务器用 Tailscale 地址安装,客户端也填这个地址,不需要公网 IP。"
+ "步骤见<a href=\"{ts}\">用 Tailscale 跨网络使用</a>。",
+ "有公网 IP 的话,也可以把服务器部署到云服务器上,见<a href=\"{home}#cloud\">首页的部署步骤</a>。",
]),
("用国内的云服务器,填域名连不上、填 IP 却能连?", [
"域名没有备案时,国内的云厂商会拦截访问它的明文 HTTP 请求,返回一个跳转到拦截页的响应,实测 8787 这样的非常用端口也一样。"
@@ -403,6 +433,217 @@ C = {
"source": "服务器的完整部署说明(含公网与 Docker)",
},
+ # ── 快速开始(start/ 页面) ──
+ "start": {
+ "title": "快速开始:三步用上 CopySync",
+ "description": "第一次用 CopySync?在每台电脑上安装 App,选一种方式部署服务器(局域网、Tailscale 或云服务器),"
+ "填好地址再配对,就能在 Mac 与 Windows 之间复制粘贴。不需要公网 IP。",
+ "h1": "快速开始",
+ "lede": "装好 App,准备一台服务器,再把两台电脑配对。第一次大约十分钟,之后复制就会自动同步。",
+ "toc": [("app", "安装 App"), ("server", "准备服务器"), ("connect", "填服务器地址"), ("pair", "配对")],
+ "step": "第 {n} 步",
+
+ "app_h2": "在每台电脑上安装 App",
+ "app_intro": "要同步的每台电脑都装一个,Mac 与 Windows 可以混用。",
+ "mac": [
+ "下载 CopySync.dmg,打开后把 CopySync 拖进「应用程序」。",
+ "从「应用程序」里打开。<span class=\"aside\">第一次会提示「无法验证开发者」:到「系统设置 → 隐私与安全性」,点页面下方的「仍要打开」。</span>",
+ "点「启用后台同步」。系统询问是否允许读取剪贴板时,选择允许。",
+ ],
+ "win": [
+ "运行 CopySync-Setup.exe,不需要管理员权限。<span class=\"aside\">提示「Windows 已保护你的电脑」时,点「更多信息」,再点「仍要运行」。</span>",
+ "打开 CopySync,点「启用后台同步」。关掉窗口后它在右下角的托盘里继续运行。",
+ ],
+ "app_alt": "第一次打开 CopySync:提示启用后台同步",
+
+ "server_h2": "准备一台服务器",
+ "server_intro": "两台电脑靠它找到彼此,复制的内容不会存在上面。CopySync 不提供公共服务器,按你的情况选一种:",
+ "server_after": "装好后,安装脚本最后会显示一个地址,形如 <code>ws://192.168.1.20:8787/signal</code>,下一步要用。",
+
+ "connect_h2": "在每台电脑上填服务器地址",
+ "connect_steps": [
+ ("打开设置", "在每台电脑上打开 CopySync,进入「设置」。服务器所在的那台电脑也一样。"),
+ ("填入地址", "在「信令服务器地址」里填上一步显示的地址,按回车保存。"),
+ ("看连接状态", "「连接状态」变成绿色的「已连接」,这台电脑就准备好了。"),
+ ],
+ "connect_alt": "CopySync 的设置页:信令服务器地址填着 ws://192.168.1.20:8787/signal,连接状态显示已连接",
+ "connect_after": "一直是「未连接」?看<a href=\"{server}#faq\">常见问题</a>。",
+
+ "pair_h2": "把两台电脑配对",
+ "pair_intro": "每两台电脑之间配对一次,之后就不用再管了。",
+ "pair_steps": [
+ "在一台电脑上打开「设备」,点「添加设备」,会显示一个 6 位配对码,5 分钟内有效。",
+ "在另一台电脑上同样点「添加设备」,切到「输入配对码」,输入它。",
+ "两块屏幕会显示同样的两行安全指纹。逐字核对一致后,再点确认。"
+ "<span class=\"aside\">这一步防止有人在中间冒充你的设备,不要跳过。</span>",
+ ],
+ "pair_alt": "添加设备:显示配对码 K7MP2X,在另一台设备上输入它",
+
+ "done_h2": "复制试试。",
+ "done_text": "在一台电脑上复制文字、图片或文件,到另一台按 ⌘V 或 Ctrl+V。两边复制过的内容都在「复制记录」里。",
+ "help": "遇到问题:<a href=\"{server}#faq\">局域网部署的常见问题</a> · <a href=\"{ts}#faq\">Tailscale 的常见问题</a> · "
+ "<a href=\"{issues}\">反馈问题</a>",
+ },
+
+ # ── 用 Tailscale 跨网络使用(tailscale/ 页面) ──
+ "ts": {
+ "title": "用 Tailscale 跨网络使用 CopySync:没有公网 IP 也能在家和公司之间同步",
+ "description": "服务器放在家里一台常开的电脑上,每台电脑装上 Tailscale,就像在同一个局域网里:"
+ "不需要公网 IP,也不用改路由器,在公司、在外面都能同步剪贴板。Windows、Mac、Linux 图文教程。",
+ "h1": "用 Tailscale 跨网络使用",
+ "lede": "没有公网 IP,也能在家和公司之间同步。服务器照样放在家里,每台电脑装上 Tailscale,"
+ "它们就像在同一个局域网里,不用改路由器,也不用买云服务器。",
+ "toc": [("join", "装 Tailscale"), ("address", "查地址"), ("install", "安装服务器"), ("check", "检查"),
+ ("clients", "填地址"), ("faq", "常见问题")],
+ "step": "第 {n} 步",
+
+ "overview_h2": "像在同一个局域网里",
+ "overview_intro": "Tailscale 是一个组网工具:装了它、登录同一个账号的设备,各自分到一个固定的 100 开头的地址,"
+ "不管实际在哪个网络里,都能用这个地址互相访问。CopySync 的服务器用这个地址安装,客户端也填这个地址,其余和局域网部署一样。",
+ "diagram": {
+ "title": "通过 Tailscale 使用 CopySync",
+ "desc": "服务器在家里,Mac 在公司,Windows 在家里,三台设备都装了 Tailscale,在同一个虚拟局域网里各有一个 100 开头的地址。"
+ "两台电脑通过信令连接到服务器 100.101.102.103,复制的内容在两台电脑之间直连传输,直连不通时经服务器中转。",
+ "net": "Tailscale 虚拟局域网:每台设备一个 100 开头的地址",
+ "server": "服务器",
+ "server_place": "在家里,一直开着",
+ "mac_place": "在公司",
+ "win_place": "在家里",
+ "sig_note": "信令 TCP 8787",
+ "relay_note": "中转 UDP 3478,直连不通时",
+ "direct": "直连,两层加密",
+ "direct_note": "复制的内容只在两台电脑之间传输",
+ },
+ "overview_points": [
+ "<strong>服务器还在家里。</strong>任意一台常开的 Windows、Mac 或 Linux 电脑,和局域网部署一样。",
+ "<strong>每台电脑都装 Tailscale,</strong>登录同一个账号。服务器所在的那台也要装。",
+ "<strong>两层加密。</strong>Tailscale 的 WireGuard 隧道里,跑的是 CopySync 自己端到端加密的连接,Tailscale 和你的服务器都看不到内容。",
+ ],
+
+ "prep": [
+ ("一台常开的电脑", "当服务器用,要求和<a href=\"{server}#prepare\">局域网部署</a>一样,关机或睡眠时同步会暂停。"
+ "它的 Tailscale 地址不会变,不需要在路由器里固定地址。"),
+ ("一个 Tailscale 账号", "个人使用免费,用 Google、Microsoft、GitHub 或 Apple 账号就能登录。所有设备登录同一个账号。"),
+ ("每台电脑都装 Tailscale", "Windows、macOS、Linux 都有客户端。用 CopySync 的电脑都要装,一直待在家里的那台也一样。"),
+ ("用 ZeroTier 也行", "其他能给每台设备分配固定虚拟地址的组网工具,做法相同:服务器用它分配的地址安装,客户端填这个地址。下面以 Tailscale 为例。"),
+ ],
+
+ "join_h2": "在每台电脑上装 Tailscale",
+ "join_intro": "服务器所在的电脑和每台要同步的电脑,都装上并登录同一个账号。",
+ "join_steps": [
+ "到 Tailscale 官网下载对应系统的客户端并安装。"
+ "<span class=\"aside\">Linux 上运行 <code>curl -fsSL https://tailscale.com/install.sh | sh</code>,再运行 <code>sudo tailscale up</code>,打开它给出的链接登录。</span>",
+ "打开 Tailscale,登录。每台电脑都用同一个账号。",
+ "登录后,在 Tailscale 的管理后台能看到所有设备,每台都有一个 100 开头的地址。",
+ ],
+ "join_download": "下载 Tailscale",
+ "machines_cols": ["设备", "Tailscale 地址", "系统"],
+ "machines_server": "服务器",
+ "machines_label": "Tailscale 管理后台的设备列表(示意):mac-mini 是服务器,地址 100.101.102.103;macbook-pro 是 100.88.20.5;home-pc 是 100.92.41.17",
+ "server_notes_h3": "服务器所在的那台电脑,再多做一步",
+ "server_notes": [
+ "<strong>Windows:</strong>在任务栏右下角的 Tailscale 图标上右键,在「Preferences」里勾选「Run unattended」。"
+ "不然注销之后 Tailscale 会断开,外面的电脑就连不上服务器了。",
+ "<strong>Mac:</strong>保持登录、不睡眠,确认 Tailscale 登录后会自动打开。CopySync 的服务器也是登录后才运行。",
+ "<strong>关掉密钥过期:</strong>Tailscale 默认每 180 天要求设备重新登录一次。在管理后台的 Machines 页面,"
+ "点服务器那一行最右边的菜单,选「Disable key expiry」。",
+ ],
+
+ "address_h2": "查服务器的 Tailscale 地址",
+ "address_intro": "在服务器所在的电脑上点菜单栏(Windows 上是任务栏右下角)的 Tailscale 图标,菜单里能看到本机的地址;"
+ "或者在终端里运行 <code>tailscale ip -4</code>。",
+ "address_label": "在终端里运行 tailscale ip -4,输出本机的 Tailscale 地址 100.101.102.103",
+ "address_after": "下面都以 <code>100.101.102.103</code> 为例,换成你的地址。",
+
+ "install_h2": "用这个地址安装服务器",
+ "install_intro": "安装脚本默认用局域网地址,这里要带上 Tailscale 地址,外面的电脑才用得到服务器的中转。"
+ "已经照<a href=\"{server}\">局域网教程</a>装过的,带上地址再运行一次即可,原来的设置保留。",
+ "win": {
+ "steps": [
+ "下载 copysync-server-windows-amd64.zip,右键选「全部解压缩」。已经装过的,用原来解压出的文件夹。",
+ "打开解压出的文件夹,在窗口顶部的地址栏里输入 <code>cmd</code>,按回车,打开命令提示符。",
+ "运行 <code>install.cmd 100.101.102.103</code>(换成你的地址),弹出用户账户控制时点「是」。",
+ "安装在新打开的窗口里进行。最后显示的地址应当是 <code>ws://100.101.102.103:8787/signal</code>。",
+ ],
+ "notes": [
+ "<strong>防火墙已经放行:</strong>脚本添加的入站规则对所有网络生效,Tailscale 的网卡也包括在内。",
+ "提示「Windows 已保护你的电脑」时,点「更多信息」,再点「仍要运行」。",
+ ],
+ "cmd_title": "命令提示符",
+ "cmd_label": "在解压出的文件夹里打开命令提示符,运行 install.cmd 100.101.102.103",
+ "term_label": "install.cmd 运行完的窗口:最后显示客户端要填的地址 ws://100.101.102.103:8787/signal",
+ },
+ "mac": {
+ "steps": [
+ "打开「终端」,逐行运行,最后一行换成你的地址:",
+ "最后显示的地址应当是 <code>ws://100.101.102.103:8787/signal</code>。",
+ ],
+ "notes": [
+ "已经装过的,在原来的文件夹里运行 <code>./install.sh 100.101.102.103</code> 即可,原来的设置保留。",
+ "<strong>开着系统防火墙的话,</strong>脚本最后会给出放行 copysync-server 的命令。",
+ ],
+ "term_label": "在终端里运行 ./install.sh 100.101.102.103 的输出,最后显示客户端要填的地址 ws://100.101.102.103:8787/signal",
+ },
+ "linux": {
+ "steps": [
+ "逐行运行,最后一行换成你的地址:<span class=\"aside\">ARM 设备把 <code>amd64</code> 换成 <code>arm64</code>。</span>",
+ "最后显示的地址应当是 <code>ws://100.101.102.103:8787/signal</code>。",
+ ],
+ "switch": "<strong>已经装过的:</strong>Linux 的安装脚本不会改动已有的配置。把配置里原来的地址换成 Tailscale 地址"
+ "(下面的 <code>192.168.1.20</code> 换成你原来的地址),再重启服务:",
+ "term_label": "运行 sudo ./install.sh 100.101.102.103 的输出,最后显示客户端要填的地址 ws://100.101.102.103:8787/signal",
+ },
+
+ "check_h2": "从外面检查一下",
+ "check_intro": "找一台不在家里网络的电脑,或者让笔记本连上手机热点,确认 Tailscale 已连接,"
+ "在浏览器里打开 <code>http://100.101.102.103:8787/healthz</code>。看到下面这一行,在外面也能访问到服务器了。",
+ "check_label": "浏览器打开 http://100.101.102.103:8787/healthz,页面显示服务器的状态 ok 与版本号",
+ "check_after": "打不开的话,看下面的<a href=\"#faq\">常见问题</a>。",
+
+ "clients_h2": "在每台电脑上填地址",
+ "clients_steps": [
+ ("打开设置", "在每台电脑上打开 CopySync,进入「设置」。服务器所在的那台电脑也一样。"),
+ ("填 Tailscale 地址", "在「信令服务器地址」里填 <code>ws://100.101.102.103:8787/signal</code>(换成你的地址),按回车保存。"),
+ ("看连接状态", "「连接状态」变成绿色的「已连接」就好了。还没配对的话,在「设备」里配对。"),
+ ],
+ "clients_alt": "CopySync 的设置页:信令服务器地址填着 ws://100.101.102.103:8787/signal,连接状态显示已连接",
+ "clients_after": "家里的电脑也填 Tailscale 地址,不要填局域网地址:这样电脑在家、在外面,地址都不用改。都在家时,数据照样只在家里的网络里走。",
+
+ "faq": [
+ ("设备之间显示「直连」,速度却很慢?", [
+ "CopySync 显示的「直连」,指两台电脑在 Tailscale 的虚拟网里直接相连。Tailscale 自己打不通两台电脑时,"
+ "会经它在境外的中转服务器(DERP)转发,在国内用就会慢。",
+ "在终端里运行 <code>tailscale ping 对方的地址</code>:显示 via DERP,说明 Tailscale 在中转;显示 via 一个 IP 和端口,就是点对点。"
+ "公司网络、校园网比较容易遇到中转,可以自建 DERP 中转服务器,或者换一种组网工具。",
+ ]),
+ ("连接状态一直是「未连接」?", [
+ "先确认这台电脑的 Tailscale 已连接,再在浏览器里打开 <code>http://服务器的 Tailscale 地址:8787/healthz</code>。",
+ "打不开的话,看服务器那台电脑是不是睡眠了、Tailscale 是否在线(Windows 上要勾选 Run unattended,Mac 上要保持登录),"
+ "服务器是不是还用着局域网地址,以及 Mac、Linux 上的防火墙有没有放行。",
+ ]),
+ ("一定要每台电脑都装 Tailscale 吗?", [
+ "是的。没装的电脑访问不到 100 开头的地址,在外面的电脑也找不到它。一直待在家里的那台也要装。",
+ ]),
+ ("已经照局域网教程装好了,要从头来吗?", [
+ "不用。带上 Tailscale 地址把安装脚本再运行一次(Linux 上改一下配置),然后在每台电脑上把服务器地址改成 Tailscale 地址。"
+ "已经配对的设备不用重新配对。",
+ ]),
+ ("Tailscale 能看到我复制的内容吗?", [
+ "不能。Tailscale 的连接用 WireGuard 端到端加密,里面跑的又是 CopySync 自己的 DTLS 加密连接,两层都只有两台电脑能解开。"
+ "Tailscale 的服务器只交换设备的公钥和地址,中转服务器也只转发加密后的数据包。",
+ ]),
+ ("服务器的 Tailscale 地址会变吗?", [
+ "一般不会。地址跟着设备走,重启、换网络都不变;只有把设备从 Tailscale 里删掉再重新加入,才会换一个。",
+ ]),
+ ("我有公网 IP,还需要 Tailscale 吗?", [
+ "不需要。把服务器部署在有公网 IP 的机器上,所有电脑填它的公网地址就行,见<a href=\"{home}#cloud\">首页的部署步骤</a>。",
+ ]),
+ ],
+
+ "closing": "服务器在家里,<br>复制跟着你走。",
+ "source": "回到局域网部署教程",
+ },
+
"ld_description": "在 Mac 与 Windows 电脑之间同步剪贴板与文件的开源工具。复制文本、图片、文件或文件夹后,另一台电脑可直接粘贴。"
"设备间 WebRTC 直连、DTLS 端到端加密,打不通时经用户自建服务器的 TURN 中转。",
"ld_os": "macOS 13 及以上(Intel 与 Apple 芯片);Windows 10、Windows 11(x64)",
diff --git a/ui/tool/screenshots/screenshots_test.dart b/ui/tool/screenshots/screenshots_test.dart
index 44cd300..a35cfca 100644
--- a/ui/tool/screenshots/screenshots_test.dart
+++ b/ui/tool/screenshots/screenshots_test.dart
@@ -320,6 +320,29 @@ void main() {
section: Section.settings, brightness: Brightness.dark);
});
+ // 网站「用 Tailscale 跨网络使用」:服务器地址填 Tailscale 分配的 100.x 地址
+ testWidgets('settings-tailscale-dark', (tester) async {
+ await _shoot(tester, 'settings-tailscale-dark',
+ state: _demo(server: 'ws://100.101.102.103:8787/signal'),
+ section: Section.settings, brightness: Brightness.dark);
+ });
+
+ // 网站「快速开始」:第一次打开、生成配对码,深色界面配深色网页
+ testWidgets('welcome-dark', (tester) async {
+ final state = _demo(link: LinkState.offline, service: ServiceState.notInstalled, empty: true);
+ await _shoot(tester, 'welcome-dark', state: state, brightness: Brightness.dark);
+ });
+
+ testWidgets('pairing-dark', (tester) async {
+ await _shoot(tester, 'pairing-dark', state: _demo(), section: Section.devices,
+ brightness: Brightness.dark, arrange: () async {
+ showDialog<void>(
+ context: tester.element(find.byType(Shell)),
+ builder: (_) => const PairingDialog(),
+ );
+ });
+ });
+
// 网站上与文字并排展示的对话框:单独渲染,透明背景,保留对话框自己的圆角与阴影
for (final dark in [false, true]) {
testWidgets(dark ? 'card-verify-dark' : 'card-verify', (tester) async {