{"id":13526753,"url":"https://github.com/ssbeatty/oms","last_synced_at":"2026-01-17T22:22:30.553Z","repository":{"id":41160764,"uuid":"288923358","full_name":"ssbeatty/oms","owner":"ssbeatty","description":"go 运维平台，实现了隧道，命令分发，文件上传，webSSH","archived":false,"fork":false,"pushed_at":"2024-02-21T12:55:26.000Z","size":52251,"stargazers_count":191,"open_issues_count":2,"forks_count":57,"subscribers_count":4,"default_branch":"dev","last_synced_at":"2025-04-01T08:36:40.675Z","etag":null,"topics":["devops","devops-tools","go","novnc","novnc-websockify","sftp","shell","ssh","tunnel","vnc"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ssbeatty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-20T06:18:50.000Z","updated_at":"2025-02-17T06:16:32.000Z","dependencies_parsed_at":"2024-11-02T11:41:54.441Z","dependency_job_id":null,"html_url":"https://github.com/ssbeatty/oms","commit_stats":null,"previous_names":[],"tags_count":64,"template":false,"template_full_name":null,"purl":"pkg:github/ssbeatty/oms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbeatty%2Foms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbeatty%2Foms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbeatty%2Foms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbeatty%2Foms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssbeatty","download_url":"https://codeload.github.com/ssbeatty/oms/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbeatty%2Foms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28520162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T22:11:28.393Z","status":"ssl_error","status_checked_at":"2026-01-17T22:11:27.841Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devops","devops-tools","go","novnc","novnc-websockify","sftp","shell","ssh","tunnel","vnc"],"created_at":"2024-08-01T06:01:34.243Z","updated_at":"2026-01-17T22:22:30.546Z","avatar_url":"https://github.com/ssbeatty.png","language":"Go","readme":"\u003ch1 align=\"center\"\u003e项目简介\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n本项目使用gin、gorm和ssh、sftp开发。旨在编写一个轻量，易用，多平台的运维项目。\n现阶段目的是做一个阉割版的xshell并简单的实现ansible或者saltstack的部分功能。\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/ssbeatty/oms/blob/dev/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/ssbeatty/oms\" alt=\"license\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ssbeatty/oms/releases\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/ssbeatty/oms?color=blueviolet\u0026include_prereleases\" alt=\"release\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ssbeatty/oms/actions\"\u003e\n    \u003cimg src=\"https://github.com/ssbeatty/oms/workflows/BUILD Linux/badge.svg\" alt=\"action\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://goreportcard.com/report/github.com/ssbeatty/oms\"\u003e\n  \u003cimg src=\"https://goreportcard.com/badge/github.com/ssbeatty/oms\" alt=\"GoReportCard\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/lixin59/omsUI\"\u003eUI\u003c/a\u003e\n  ·\n  \u003ca href=\"https://wang918562230.gitbook.io/ssbeattyoms-wen-dang/\"\u003e文档\u003c/a\u003e\n  ·\n  \u003ca href=\"https://github.com/ssbeatty/oms/releases\"\u003e下载\u003c/a\u003e\n  ·\n  \u003ca href=\"https://wang918562230.gitbook.io/ssbeattyoms-wen-dang/\"\u003e开始使用\u003c/a\u003e\n\u003c/p\u003e\n\n### API文档\n\n运行后访问 http://127.0.0.1:9090/swagger/index.html\n\n[swagger](./docs/swagger.json)\n\n### 使用说明\n1. 安装编译\n```shell script\n# clone\ngit clone --recurse-submodules https://github.com/ssbeatty/oms.git\n\n# build frontend\ncd web/omsUI\nyarn \u0026\u0026 yarn build\n\n# 打包 oms\n# linux\ngo build -o oms cmd/omsd/main.go\n# win\ngo build -o oms.exe cmd/omsd/main.go\n```\n\n2. 启动 创建config.yaml在可执行文件同级 运行即可\n```shell script\n# configs/config.yaml.example\n# 支持mysql postgres sqlite(默认, 仅调试)\napp:\n  name: oms\n  addr: 127.0.0.1\n  port: 9090\n  mode: dev\n  run_start: false # 是否在运行时打开浏览器 windows\n  temp_date: 336h  # 执行日志的保存时间 默认14天\n\ndb:\n  driver: postgres\n  user: root\n  password: 123456\n  dsn: 127.0.0.1:3306\n  db_name: oms\n```\n\n3. 注册为服务\n```shell script\n# 支持windows/linux/macos\n\noms --action install --config config.yaml\n\n# 取消注册\noms --action uninstall \n```\n\n\u003e 注意注册为服务程序的运行目录会改变比如windows为C:/System32, 因此要修改配置中data_path为绝对路径。\n\u003e logger为相对路径时放在data_path下, 为绝对路径时在指定的路径。\n\n### 目前已经实现的功能\n1. web界面[omsUI](https://github.com/lixin59/omsUI/blob/master/README.md)\n2. 隧道, 类似`ssh`的`-L`和`-R`\n3. cron任务和exec任务的管理\n4. ssh命令批量执行\n5. 文件批量的上传 流式传输支持大文件\n6. 基于`sftp`文件浏览器\n7. 基于novnc的vnc viewer\n8. 类似playbook的编排任务\n\n\n### 环境变量\n```shell\nENV_SSH_DIAL_TIMEOUT = 30  # ssh连接超时时间 单位秒\nENV_SSH_RW_TIMEOUT = 20    # ssh读写超时时间 单位秒\nENV_SSH_CMD_TIMEOUT = 120  # 执行命令时命令最长的超时时间 单位秒\n```\n\n\n### deploy\n\u003e docker-compose.yaml\n```yaml\nversion: '2.3'\n\nservices:\n  oms:\n    image: ghcr.io/ssbeatty/oms/oms:v0.6.8\n    restart: always\n    extra_hosts:\n      - \"host.docker.internal:host-gateway\"\n    ports:\n      - \"9090:9090\"\n    volumes:\n      - ./data:/opt/oms/data\n      - ./config:/etc/oms\n```\n\n### 如何开发\n1. 修改依赖之后执行\n```shell\ngo mod vendor\n```\n2. 修改了swagger文档后执行\n```shell\n# docs/gen.go\ncd docs\n\nswag init -d ../internal/web/controllers --parseDependency -g api_v1.go -o ./\nswag init -d ../internal/web/controllers --parseDependency -g api_tool.go -o ./\n```","funding_links":[],"categories":["Go","运维管理平台"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssbeatty%2Foms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssbeatty%2Foms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssbeatty%2Foms/lists"}