Compare commits
280 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
d429699172 | 1 month ago |
|
|
62653d7003 | 1 month ago |
|
|
4e1abd6b42 | 1 month ago |
|
|
86fa8f6086 | 1 month ago |
|
|
7fe16eef4d | 1 month ago |
|
|
9fb2624668 | 1 month ago |
|
|
0c8cf9d853 | 1 month ago |
|
|
d50e6d529e | 1 month ago |
|
|
8172a3f3be | 1 month ago |
|
|
68775a30cd | 1 month ago |
|
|
54b55e2c90 | 1 month ago |
|
|
432e26e378 | 1 month ago |
|
|
bf7768ae0c | 1 month ago |
|
|
df53cea203 | 1 month ago |
|
|
eb38f9debd | 1 month ago |
|
|
884d967302 | 1 month ago |
|
|
88021474c8 | 1 month ago |
|
|
c21b4fad26 | 1 month ago |
|
|
0040e76894 | 1 month ago |
|
|
1d858ff795 | 1 month ago |
|
|
b3db639284 | 1 month ago |
|
|
48ecd03f5a | 1 month ago |
|
|
d8debc5f3e | 1 month ago |
|
|
387237a748 | 1 month ago |
|
|
699e0d6f24 | 1 month ago |
|
|
3ca8cfa131 | 1 month ago |
|
|
e55b26f1fd | 1 month ago |
|
|
2b87fe89f2 | 1 month ago |
|
|
c9f2fdb9fa | 1 month ago |
|
|
b33ba9e7f6 | 1 month ago |
|
|
09801dc6e8 | 1 month ago |
|
|
5783ae618f | 1 month ago |
|
|
7c6dd642d6 | 1 month ago |
|
|
71fc613b59 | 1 month ago |
|
|
b82f3b855e | 1 month ago |
|
|
07e41b2a0f | 1 month ago |
|
|
3aa218bc33 | 1 month ago |
|
|
9f3a090ca3 | 1 month ago |
|
|
b3ea1927bd | 1 month ago |
|
|
cda57ce93e | 1 month ago |
|
|
732a336d8c | 1 month ago |
|
|
d990d386e1 | 1 month ago |
|
|
61726f87e4 | 1 month ago |
|
|
1100792586 | 1 month ago |
|
|
1a58ec911c | 1 month ago |
|
|
2920d6a8e7 | 1 month ago |
|
|
0da8f1331c | 1 month ago |
|
|
fb6a11d165 | 1 month ago |
|
|
ecf221d181 | 1 month ago |
|
|
82ce350001 | 1 month ago |
|
|
9f32fe6217 | 1 month ago |
|
|
a45a0da682 | 1 month ago |
|
|
63b4741ff2 | 1 month ago |
|
|
26351f8b3b | 1 month ago |
|
|
b11856d600 | 1 month ago |
|
|
6a9918108e | 1 month ago |
|
|
c12e8d7b62 | 1 month ago |
|
|
84b1ba14c8 | 1 month ago |
|
|
04237e8c28 | 1 month ago |
|
|
5f69df48ad | 1 month ago |
|
|
a39118ab8d | 1 month ago |
|
|
1164b0fc5b | 1 month ago |
|
|
82c1e533bf | 1 month ago |
|
|
369201caf9 | 1 month ago |
|
|
d1c0ac6749 | 1 month ago |
|
|
0c5bfb1d0c | 1 month ago |
|
|
e95cba7b84 | 1 month ago |
|
|
8cf4428346 | 1 month ago |
|
|
857ac074da | 1 month ago |
|
|
55f5c5a944 | 1 month ago |
|
|
d23c690589 | 1 month ago |
|
|
4a1b663125 | 1 month ago |
|
|
35bff16085 | 1 month ago |
|
|
bccb75a2ae | 1 month ago |
|
|
7f34725d7e | 1 month ago |
|
|
6dc0d21c32 | 1 month ago |
|
|
3997477494 | 1 month ago |
|
|
6a843e99cf | 1 month ago |
|
|
7f9fb9ca30 | 1 month ago |
|
|
4e1cbab1e9 | 1 month ago |
|
|
b1e8a46a65 | 1 month ago |
|
|
ab1a04d297 | 1 month ago |
|
|
7082107662 | 1 month ago |
|
|
d8cf44b2ad | 1 month ago |
|
|
aabd8b8acb | 1 month ago |
|
|
e003c2abc2 | 1 month ago |
|
|
3190012361 | 1 month ago |
|
|
cbd0a83a96 | 1 month ago |
|
|
4046a895ea | 1 month ago |
|
|
887072ac61 | 1 month ago |
|
|
be5efa7033 | 1 month ago |
|
|
a578502798 | 1 month ago |
|
|
5b8240939b | 1 month ago |
|
|
287670d584 | 1 month ago |
|
|
177ebb7cb6 | 1 month ago |
|
|
d3bba00f14 | 1 month ago |
|
|
13aacd7636 | 1 month ago |
|
|
ce9d77f999 | 1 month ago |
|
|
78cadb051f | 1 month ago |
|
|
36636221f7 | 1 month ago |
|
|
e7230fffe2 | 1 month ago |
|
|
fc01273112 | 1 month ago |
|
|
521d40ae72 | 1 month ago |
|
|
2bac113155 | 1 month ago |
|
|
6dbd1fe593 | 1 month ago |
|
|
67e59a263a | 1 month ago |
|
|
212f770154 | 1 month ago |
|
|
b5ed1e130d | 1 month ago |
|
|
b1429f61b4 | 1 month ago |
|
|
e290872e5a | 1 month ago |
|
|
4ec4fefc30 | 1 month ago |
|
|
b333246e9f | 1 month ago |
|
|
04e12d1906 | 1 month ago |
|
|
9f0d16600d | 1 month ago |
|
|
40f9c549da | 1 month ago |
|
|
7d60707246 | 1 month ago |
|
|
38fd302195 | 1 month ago |
|
|
2112379323 | 1 month ago |
|
|
41528cfc76 | 1 month ago |
|
|
d51b169ffc | 1 month ago |
|
|
ecd65d6b65 | 1 month ago |
|
|
afbd8c2941 | 1 month ago |
|
|
3e2b36723a | 2 months ago |
|
|
3f9d3d2d63 | 2 months ago |
|
|
b8105fab23 | 2 months ago |
|
|
9bb5d30b0a | 2 months ago |
|
|
7b70b8f285 | 2 months ago |
|
|
12e20d150f | 2 months ago |
|
|
fad3b4e4fd | 2 months ago |
|
|
77566fc15c | 2 months ago |
|
|
b7c4cc270c | 2 months ago |
|
|
59dd1e4d33 | 2 months ago |
|
|
9c84724eb1 | 2 months ago |
|
|
b9a2829bed | 2 months ago |
|
|
ff75762a75 | 2 months ago |
|
|
f3ca55b5e4 | 2 months ago |
|
|
f3822ac66d | 2 months ago |
|
|
7f804125b5 | 2 months ago |
|
|
ff0cdcb620 | 2 months ago |
|
|
6d6e497db0 | 2 months ago |
|
|
f2c624b2db | 2 months ago |
|
|
069c7f1b56 | 2 months ago |
|
|
514861f562 | 2 months ago |
|
|
5e8f623e2a | 2 months ago |
|
|
328b18b8e3 | 2 months ago |
|
|
3fcebe4d40 | 2 months ago |
|
|
0347169753 | 2 months ago |
|
|
4f889fb1cc | 2 months ago |
|
|
f0ad01fb47 | 2 months ago |
|
|
8b9d8d7e82 | 2 months ago |
|
|
05f42e51bf | 2 months ago |
|
|
74cd779901 | 2 months ago |
|
|
d6b6d390d5 | 2 months ago |
|
|
68108b3f38 | 2 months ago |
|
|
a07e11c681 | 2 months ago |
|
|
5c8d95bd9a | 2 months ago |
|
|
3c305a552d | 2 months ago |
|
|
fe43fdbf9c | 2 months ago |
|
|
5e71f81c5a | 2 months ago |
|
|
40d32f5bfc | 2 months ago |
|
|
4559cc57b2 | 2 months ago |
|
|
ecc15d56f1 | 2 months ago |
|
|
a94c5667a8 | 2 months ago |
|
|
8829ad009d | 2 months ago |
|
|
95787ca9c3 | 2 months ago |
|
|
a442dd0292 | 2 months ago |
|
|
cf2a4e3ec4 | 2 months ago |
|
|
b2c19d18bb | 2 months ago |
|
|
8658d6b4e6 | 2 months ago |
|
|
8944cf3588 | 2 months ago |
|
|
c133b788f4 | 2 months ago |
|
|
b5a6b792e1 | 2 months ago |
|
|
982aa16449 | 2 months ago |
|
|
6b143a02e1 | 2 months ago |
|
|
6c223a3ead | 2 months ago |
|
|
3a7e272b04 | 2 months ago |
|
|
92b2e9666e | 2 months ago |
|
|
407d368892 | 2 months ago |
|
|
59ff1e1d43 | 2 months ago |
|
|
b2368a86da | 2 months ago |
|
|
5c98954067 | 2 months ago |
|
|
433e34c5f5 | 2 months ago |
|
|
6b292373c6 | 2 months ago |
|
|
a912b1c39e | 2 months ago |
|
|
d96dfa3166 | 2 months ago |
|
|
efbadcfbf2 | 2 months ago |
|
|
2a50650059 | 2 months ago |
|
|
1e52eb28d2 | 2 months ago |
|
|
e8004b6b52 | 2 months ago |
|
|
a942124549 | 2 months ago |
|
|
fb855241d0 | 2 months ago |
|
|
8419152f1c | 2 months ago |
|
|
56b28045c0 | 2 months ago |
|
|
45eed216ba | 2 months ago |
|
|
611c1949ce | 2 months ago |
|
|
d3ce270654 | 2 months ago |
|
|
d791fc5f1d | 2 months ago |
|
|
cac637c615 | 2 months ago |
|
|
c98b43988f | 2 months ago |
|
|
9d40f5095f | 2 months ago |
|
|
b58473a52f | 2 months ago |
|
|
dd3dcedb8b | 2 months ago |
|
|
c5a7ca6d35 | 2 months ago |
|
|
7353f9f7eb | 2 months ago |
|
|
1df35d092d | 2 months ago |
|
|
6902215b2f | 2 months ago |
|
|
5f5f89c68b | 2 months ago |
|
|
8759373324 | 2 months ago |
|
|
eca57ab75f | 2 months ago |
|
|
5905699742 | 2 months ago |
|
|
5919dff9a9 | 2 months ago |
|
|
8338b3ce21 | 2 months ago |
|
|
b7efaa282c | 2 months ago |
|
|
f781e5065d | 2 months ago |
|
|
8b2cb35b58 | 2 months ago |
|
|
3aeeff22a7 | 2 months ago |
|
|
73afe9db50 | 2 months ago |
|
|
18e22dacee | 2 months ago |
|
|
eb21b2ad92 | 2 months ago |
|
|
34259bd277 | 2 months ago |
|
|
1e2f8aba60 | 2 months ago |
|
|
4c3e98cad7 | 2 months ago |
|
|
2df07d9143 | 2 months ago |
|
|
f51ee5268e | 2 months ago |
|
|
9695f4c68c | 2 months ago |
|
|
0c98d4e336 | 2 months ago |
|
|
26ca956431 | 2 months ago |
|
|
99b4e96405 | 2 months ago |
|
|
a6cccf5951 | 2 months ago |
|
|
b2654590c1 | 2 months ago |
|
|
d92f3570d4 | 2 months ago |
|
|
ebf1860d45 | 2 months ago |
|
|
f8bf9cf171 | 2 months ago |
|
|
a4b2ee923e | 2 months ago |
|
|
44f681efa8 | 2 months ago |
|
|
8e201ace0f | 2 months ago |
|
|
8f1fa892de | 2 months ago |
|
|
3ba575213e | 2 months ago |
|
|
542e8fa10e | 2 months ago |
|
|
2d22f41ed6 | 2 months ago |
|
|
059dcf0f6f | 2 months ago |
|
|
85839e097e | 2 months ago |
|
|
961c90b361 | 2 months ago |
|
|
a8336ee468 | 2 months ago |
|
|
149bb28a1d | 2 months ago |
|
|
b82abf5547 | 2 months ago |
|
|
dad9fa6ad2 | 2 months ago |
|
|
64205cf8f2 | 2 months ago |
|
|
40248c1064 | 2 months ago |
|
|
308977473f | 2 months ago |
|
|
59f262b9aa | 2 months ago |
|
|
352ac4bdb8 | 2 months ago |
|
|
ea84d9519e | 2 months ago |
|
|
1e1f68d503 | 2 months ago |
|
|
0dae9397b0 | 2 months ago |
|
|
d510eeca36 | 2 months ago |
|
|
73b4c12d19 | 2 months ago |
|
|
83bf4b0f29 | 2 months ago |
|
|
d7262885ea | 2 months ago |
|
|
32ac875475 | 2 months ago |
|
|
2ef392ffa9 | 2 months ago |
|
|
4bb98a3de8 | 2 months ago |
|
|
de871e0d74 | 2 months ago |
|
|
9809b2cee2 | 2 months ago |
|
|
9689e386f0 | 2 months ago |
|
|
c27fab1cff | 2 months ago |
|
|
772fa83ae4 | 2 months ago |
|
|
74b89051a7 | 2 months ago |
|
|
5044441aba | 2 months ago |
|
|
c6e36159d5 | 2 months ago |
|
|
0c7c8a7022 | 2 months ago |
|
|
52294f7c3f | 2 months ago |
|
|
aac5024245 | 2 months ago |
|
|
848318b65a | 2 months ago |
|
|
d99dca3ff3 | 2 months ago |
|
|
1f4051a030 | 2 months ago |
|
|
bb9b244364 | 2 months ago |
|
|
4bfda1cc9a | 2 months ago |
|
|
f535424087 | 2 months ago |
|
|
a4947c0c24 | 2 months ago |
@ -1,7 +1,40 @@
|
|||||||
.venv/
|
# Local environment, credentials and machine metadata
|
||||||
data/
|
|
||||||
__pycache__/
|
|
||||||
.pytest_cache/
|
|
||||||
*.py[cod]
|
|
||||||
*.egg-info/
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
!.env.example
|
||||||
|
!.env.sample
|
||||||
|
.user.ini
|
||||||
|
master.key
|
||||||
|
id_rsa
|
||||||
|
id_ed25519
|
||||||
|
*.key
|
||||||
|
*.pem
|
||||||
|
*.p12
|
||||||
|
|
||||||
|
# Installed dependencies and runtime data
|
||||||
|
/web/vendor/
|
||||||
|
/web/node_modules/
|
||||||
|
/web/config/.config.php
|
||||||
|
/web/storage/backups/
|
||||||
|
/web/storage/logs/
|
||||||
|
/web/storage/cloud-runtime/
|
||||||
|
/web/storage/ticket-attachments/
|
||||||
|
/web/storage/framework/smarty/compile/*
|
||||||
|
/web/storage/framework/smarty/cache/*
|
||||||
|
/web/storage/framework/views/*
|
||||||
|
!/web/storage/framework/views/.gitignore
|
||||||
|
*.log
|
||||||
|
*.sqlite
|
||||||
|
*.sqlite3
|
||||||
|
|
||||||
|
# Local archives; source SQL under web/sql remains versioned
|
||||||
|
*.zip
|
||||||
|
*.tar
|
||||||
|
*.tar.gz
|
||||||
|
*.tgz
|
||||||
|
*.sql.gz
|
||||||
|
runtime/
|
||||||
|
web/config/config.php
|
||||||
|
engine/.venv/
|
||||||
|
engine/**/__pycache__/
|
||||||
|
|||||||
@ -0,0 +1,37 @@
|
|||||||
|
# Virt Cloud development rules
|
||||||
|
|
||||||
|
- This repository is the independent Virt Cloud project. Work only inside this
|
||||||
|
checkout unless the user explicitly authorizes changes to another project.
|
||||||
|
- When a task depends on historical decisions, test results, or project
|
||||||
|
context, and the knowledge vault is available, first read
|
||||||
|
`/Users/admin/Documents/www/codex-knowledge/AGENTS.md`, then
|
||||||
|
`Memory/INDEX.md` and `Memory/CURRENT.md`; follow only the linked notes
|
||||||
|
relevant to the task. If the vault is unavailable, say so explicitly and do
|
||||||
|
not guess the old project state.
|
||||||
|
- The Git remote is `https://g.luoli.live/root/virt.git`.
|
||||||
|
- All subsequent changes, commits and pushes for this project must use the
|
||||||
|
`venix` branch. Do not commit or push them to `main` or force-push.
|
||||||
|
- Before editing or committing, check the current branch and working tree.
|
||||||
|
Preserve unrelated user changes. If this checkout is not on `venix`, stop
|
||||||
|
before changing files and resolve the branch safely.
|
||||||
|
- Never commit real configuration, credentials, private keys, database dumps,
|
||||||
|
installed dependencies, runtime logs or caches. Keep source configuration
|
||||||
|
examples and source schema files versioned.
|
||||||
|
- The PHP application lives in `web/`; its eventual HTTP document root is
|
||||||
|
`web/public/`, not the repository root.
|
||||||
|
- Only the venix theme is retained. Ordinary users must not receive host
|
||||||
|
administration or retired node-management routes.
|
||||||
|
- PHP owns accounts, wallet purchases, orders, public-key ownership and public
|
||||||
|
HTTP authorization. The Python engine owns libvirt, host credentials and VM
|
||||||
|
operations. Keep the engine private and authenticate every internal request.
|
||||||
|
- Purchases provision one VM from the plan snapshot. Each purchase or renewal
|
||||||
|
creates an independent prepaid service period with its own traffic quota.
|
||||||
|
An exhausted quota disconnects VM networking until the next paid period;
|
||||||
|
final expiry disconnects networking without powering off the VM. An unpaid
|
||||||
|
renewal invoice enters a three-day grace period and then permanently removes
|
||||||
|
the VM definition and its panel-managed disks. Never replay an ambiguous
|
||||||
|
destructive operation or refund it without confirmed cleanup; reconcile its
|
||||||
|
operation identifier.
|
||||||
|
- Users share the original VM-panel styling; administrator pages retain venix.
|
||||||
|
- See `docs/PRUNING_REPORT.md` for retained/removed feature boundaries and
|
||||||
|
`docs/INTEGRATION_PLAN.md` for the planned Python engine integration.
|
||||||
@ -1,8 +0,0 @@
|
|||||||
# Third-party code
|
|
||||||
|
|
||||||
`static/vendor/novnc/` contains the `core/` and `vendor/` directories from
|
|
||||||
[noVNC v1.7.0](https://github.com/novnc/noVNC/releases/tag/v1.7.0), plus its
|
|
||||||
`LICENSE.txt`. The upstream source archive was downloaded from the noVNC GitHub
|
|
||||||
release tag without modifications. The bundled `vendor/pako/` dependency retains
|
|
||||||
its own license file.
|
|
||||||
|
|
||||||
@ -0,0 +1,106 @@
|
|||||||
|
{
|
||||||
|
"schema_version": 1,
|
||||||
|
"policy_version": 1,
|
||||||
|
"scope": "public_ipv4_interface",
|
||||||
|
"applies_to": "new_public_cloud_image_instances_only",
|
||||||
|
"migrate_existing": false,
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"id": "qotd",
|
||||||
|
"label": "QOTD",
|
||||||
|
"category": "permanent",
|
||||||
|
"protocols": ["tcp", "udp"],
|
||||||
|
"port_from": 17,
|
||||||
|
"port_to": 17,
|
||||||
|
"directions": ["ingress", "egress"],
|
||||||
|
"reason": "降低反射放大与滥用风险。"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "chargen",
|
||||||
|
"label": "Chargen",
|
||||||
|
"category": "permanent",
|
||||||
|
"protocols": ["tcp", "udp"],
|
||||||
|
"port_from": 19,
|
||||||
|
"port_to": 19,
|
||||||
|
"directions": ["ingress", "egress"],
|
||||||
|
"reason": "降低反射放大与滥用风险。"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ssdp",
|
||||||
|
"label": "SSDP",
|
||||||
|
"category": "permanent",
|
||||||
|
"protocols": ["tcp", "udp"],
|
||||||
|
"port_from": 1900,
|
||||||
|
"port_to": 1900,
|
||||||
|
"directions": ["ingress", "egress"],
|
||||||
|
"reason": "降低公网发现服务与反射放大滥用风险。"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "memcached",
|
||||||
|
"label": "Memcached UDP",
|
||||||
|
"category": "permanent",
|
||||||
|
"protocols": ["udp"],
|
||||||
|
"port_from": 11211,
|
||||||
|
"port_to": 11211,
|
||||||
|
"directions": ["ingress", "egress"],
|
||||||
|
"reason": "降低 Memcached UDP 反射放大风险。"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "brand-rex-53413",
|
||||||
|
"label": "Netis / Netcore 后门端口",
|
||||||
|
"category": "permanent",
|
||||||
|
"protocols": ["udp"],
|
||||||
|
"port_from": 53413,
|
||||||
|
"port_to": 53413,
|
||||||
|
"directions": ["ingress", "egress"],
|
||||||
|
"reason": "阻断已知路由器后门相关公网流量。"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "smtp-25",
|
||||||
|
"label": "SMTP 直投",
|
||||||
|
"category": "default",
|
||||||
|
"protocols": ["tcp"],
|
||||||
|
"port_from": 25,
|
||||||
|
"port_to": 25,
|
||||||
|
"directions": ["egress"],
|
||||||
|
"reason": "降低垃圾邮件滥用风险;例外申请流程尚未实现。"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "netbios",
|
||||||
|
"label": "NetBIOS",
|
||||||
|
"category": "default",
|
||||||
|
"protocols": ["tcp", "udp"],
|
||||||
|
"port_from": 137,
|
||||||
|
"port_to": 139,
|
||||||
|
"directions": ["ingress", "egress"],
|
||||||
|
"reason": "默认阻断 NetBIOS 服务暴露与公网访问。"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "smb",
|
||||||
|
"label": "SMB",
|
||||||
|
"category": "default",
|
||||||
|
"protocols": ["tcp", "udp"],
|
||||||
|
"port_from": 445,
|
||||||
|
"port_to": 445,
|
||||||
|
"directions": ["ingress", "egress"],
|
||||||
|
"reason": "默认阻断 SMB 文件共享服务的公网暴露与访问。"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "kms-1688",
|
||||||
|
"label": "KMS 服务端",
|
||||||
|
"category": "default",
|
||||||
|
"protocols": ["tcp"],
|
||||||
|
"port_from": 1688,
|
||||||
|
"port_to": 1688,
|
||||||
|
"directions": ["ingress"],
|
||||||
|
"reason": "默认阻断 KMS 服务端口直接暴露到公网。"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"explicitly_unrestricted": [
|
||||||
|
{
|
||||||
|
"protocol": "tcp",
|
||||||
|
"port": 587,
|
||||||
|
"reason": "SMTP 提交端口当前不受平台默认策略限制。"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@ -1,22 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Virsh Panel one-shot update from the pinned private Gitea repository
|
|
||||||
After=network-online.target
|
|
||||||
Wants=network-online.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
User=root
|
|
||||||
Group=root
|
|
||||||
WorkingDirectory=/home/virsh-panel
|
|
||||||
Environment=PANEL_DATA_DIR=/home/virsh-panel/data
|
|
||||||
Environment=PYTHONDONTWRITEBYTECODE=1
|
|
||||||
ExecStart=/home/virsh-panel/.venv/bin/python -m virsh_panel.update_worker
|
|
||||||
ExecStopPost=/home/virsh-panel/.venv/bin/python -m virsh_panel.update_worker --finalize-incomplete
|
|
||||||
TimeoutStartSec=30min
|
|
||||||
UMask=0077
|
|
||||||
LimitCORE=0
|
|
||||||
NoNewPrivileges=true
|
|
||||||
PrivateTmp=true
|
|
||||||
ProtectSystem=strict
|
|
||||||
ProtectHome=false
|
|
||||||
ReadWritePaths=/home/virsh-panel
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Virsh Panel (local HTTP upstream and remote libvirt)
|
|
||||||
After=network-online.target
|
|
||||||
Wants=network-online.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=exec
|
|
||||||
User=root
|
|
||||||
Group=root
|
|
||||||
WorkingDirectory=/home/virsh-panel
|
|
||||||
Environment=PANEL_DATA_DIR=/home/virsh-panel/data
|
|
||||||
Environment=PYTHONDONTWRITEBYTECODE=1
|
|
||||||
ExecStartPre=+/usr/bin/install -d -o root -g root -m 0700 /home/virsh-panel/data
|
|
||||||
ExecStart=/home/virsh-panel/.venv/bin/python -m uvicorn virsh_panel.app:create_app --factory --host 127.0.0.1 --port 8000 --workers 1 --proxy-headers --forwarded-allow-ips 127.0.0.1
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
UMask=0077
|
|
||||||
NoNewPrivileges=true
|
|
||||||
CapabilityBoundingSet=CAP_SETPCAP
|
|
||||||
PrivateTmp=true
|
|
||||||
ProtectSystem=strict
|
|
||||||
ProtectHome=false
|
|
||||||
ReadWritePaths=-/home/virsh-panel/data
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
@ -0,0 +1,27 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Virt Cloud private libvirt engine
|
||||||
|
After=network-online.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=exec
|
||||||
|
User=root
|
||||||
|
Group=root
|
||||||
|
WorkingDirectory=/home/virt-cloud/engine
|
||||||
|
Environment=CLOUD_ENGINE_CONFIG=/home/virt-cloud/runtime/engine.json
|
||||||
|
Environment=PYTHONDONTWRITEBYTECODE=1
|
||||||
|
ExecStart=/home/virt-cloud/engine/.venv/bin/python -m uvicorn virsh_panel.internal:create_engine --factory --host 127.0.0.1 --port 8000 --workers 1 --timeout-graceful-shutdown 10 --proxy-headers --forwarded-allow-ips 127.0.0.1 --no-access-log
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5
|
||||||
|
TimeoutStopSec=45s
|
||||||
|
KillMode=control-group
|
||||||
|
UMask=0077
|
||||||
|
NoNewPrivileges=true
|
||||||
|
PrivateTmp=true
|
||||||
|
ProtectSystem=strict
|
||||||
|
ProtectHome=false
|
||||||
|
ReadWritePaths=/home/virt-cloud/runtime
|
||||||
|
LimitCORE=0
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
@ -0,0 +1,24 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Virt Cloud service-period and traffic lifecycle worker
|
||||||
|
After=network-online.target virt-cloud-engine.service
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=apache
|
||||||
|
Group=apache
|
||||||
|
WorkingDirectory=/home/virt-cloud/web
|
||||||
|
ExecStart=/usr/bin/php /home/virt-cloud/web/xcat cloudLifecycle
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5
|
||||||
|
UMask=0077
|
||||||
|
NoNewPrivileges=true
|
||||||
|
PrivateTmp=true
|
||||||
|
ProtectHome=false
|
||||||
|
ProtectSystem=strict
|
||||||
|
ReadWritePaths=-/home/virt-cloud/runtime/php
|
||||||
|
ReadWritePaths=-/home/virt-cloud/web/storage
|
||||||
|
TimeoutStopSec=30
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
@ -0,0 +1,24 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Virt Cloud enforcement policy worker %i
|
||||||
|
After=network-online.target virt-cloud-engine.service
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=apache
|
||||||
|
Group=apache
|
||||||
|
WorkingDirectory=/home/virt-cloud/web
|
||||||
|
ExecStart=/usr/bin/php /home/virt-cloud/web/xcat cloudWorker --policy-only
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=3
|
||||||
|
UMask=0077
|
||||||
|
NoNewPrivileges=true
|
||||||
|
PrivateTmp=true
|
||||||
|
ProtectHome=false
|
||||||
|
ProtectSystem=strict
|
||||||
|
ReadWritePaths=-/home/virt-cloud/runtime/php
|
||||||
|
ReadWritePaths=-/home/virt-cloud/web/storage
|
||||||
|
TimeoutStopSec=30
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
@ -0,0 +1,23 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Virt Cloud privileged online update worker
|
||||||
|
After=network-online.target mariadb.service
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
User=root
|
||||||
|
Group=root
|
||||||
|
WorkingDirectory=/home/virt-cloud/engine
|
||||||
|
Environment=CLOUD_ENGINE_CONFIG=/home/virt-cloud/runtime/engine.json
|
||||||
|
Environment=PYTHONDONTWRITEBYTECODE=1
|
||||||
|
ExecStart=/home/virt-cloud/engine/.venv/bin/python -m virsh_panel.update_worker
|
||||||
|
ExecStopPost=/home/virt-cloud/engine/.venv/bin/python -m virsh_panel.update_worker --finalize-incomplete
|
||||||
|
TimeoutStartSec=45min
|
||||||
|
TimeoutStopSec=10min
|
||||||
|
UMask=0077
|
||||||
|
NoNewPrivileges=true
|
||||||
|
PrivateTmp=true
|
||||||
|
ProtectSystem=strict
|
||||||
|
ProtectHome=false
|
||||||
|
ReadWritePaths=/home/virt-cloud
|
||||||
|
LimitCORE=0
|
||||||
@ -0,0 +1,24 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Virt Cloud VPC control-plane worker
|
||||||
|
After=network-online.target virt-cloud-engine.service
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=apache
|
||||||
|
Group=apache
|
||||||
|
WorkingDirectory=/home/virt-cloud/web
|
||||||
|
ExecStart=/usr/bin/php /home/virt-cloud/web/xcat cloudVpcWorker
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5
|
||||||
|
UMask=0077
|
||||||
|
NoNewPrivileges=true
|
||||||
|
PrivateTmp=true
|
||||||
|
ProtectHome=false
|
||||||
|
ProtectSystem=strict
|
||||||
|
ReadWritePaths=-/home/virt-cloud/runtime/php
|
||||||
|
ReadWritePaths=-/home/virt-cloud/web/storage
|
||||||
|
TimeoutStopSec=30
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Virt Cloud purchased VM provisioning worker
|
||||||
|
After=network-online.target virt-cloud-engine.service
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
# AlmaLinux PHP-FPM normally runs as apache; use the same user as your PHP pool.
|
||||||
|
User=apache
|
||||||
|
Group=apache
|
||||||
|
WorkingDirectory=/home/virt-cloud/web
|
||||||
|
ExecStart=/usr/bin/php /home/virt-cloud/web/xcat cloudWorker
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5
|
||||||
|
UMask=0077
|
||||||
|
NoNewPrivileges=true
|
||||||
|
PrivateTmp=true
|
||||||
|
ProtectHome=false
|
||||||
|
ProtectSystem=strict
|
||||||
|
ReadWritePaths=-/home/virt-cloud/runtime/php
|
||||||
|
ReadWritePaths=-/home/virt-cloud/web/storage
|
||||||
|
TimeoutStopSec=30
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
.DS_Store
|
||||||
|
.trash/
|
||||||
|
.obsidian/cache/
|
||||||
|
.obsidian/workspace.json
|
||||||
|
.obsidian/workspaces.json
|
||||||
|
|
||||||
@ -0,0 +1,40 @@
|
|||||||
|
---
|
||||||
|
type: hub
|
||||||
|
status: active
|
||||||
|
created: 2026-09-29
|
||||||
|
updated: 2026-09-29
|
||||||
|
tags:
|
||||||
|
- knowledge-base
|
||||||
|
---
|
||||||
|
|
||||||
|
# 个人知识库
|
||||||
|
|
||||||
|
这是个人知识的入口页。知识以本地 Markdown 保存,由
|
||||||
|
[[Concepts/Obsidian|Obsidian]] 编辑和可视化,由
|
||||||
|
[[Concepts/Codex|Codex]] 检索、总结和维护。
|
||||||
|
|
||||||
|
## 继续工作
|
||||||
|
|
||||||
|
- [[Memory/CURRENT|当前状态]]
|
||||||
|
- [[Memory/INDEX|知识索引]]
|
||||||
|
- [[Memory/PROFILE|个人偏好]]
|
||||||
|
- [[Memory/DECISIONS|决策索引]]
|
||||||
|
|
||||||
|
## 当前项目
|
||||||
|
|
||||||
|
- [[Projects/个人知识库系统|个人知识库系统]]
|
||||||
|
|
||||||
|
## 核心概念
|
||||||
|
|
||||||
|
- [[Concepts/Obsidian|Obsidian]]
|
||||||
|
- [[Concepts/Codex|Codex]]
|
||||||
|
- [[Concepts/Codex集成|Codex 集成]]
|
||||||
|
- [[Concepts/原子笔记|原子笔记]]
|
||||||
|
- [[Concepts/内部链接|内部链接]]
|
||||||
|
- [[Concepts/知识图谱|知识图谱]]
|
||||||
|
|
||||||
|
## 快速入口
|
||||||
|
|
||||||
|
- [[01-Inbox|收件箱]]
|
||||||
|
- [[Canvas/知识库总览.canvas|知识库总览 Canvas]]
|
||||||
|
- [[README|使用说明]]
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
type: inbox
|
||||||
|
status: active
|
||||||
|
updated: 2026-09-29
|
||||||
|
tags:
|
||||||
|
- inbox
|
||||||
|
---
|
||||||
|
|
||||||
|
# 收件箱
|
||||||
|
|
||||||
|
临时想法先写在这里,整理时再拆成独立的
|
||||||
|
[[Concepts/原子笔记|原子笔记]],并补充有意义的内部链接。
|
||||||
|
|
||||||
|
## 待整理
|
||||||
|
|
||||||
|
- 暂无。
|
||||||
|
|
||||||
@ -0,0 +1,134 @@
|
|||||||
|
{
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"id": "home",
|
||||||
|
"type": "file",
|
||||||
|
"file": "00-Home.md",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"width": 360,
|
||||||
|
"height": 220
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "index",
|
||||||
|
"type": "file",
|
||||||
|
"file": "Memory/INDEX.md",
|
||||||
|
"x": -500,
|
||||||
|
"y": 0,
|
||||||
|
"width": 340,
|
||||||
|
"height": 220
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "current",
|
||||||
|
"type": "file",
|
||||||
|
"file": "Memory/CURRENT.md",
|
||||||
|
"x": -500,
|
||||||
|
"y": 300,
|
||||||
|
"width": 340,
|
||||||
|
"height": 260
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "project",
|
||||||
|
"type": "file",
|
||||||
|
"file": "Projects/个人知识库系统.md",
|
||||||
|
"x": 0,
|
||||||
|
"y": 300,
|
||||||
|
"width": 360,
|
||||||
|
"height": 260
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "codex",
|
||||||
|
"type": "file",
|
||||||
|
"file": "Concepts/Codex集成.md",
|
||||||
|
"x": 520,
|
||||||
|
"y": -120,
|
||||||
|
"width": 340,
|
||||||
|
"height": 240
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "obsidian",
|
||||||
|
"type": "file",
|
||||||
|
"file": "Concepts/Obsidian.md",
|
||||||
|
"x": 520,
|
||||||
|
"y": 180,
|
||||||
|
"width": 340,
|
||||||
|
"height": 240
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "graph",
|
||||||
|
"type": "file",
|
||||||
|
"file": "Concepts/知识图谱.md",
|
||||||
|
"x": 520,
|
||||||
|
"y": 480,
|
||||||
|
"width": 340,
|
||||||
|
"height": 240
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "decision",
|
||||||
|
"type": "file",
|
||||||
|
"file": "Decisions/2026-09-29-采用本地Markdown与双向链接.md",
|
||||||
|
"x": 0,
|
||||||
|
"y": 640,
|
||||||
|
"width": 360,
|
||||||
|
"height": 240
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"edges": [
|
||||||
|
{
|
||||||
|
"id": "e1",
|
||||||
|
"fromNode": "home",
|
||||||
|
"fromSide": "left",
|
||||||
|
"toNode": "index",
|
||||||
|
"toSide": "right",
|
||||||
|
"label": "导航"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "e2",
|
||||||
|
"fromNode": "index",
|
||||||
|
"fromSide": "bottom",
|
||||||
|
"toNode": "current",
|
||||||
|
"toSide": "top",
|
||||||
|
"label": "恢复状态"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "e3",
|
||||||
|
"fromNode": "home",
|
||||||
|
"fromSide": "bottom",
|
||||||
|
"toNode": "project",
|
||||||
|
"toSide": "top",
|
||||||
|
"label": "当前项目"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "e4",
|
||||||
|
"fromNode": "project",
|
||||||
|
"fromSide": "right",
|
||||||
|
"toNode": "codex",
|
||||||
|
"toSide": "left",
|
||||||
|
"label": "调用"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "e5",
|
||||||
|
"fromNode": "project",
|
||||||
|
"fromSide": "right",
|
||||||
|
"toNode": "obsidian",
|
||||||
|
"toSide": "left",
|
||||||
|
"label": "管理"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "e6",
|
||||||
|
"fromNode": "obsidian",
|
||||||
|
"fromSide": "bottom",
|
||||||
|
"toNode": "graph",
|
||||||
|
"toSide": "top",
|
||||||
|
"label": "可视化"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "e7",
|
||||||
|
"fromNode": "project",
|
||||||
|
"fromSide": "bottom",
|
||||||
|
"toNode": "decision",
|
||||||
|
"toSide": "top",
|
||||||
|
"label": "依据"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@ -0,0 +1,34 @@
|
|||||||
|
---
|
||||||
|
type: decision
|
||||||
|
status: accepted
|
||||||
|
date: 2026-09-29
|
||||||
|
updated: 2026-09-29
|
||||||
|
tags:
|
||||||
|
- decision/virt-cloud
|
||||||
|
- billing
|
||||||
|
---
|
||||||
|
|
||||||
|
# Virt Cloud 统一账单
|
||||||
|
|
||||||
|
## 背景
|
||||||
|
|
||||||
|
旧 `bought` 购买记录已经废弃且确认无数据,继续保留会与云账单形成两个事实源。
|
||||||
|
|
||||||
|
## 决定
|
||||||
|
|
||||||
|
- `cloud_invoices` 是账单唯一事实源,不再读写或恢复 `bought`。
|
||||||
|
- 管理后台通过一个账单系统分别展示账单、开通任务和支付尝试,不把财务状态与履约状态合并成一个状态。
|
||||||
|
- 旧表清理必须先验证为空;存在数据时停止升级,不做静默丢弃。
|
||||||
|
- 支付尝试保留为独立审计流水,不能替代账单最终支付渠道。
|
||||||
|
|
||||||
|
## 影响
|
||||||
|
|
||||||
|
- 新报表、筛选和运营页面都应基于云账单表及其关联表。
|
||||||
|
- 不再为旧购买记录维护兼容路由、模型、模板或双写逻辑。
|
||||||
|
- 后续扩展退款、续费和对账时,继续保持“财务、履约、支付尝试”三类状态边界。
|
||||||
|
|
||||||
|
## 相关
|
||||||
|
|
||||||
|
- [[Projects/Virt Cloud|Virt Cloud]]
|
||||||
|
- [[Memory/DECISIONS|决策索引]]
|
||||||
|
- [[Concepts/Codex集成|Codex 集成]]
|
||||||
@ -0,0 +1,34 @@
|
|||||||
|
---
|
||||||
|
type: decision
|
||||||
|
status: accepted
|
||||||
|
date: 2026-09-29
|
||||||
|
updated: 2026-09-29
|
||||||
|
tags:
|
||||||
|
- decision
|
||||||
|
---
|
||||||
|
|
||||||
|
# 采用本地 Markdown 与双向链接
|
||||||
|
|
||||||
|
## 背景
|
||||||
|
|
||||||
|
需要让个人知识长期可迁移,同时能被 Obsidian 和 Codex 使用。
|
||||||
|
|
||||||
|
## 决定
|
||||||
|
|
||||||
|
以本地 Markdown 为事实源,用 `[[内部链接]]` 表达关系;
|
||||||
|
[[Concepts/Obsidian|Obsidian]] 负责编辑和可视化,
|
||||||
|
[[Concepts/Codex|Codex]] 负责检索、总结和维护。
|
||||||
|
|
||||||
|
## 理由
|
||||||
|
|
||||||
|
- 不依赖专有数据库。
|
||||||
|
- Codex 可直接读取。
|
||||||
|
- Git 可以追踪和恢复改动。
|
||||||
|
- [[Concepts/知识图谱|知识图谱]] 可由链接自动生成。
|
||||||
|
|
||||||
|
## 影响
|
||||||
|
|
||||||
|
- Canvas 只作为人工整理的视图,不作为唯一事实源。
|
||||||
|
- 重要知识需要主动拆成 [[Concepts/原子笔记|原子笔记]]。
|
||||||
|
- 新 Codex 对话通过 [[Memory/CURRENT|当前状态]] 恢复,而不是读取聊天全文。
|
||||||
|
|
||||||
@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
type: decision
|
||||||
|
status: accepted
|
||||||
|
date: 2026-09-30
|
||||||
|
updated: 2026-09-30
|
||||||
|
tags:
|
||||||
|
- decision/virt-cloud
|
||||||
|
- monitoring
|
||||||
|
---
|
||||||
|
|
||||||
|
# Virt Cloud 监控独立页面
|
||||||
|
|
||||||
|
## 背景
|
||||||
|
|
||||||
|
讨论过在管理员虚拟机管理页增加实时资源与连接统计,用户目前不需要实现。
|
||||||
|
|
||||||
|
## 决定与理由
|
||||||
|
|
||||||
|
- 暂不在虚拟机管理页增加任何监控功能或按钮,保持该页现有职责。
|
||||||
|
- 后续如需虚拟机指标与网络恶意使用监测,另建独立的“虚拟机指标”页面,避免管理页继续扩张。
|
||||||
|
|
||||||
|
## 影响
|
||||||
|
|
||||||
|
- 这是页面边界决定,不是立即开发授权。
|
||||||
|
- 采集方式、告警和处置规则尚未确定;不可据此自动安装 Agent、改防火墙或封禁实例。
|
||||||
|
|
||||||
|
## 相关
|
||||||
|
|
||||||
|
- [[Projects/Virt Cloud|Virt Cloud]]
|
||||||
|
- [[Memory/CURRENT|当前状态]]
|
||||||
|
- [[Memory/DECISIONS|决策索引]]
|
||||||
@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
type: index
|
||||||
|
status: active
|
||||||
|
updated: 2026-10-09
|
||||||
|
tags:
|
||||||
|
- memory/decisions
|
||||||
|
---
|
||||||
|
|
||||||
|
# 决策索引
|
||||||
|
|
||||||
|
- [[Decisions/2026-10-09-Virt Cloud VPC自动子网与地区Fabric向导|Virt Cloud VPC 自动子网与地区 Fabric 向导]]
|
||||||
|
- [[Decisions/2026-10-09-Virt Cloud Fabric underlay与firewalld所有权边界|Virt Cloud Fabric underlay 与 firewalld 所有权边界]]
|
||||||
|
- [[Decisions/2026-10-07-Virt Cloud账户实例数量上限移除|Virt Cloud 账户实例数量上限移除]]
|
||||||
|
- [[Decisions/2026-10-07-Virt Cloud部署页SQL回归修复|Virt Cloud 部署页 SQL 回归修复]]
|
||||||
|
- [[Decisions/2026-10-07-Virt Cloud面板资源账本取代宿主机盘点|Virt Cloud 面板资源账本取代宿主机盘点]]
|
||||||
|
- [[Decisions/2026-10-08-Virt Cloud VPC与Fabric静态实现及验收边界|Virt Cloud VPC 与 Fabric 静态实现及验收边界]]
|
||||||
|
- [[Decisions/2026-09-29-采用本地Markdown与双向链接|采用本地 Markdown 与双向链接]]
|
||||||
|
- [[Decisions/2026-09-29-Virt Cloud统一账单|Virt Cloud 统一账单]]
|
||||||
|
- [[Decisions/2026-09-30-Virt Cloud监控独立页面|Virt Cloud 监控独立页面]]
|
||||||
|
- [[Decisions/2026-10-01-Virt Cloud资源池与线路销售方案|Virt Cloud 资源池与线路销售方案]]
|
||||||
|
- [[Decisions/2026-10-01-Virt Cloud跨宿主机L3私网|Virt Cloud 跨宿主机 L3 私网]]
|
||||||
|
- [[Decisions/2026-10-02-Virt Cloud管理员更换公网IP第一阶段|Virt Cloud 管理员更换公网 IP 第一阶段]]
|
||||||
|
- [[Decisions/2026-10-03-Virt Cloud单宿主机多公网CIDR|Virt Cloud 单宿主机多公网 CIDR]]
|
||||||
|
- [[Decisions/2026-10-05-Virt Cloud本地在线快照|Virt Cloud 本地在线快照]]
|
||||||
|
- [[Decisions/2026-10-05-Virt Cloud实例防火墙与换IP一致性|Virt Cloud 实例防火墙与换 IP 一致性]]
|
||||||
|
- [[Decisions/2026-10-06-Virt Cloud平台默认与测试端口策略|Virt Cloud 平台默认与测试端口策略]]
|
||||||
|
|
||||||
|
## 记录规则
|
||||||
|
|
||||||
|
每项长期决定独立成文,至少记录日期、状态、背景、决定、理由和影响。
|
||||||
@ -0,0 +1,50 @@
|
|||||||
|
---
|
||||||
|
type: index
|
||||||
|
status: active
|
||||||
|
updated: 2026-10-12
|
||||||
|
tags:
|
||||||
|
- memory/index
|
||||||
|
---
|
||||||
|
|
||||||
|
# 知识索引
|
||||||
|
|
||||||
|
Codex 从这里判断该读取哪些笔记,而不是扫描整个 Vault。
|
||||||
|
|
||||||
|
## 状态与偏好
|
||||||
|
|
||||||
|
- [[Memory/CURRENT|当前状态]]:进行中的工作与明确下一步。
|
||||||
|
- [[Memory/PROFILE|个人偏好]]:会影响未来协作的稳定偏好。
|
||||||
|
- [[Memory/DECISIONS|决策索引]]:长期有效决定的入口。
|
||||||
|
|
||||||
|
## 项目
|
||||||
|
|
||||||
|
- [[Projects/个人知识库系统|个人知识库系统]]
|
||||||
|
- [[Projects/Virt Cloud|Virt Cloud]]
|
||||||
|
|
||||||
|
## 方法
|
||||||
|
|
||||||
|
- [[Concepts/Virt Cloud VPC永久邻居与重复协调|VPC 永久邻居与健康协调]]
|
||||||
|
|
||||||
|
- [[Concepts/原子笔记|原子笔记]]
|
||||||
|
- [[Concepts/内部链接|内部链接]]
|
||||||
|
- [[Concepts/知识图谱|知识图谱]]
|
||||||
|
- [[Concepts/Codex集成|Codex 集成]]
|
||||||
|
- [[Concepts/Virt Cloud WireGuard Fabric与VPC L3私网|WireGuard Fabric 与 VPC L3 私网]]
|
||||||
|
|
||||||
|
## 工具
|
||||||
|
|
||||||
|
- [[Concepts/Obsidian|Obsidian]]
|
||||||
|
- [[Concepts/Codex|Codex]]
|
||||||
|
|
||||||
|
## 最近交接
|
||||||
|
|
||||||
|
- [[Sessions/2026-10-12-Virt Cloud VPC邻居持久化与双宿主互通|VPC 邻居持久化、双宿主实测与部署边界]]
|
||||||
|
|
||||||
|
- [[Sessions/2026-10-09-Virt Cloud Fabric公网优先与firewalld交付|Virt Cloud Fabric 公网优先与 firewalld 交付]]
|
||||||
|
- [[Sessions/2026-10-08-Virt Cloud VPC用户控制台与数据面交付|Virt Cloud VPC 用户控制台与数据面交付]]
|
||||||
|
- [[Sessions/2026-10-07-Virt Cloud实例部署、资源账本与账户上限清理|Virt Cloud 实例部署、资源账本与账户上限清理]]
|
||||||
|
- [[Sessions/2026-10-06-Virt Cloud快照删除修复与libvirt排错|Virt Cloud 快照删除修复与 libvirt 排错]]
|
||||||
|
- [[Sessions/2026-10-06-Virt Cloud平台端口策略与测试验证|Virt Cloud 平台端口策略与测试验证]]
|
||||||
|
- [[Sessions/2026-10-05-Virt Cloud盘点快照与防火墙|Virt Cloud 盘点、在线快照与实例防火墙]]
|
||||||
|
- [[Sessions/2026-09-29-知识库初始化|知识库初始化]]
|
||||||
|
- [[Sessions/2026-10-01-Virt Cloud资源调度线路备份与私网讨论|Virt Cloud 资源调度线路备份与私网讨论]]
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
type: profile
|
||||||
|
status: active
|
||||||
|
updated: 2026-09-29
|
||||||
|
tags:
|
||||||
|
- memory/profile
|
||||||
|
---
|
||||||
|
|
||||||
|
# 个人偏好
|
||||||
|
|
||||||
|
只记录会影响未来协作的稳定偏好,不记录秘密或敏感信息。
|
||||||
|
|
||||||
|
## 工作方式
|
||||||
|
|
||||||
|
- 希望新 Codex 对话可以快速恢复之前的工作背景。
|
||||||
|
- 偏好本地、可迁移、可被普通文本工具读取的知识库。
|
||||||
|
- 希望知识之间可以通过动态图谱观察关联。
|
||||||
|
- 精确项目状态应写入文件,而不是只依赖自动记忆。
|
||||||
|
|
||||||
|
## 相关
|
||||||
|
|
||||||
|
- [[Concepts/Codex集成|Codex 集成]]
|
||||||
|
- [[Concepts/Obsidian|Obsidian]]
|
||||||
|
- [[Projects/个人知识库系统|个人知识库系统]]
|
||||||
|
|
||||||
@ -0,0 +1,36 @@
|
|||||||
|
---
|
||||||
|
type: project
|
||||||
|
status: active
|
||||||
|
created: 2026-09-29
|
||||||
|
updated: 2026-09-29
|
||||||
|
tags:
|
||||||
|
- project
|
||||||
|
---
|
||||||
|
|
||||||
|
# 个人知识库系统
|
||||||
|
|
||||||
|
## 目标
|
||||||
|
|
||||||
|
让知识由 [[Concepts/Obsidian|Obsidian]] 管理和可视化,并让
|
||||||
|
[[Concepts/Codex|Codex]] 在新对话中恢复必要上下文。
|
||||||
|
|
||||||
|
## 组成
|
||||||
|
|
||||||
|
- [[Concepts/原子笔记|原子笔记]]:控制每个图谱节点的粒度。
|
||||||
|
- [[Concepts/知识图谱|知识图谱]]:由 Markdown 内部链接自动生成。
|
||||||
|
- [[Concepts/Codex集成|Codex 集成]]:通过本地文件和 `AGENTS.md` 路由。
|
||||||
|
- [[Memory/CURRENT|当前状态]]:承担跨对话交接。
|
||||||
|
- [[Memory/DECISIONS|决策索引]]:保存长期决定。
|
||||||
|
|
||||||
|
## 成功标准
|
||||||
|
|
||||||
|
- 新 Codex 对话能概括当前目标、进展和下一步。
|
||||||
|
- Obsidian Graph 能显示项目、概念、状态和决定之间的连线。
|
||||||
|
- 知识仍可被普通文本工具读取,不依赖封闭平台。
|
||||||
|
- 重要变更可以通过 Git 查看和恢复。
|
||||||
|
|
||||||
|
## 当前阶段
|
||||||
|
|
||||||
|
参见 [[Memory/CURRENT|当前状态]] 和
|
||||||
|
[[Sessions/2026-09-29-知识库初始化|初始化交接]]。
|
||||||
|
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
type: decision
|
||||||
|
status: proposed
|
||||||
|
date: "{{date:YYYY-MM-DD}}"
|
||||||
|
updated: "{{date:YYYY-MM-DD}}"
|
||||||
|
tags:
|
||||||
|
- decision
|
||||||
|
---
|
||||||
|
|
||||||
|
# {{title}}
|
||||||
|
|
||||||
|
## 背景
|
||||||
|
|
||||||
|
## 决定
|
||||||
|
|
||||||
|
## 理由
|
||||||
|
|
||||||
|
## 备选方案
|
||||||
|
|
||||||
|
## 影响
|
||||||
|
|
||||||
|
## 关联
|
||||||
|
|
||||||
|
-
|
||||||
|
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
type: concept
|
||||||
|
status: seed
|
||||||
|
created: "{{date:YYYY-MM-DD}}"
|
||||||
|
updated: "{{date:YYYY-MM-DD}}"
|
||||||
|
aliases: []
|
||||||
|
tags:
|
||||||
|
- concept
|
||||||
|
---
|
||||||
|
|
||||||
|
# {{title}}
|
||||||
|
|
||||||
|
一句话说明:
|
||||||
|
|
||||||
|
## 要点
|
||||||
|
|
||||||
|
-
|
||||||
|
|
||||||
|
## 关联
|
||||||
|
|
||||||
|
- 上位概念:
|
||||||
|
- 相邻概念:
|
||||||
|
- 应用于:
|
||||||
|
|
||||||
|
## 来源或验证
|
||||||
|
|
||||||
|
-
|
||||||
|
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
type: project
|
||||||
|
status: active
|
||||||
|
created: "{{date:YYYY-MM-DD}}"
|
||||||
|
updated: "{{date:YYYY-MM-DD}}"
|
||||||
|
tags:
|
||||||
|
- project
|
||||||
|
---
|
||||||
|
|
||||||
|
# {{title}}
|
||||||
|
|
||||||
|
## 目标
|
||||||
|
|
||||||
|
## 非目标
|
||||||
|
|
||||||
|
## 当前状态
|
||||||
|
|
||||||
|
## 下一步
|
||||||
|
|
||||||
|
- [ ]
|
||||||
|
|
||||||
|
## 决策与概念
|
||||||
|
|
||||||
|
-
|
||||||
|
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
.venv/
|
||||||
|
data/
|
||||||
|
__pycache__/
|
||||||
|
*.py[cod]
|
||||||
|
.pytest_cache/
|
||||||
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |