This commit is contained in:
2026-06-01 00:53:38 +08:00
parent 4a5dfef19c
commit e71cd54029
5 changed files with 181 additions and 4 deletions
+72 -3
View File
@@ -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"
- 本网站相关内容仅代表个人观点,不构成医疗、金融、法律等任何专业领域建议;
- 系统配置相关内容请确保在虚拟机中测试,以免造成数据资料损失;
- 本人欢迎您与我进行相关问题的探讨,纠正可能存在的内容错误;但由于本人已尽合理注意义务,对因使用本网站内容而可能造成的任何直接或间接损失,本人不承担任何法律责任。
## 附加功能
## 服务架构
```mermaid
flowchart TD
subgraph PublicNetwork["公网"]
direction TB
subgraph F["阿里云 Fedora"]
F_router[FRPS]
F_status[Uptime Kuma 公网<br/>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 校内<br/>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 隧道<br/>监控 status-local"| A_kuma_local
A_kuma_local -->|"2: FRP 隧道<br/>监控 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
```
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 102 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 47 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 45 KiB

+2 -1
View File
@@ -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)