From 43776498da07ae3c770bbc33b4d1f0dd1e046c54 Mon Sep 17 00:00:00 2001 From: cnphpbb Date: Thu, 29 May 2025 14:36:30 +0800 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=E5=9C=A8.gitignore=E4=B8=AD?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0test/=E5=92=8Ctests/=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 忽略测试相关目录以避免将其提交到版本控制 --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index cf136b0..e76e344 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,8 @@ docker-compose.override.yml # 系统文件 .DS_Store Thumbs.db +test/ +tests/ # 日志文件 *.log From 8916edc565d0f43faa55770e8c02fc4ee1ad760b Mon Sep 17 00:00:00 2001 From: cnphpbb Date: Tue, 3 Jun 2025 00:37:25 +0800 Subject: [PATCH 2/2] =?UTF-8?q?refactor(config):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E7=A4=BE=E4=BA=A4=E7=BD=91=E7=BB=9C=E7=B1=BB=E5=88=AB=E5=B9=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AE=89=E5=85=A8=E5=87=AD=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除不再需要的社交网络类别及其相关链接配置 - 在security部分新增username和password字段以增强安全性 --- mynat/config.toml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/mynat/config.toml b/mynat/config.toml index 9d893a2..9fd7886 100644 --- a/mynat/config.toml +++ b/mynat/config.toml @@ -9,16 +9,6 @@ url = 'https://google.com' name = 'Baidu' url = 'https://baidu.com' -[[categories]] -name = '社交网络' - -[[categories.links]] -name = 'Twitter' -url = 'https://twitter.com' - -[[categories.links]] -name = 'Facebook' -url = 'https://facebook.com' [[categories]] name = '编程工具' @@ -45,6 +35,8 @@ output = 'stdout' [security] cors = true +username = "admin" +password = "your_secure_password" [server] # mode :: debug(开发模式) 或 release(生产模式)