690514:2019 204-rfa-approval-refactor #01
CI / CD Pipeline / build (push) Successful in 6m1s
CI / CD Pipeline / deploy (push) Failing after 6m42s

This commit is contained in:
2026-05-14 20:19:21 +07:00
parent 07cc6d47b1
commit 0240d80da5
183 changed files with 20050 additions and 1017 deletions
@@ -0,0 +1,26 @@
// File: docs/ai-knowledge-base/prompts/infra/network-troubleshoot.md
# Network Troubleshooting Prompt (DMS Infra)
## ⭐ Role: Network Engineer (Omada Specialist)
## 🎯 Context
การแก้ไขปัญหาเครือข่ายภายในโครงการที่ใช้ TP-Link Omada สำหรับการจัดการ VLAN และ Switch
## 🔍 Diagnosis Steps
1. **Physical Link**: ตรวจสอบสถานะไฟที่ Port Switch และสายแลน
2. **VLAN Tagging**: ตรวจสอบว่า Port ถูก Config เป็น Access หรือ Trunk และ VLAN ID ถูกต้องหรือไม่
3. **DHCP Status**: ตรวจสอบว่า Client ได้รับ IP Address หรือไม่
4. **Gateway Ping**: ทดสอบการเชื่อมต่อกับ Default Gateway และ Internet
## 🚀 Prompt Template
```
[NETWORK DEBUG]
Device: <e.g. Switch-Floor-2, Omada Controller>
Symptom: <e.g. ไม่สามารถเชื่อมต่อ Server ได้, VLAN 20 ใช้งานไม่ได้>
Recent Changes: <การแก้ไขล่าสุดก่อนเกิดปัญหา>
Request: ช่วยวิเคราะห์สาเหตุและเสนอขั้นตอนการแก้ไข (Step-by-step recovery)
```
---
// Change Log:
// - 2026-05-14: Initial network troubleshoot prompt
@@ -0,0 +1,27 @@
// File: docs/ai-knowledge-base/prompts/infra/server-debug.md
# Server & Docker Debugging Prompt
## ⭐ Role: Systems Administrator / DevOps Engineer
## 🎯 Context
การแก้ไขปัญหาที่เกี่ยวข้องกับ Linux Server, Docker Containers และการเชื่อมต่อฐานข้อมูล
## 🔍 Commands for Debugging
- `docker ps`: ตรวจสอบสถานะ Container
- `docker logs -f <container_name>`: ดู Log การทำงานแบบ Real-time
- `df -h`: ตรวจสอบพื้นที่ว่างใน Disk
- `free -m`: ตรวจสอบการใช้งาน RAM
- `netstat -tulpn`: ตรวจสอบ Port ที่เปิดใช้งานอยู่
## 🚀 Prompt Template
```
[SERVER DEBUG]
Service: <e.g. DMS-Backend, MariaDB>
Problem: <e.g. Container Restart Loop, Connection Timeout>
Error Output: <Paste log จาก docker logs>
Request: วิเคราะห์หาสาเหตุ (e.g. Out of Memory, Disk Full, Env Config Error) และวิธีแก้ไข
```
---
// Change Log:
// - 2026-05-14: Initial server debug prompt
@@ -0,0 +1,26 @@
// File: docs/ai-knowledge-base/prompts/infra/vlan-change.md
# VLAN Configuration Change Prompt
## ⭐ Role: Network Architect
## 🎯 Context
ขั้นตอนการเพิ่ม หรือแก้ไข VLAN ภายในโครงการเพื่อความปลอดภัยและการแยกแยะการใช้งาน (Segmentation)
## 🏗️ Configuration Rules
1. **Naming Standard**: ใช้ชื่อที่สื่อความหมาย (e.g. VLAN-10-SERVER, VLAN-20-CCTV)
2. **Subnet Planning**: กำหนด Range IP ที่ไม่ซ้ำซ้อนกับ VLAN เดิม
3. **ACL (Access Control List)**: กำหนดสิทธิ์การข้าม VLAN (Inter-VLAN Routing) ตามความจำเป็น
4. **Port Profile**: สร้าง Profile ใน Omada เพื่อความง่ายในการนำไปใช้กับ Switch หลายตัว
## 🚀 Prompt Template
```
[VLAN CHANGE]
Purpose: <e.g. แยกเครือข่ายสำหรับทีม Sub-contractor>
VLAN ID: <e.g. 30>
IP Range: <e.g. 192.168.30.0/24>
Request: ออกแบบขั้นตอนการ Config ใน Omada Controller และ Switch Port
```
---
// Change Log:
// - 2026-05-14: Initial VLAN change prompt