diff --git a/content/page/links/index.md b/content/page/links/index.md index c95446b..deb4432 100644 --- a/content/page/links/index.md +++ b/content/page/links/index.md @@ -5,6 +5,10 @@ links: description: 云存储平台。 website: https://cloud.cirrus.org.cn/ image: /logo/cloudreve_logo.svg + - title: Cloudreve (校内直连) + description: 云存储平台。 + website: https://cloud-direct.cirrus.org.cn/ + image: /logo/cloudreve_direct_logo.svg - title: code-server description: 在线IDE。 website: https://code.cirrus.org.cn/ @@ -13,8 +17,12 @@ links: description: Git存储库。 website: https://git.cirrus.org.cn/ image: /logo/gitea_logo.svg + - title: Gitea (校内直连) + description: Git存储库。 + website: https://git-direct.cirrus.org.cn/ + image: /logo/gitea_direct_logo.svg - title: Memos - description: 小笔记平台。 + description: 笔记平台。 website: https://memos.cirrus.org.cn/ image: /logo/memos_logo.webp - title: 静态网站导航页 @@ -33,6 +41,10 @@ links: description: 检查网站可用性。 website: https://status.cirrus.org.cn/ image: /logo/uptime_kuma_logo.svg + - title: Uptime Kuma (校内) + description: 检查校内直连访问可用性。 + website: https://status-local.cirrus.org.cn/ + image: /logo/uptime_kuma_local_logo.svg menu: main: weight: 4 @@ -50,7 +62,7 @@ slug: "sudo_whoami" - 2026.5.31 - 全站启用HTTPS访问; - 全站启用IPv4与IPv6双栈访问; - - 配置了反向代理,全站所有功能可通过公网访问。 + - 配置了FRP反向代理,全站所有功能可通过公网访问。 - 2026.5.27 - 为所有文章设置了3位Base62序号索引的唯一slug,得到了短URL; - 添加了公网可用的新功能:Uptime Kuma,版本2.3.2; @@ -87,4 +99,61 @@ slug: "sudo_whoami" - 本网站相关内容仅代表个人观点,不构成医疗、金融、法律等任何专业领域建议; - 系统配置相关内容请确保在虚拟机中测试,以免造成数据资料损失; - 本人欢迎您与我进行相关问题的探讨,纠正可能存在的内容错误;但由于本人已尽合理注意义务,对因使用本网站内容而可能造成的任何直接或间接损失,本人不承担任何法律责任。 -## 附加功能 \ No newline at end of file +## 服务架构 +```mermaid +flowchart TD + subgraph PublicNetwork["公网"] + direction TB + subgraph F["阿里云 Fedora"] + F_router[FRPS] + F_status[Uptime Kuma 公网
status] + end + end + + subgraph CampusNetwork["校园网"] + direction TB + + subgraph A["学校机房 Arch Linux"] + A_code[code-server] + A_memos[Memos] + A_static[静态网站] + A_kuma_local[Uptime Kuma 校内
status-local] + end + + subgraph M["校内 MacBook Pro"] + M_cloud[Cloudreve] + M_git[Gitea] + end + end + + %% User 单独定义,不放进任何子图,自然跨越两个网络区域 + User[用户 User] + User -->|"公网/校园网访问"| F_router + User -->|"校内直连"| M_cloud + User -->|"校内直连"| M_git + + %% 跨网连接:公网 → 校园网 + F_router -->|"1: FRP 隧道"| M_cloud + F_router -->|"1: FRP 隧道"| M_git + F_router -->|"2: FRP 隧道"| A_code + F_router -->|"2: FRP 隧道"| A_memos + F_router -->|"2: FRP 隧道"| A_static + F_router -->|"2: FRP 隧道"| A_kuma_local + + %% 校内探测 + A_kuma_local -->|"4: 校内直连探测"| M_cloud + A_kuma_local -->|"4: 校内直连探测"| M_git + + %% 互相监控 + F_status -->|"2: FRP 隧道
监控 status-local"| A_kuma_local + A_kuma_local -->|"2: FRP 隧道
监控 status"| F_status + + %% 样式 + classDef public fill:#e3f2fd,stroke:#1e88e5,stroke-width:2px + classDef campus fill:#fff3e0,stroke:#fb8c00,stroke-width:2px + classDef user fill:#e8f5e9,stroke:#43a047,stroke-width:2px,font-size:16px + + class F public + class A,M campus + class User user +``` \ No newline at end of file diff --git a/static/logo/cloudreve_direct_logo.svg b/static/logo/cloudreve_direct_logo.svg new file mode 100644 index 0000000..cf0520f --- /dev/null +++ b/static/logo/cloudreve_direct_logo.svg @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/logo/gitea_direct_logo.svg b/static/logo/gitea_direct_logo.svg new file mode 100644 index 0000000..99a379f --- /dev/null +++ b/static/logo/gitea_direct_logo.svg @@ -0,0 +1,18 @@ + + + + + + + + + + \ No newline at end of file diff --git a/static/logo/uptime_kuma_local_logo.svg b/static/logo/uptime_kuma_local_logo.svg new file mode 100644 index 0000000..f62bb9d --- /dev/null +++ b/static/logo/uptime_kuma_local_logo.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/启动.sh b/启动.sh index 3479344..f001bd1 100755 --- a/启动.sh +++ b/启动.sh @@ -2,7 +2,8 @@ # 静默启动:nohup command > output.log 2>&1 & BLOG_DIR="$HOME/hugosite" cd "$BLOG_DIR" - +rm -rf ./public +rm -rf ./resources # 获取 IP 地址 IPV4=$(ifconfig | grep "inet " | grep -v 127.0.0.1 | awk '{print $2}' | head -1) IPV6=$(ifconfig | grep -E "broadcast|autoconf secured" | grep "inet6"| awk '{print $2}' | head -1)