Gorig-OM is the operations management panel for the Gorig project, providing an intuitive web interface to manage and monitor your Gorig services.
- Intuitive web management interface
- Service status monitoring
- Configuration management
- Real-time log viewing
- Built-in stats module (API latency, error signatures, goroutine trends, memory big-object/leak tracking)
- Secure access control
First, install the package:
go get github.com/jom-io/gorig-om@latestThen, add the following configuration to your Gorig project:
om:
key: "your-access-key-here" # Set access passwordYou can enable the operations management panel in one of two ways:
- Import the package in your main.go:
import _ "github.com/jom-io/gorig-om/src"- Or call the setup function in your code:
import "github.com/jom-io/gorig-om/src"
func main() {
om.Setup()
// ... your other code
}After configuration, you can access the operations panel at:
https://jom-io.github.io/gorig-om
Use the om.key you set in the configuration for access authentication.
- Please ensure you set a sufficiently complex access password
- It is recommended to use HTTPS in production environments
- Regularly change the access password to improve security
- Gorig - Main project repository
The admin panel UI is built using Slash Admin.
This project is licensed under the MIT License - see the LICENSE file for details
Gorig-OM 是 Gorig 项目的运维管理面板,提供了一个直观的 Web 界面来管理和监控您的 Gorig 服务。
- 直观的 Web 管理界面
- 服务状态监控
- 配置管理
- 实时日志查看
- 内置统计模块(API 延迟、错误签名、协程趋势、内存大对象/泄漏跟踪)
- 安全访问控制
首先,安装包:
go get github.com/jom-io/gorig-om@latest然后,在您的 Gorig 项目中添加以下配置:
om:
key: "your-access-key-here" # 设置访问密码您可以通过以下两种方式之一启用运维管理面板:
- 在 main.go 中导入包:
import _ "github.com/jom-io/gorig-om/src"- 或在代码中调用设置函数:
import "github.com/jom-io/gorig-om/src"
func main() {
om.Setup()
// ... 其他代码
}配置完成后,您可以通过以下地址访问运维面板:
https://jom-io.github.io/gorig-om
使用您在配置中设置的 om.key 进行访问认证。
- 请确保设置一个足够复杂的访问密码
- 建议在生产环境中使用 HTTPS
- 定期更换访问密码以提高安全性
- Gorig - 主项目仓库
管理面板 UI 基于 Slash Admin 实现。
本项目采用 MIT 许可证 - 详见 LICENSE 文件