{"id":13638006,"url":"https://github.com/getway/diting","last_synced_at":"2026-04-11T11:17:36.531Z","repository":{"id":42188006,"uuid":"129396835","full_name":"getway/diting","owner":"getway","description":"运维面板，运维导航，统一账号平台，运维统一平台，LDAP管理平台","archived":false,"fork":false,"pushed_at":"2019-02-14T10:04:00.000Z","size":7022,"stargazers_count":171,"open_issues_count":3,"forks_count":67,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-19T19:36:10.466Z","etag":null,"topics":["authentication","dashboard","jumpserver","ldap","ldap-manager"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getway.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}},"created_at":"2018-04-13T12:06:48.000Z","updated_at":"2025-04-10T07:38:52.000Z","dependencies_parsed_at":"2022-09-05T04:41:23.102Z","dependency_job_id":null,"html_url":"https://github.com/getway/diting","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/getway/diting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getway%2Fditing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getway%2Fditing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getway%2Fditing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getway%2Fditing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getway","download_url":"https://codeload.github.com/getway/diting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getway%2Fditing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31678030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T08:18:19.405Z","status":"ssl_error","status_checked_at":"2026-04-11T08:17:08.892Z","response_time":54,"last_error":"SSL_read: 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":["authentication","dashboard","jumpserver","ldap","ldap-manager"],"created_at":"2024-08-02T01:00:38.414Z","updated_at":"2026-04-11T11:17:36.516Z","avatar_url":"https://github.com/getway.png","language":"Python","funding_links":[],"categories":["运维相关管理系统"],"sub_categories":["运维管理系统"],"readme":"## Diting 谛听系统\n目标：让运维更简单\n\n目前在jumpserver的框架下，开始项目(还有一版融合了最新版的jumpserver - [jumpserver-ldap-manager](https://github.com/getway/jumpserver-ldap-manager)\n有堡垒机功能和谛听的功能，欢迎体验。\n\n### 1 当前功能：\n* 用户管理-用户增删改查\n* 运维导航-快速链接、导航面板管理-增删改查\n* 统一账户体系，支持LDAP登录、本地用户登录，开启LDAP的情况下，用户改密码实时同步到LDAP，新增用户直接可以添加到LDAP账户体系中\n* LDAP账户修改一些属性同步到LDAP\n### 2 待添加功能\n* 导航权限分配\n* 支持接入开源没有账户体系的系统\n* 其他\n\n欢迎有兴趣的同学一起开发，这里感谢[Jumpserver](https://github.com/jumpserver/)这么好的项目，借用了框架。\n\n\n\n[![运维导航](docs/_static/img/dt-navis2.png)](#)\n\n[![导航列表](docs/_static/img/dt-navi-list.png)](#)\n\n[![导航详情](docs/_static/img/dt-navi-detail.png)](#)\n\n[![用户管理](docs/_static/img/dt-users-manager.png)](#)\n\n\n## 3 安装说明\n需要基本环境Python3.6\n项目路径: {install path}\n首先配置config.py 主要配置数据库地址\n\n### 3.1 系统环境设置\n```shell\n# CentOS 7\n$ setenforce 0  # 可以设置配置文件永久关闭\n$ systemctl stop iptables.service\n$ systemctl stop firewalld.service\n\n# 修改字符集，否则可能报 input/output error的问题，因为日志里打印了中文\n$ localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8\n$ export LC_ALL=zh_CN.UTF-8\n$ echo 'LANG=zh_CN.UTF-8' \u003e /etc/locale.conf\n\n# CentOS6\n$ setenforce 0\n$ service iptables stop\n\n# 修改字符集，否则可能报 input/output error的问题，因为日志里打印了中文\n$ localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8\n$ export LC_ALL=zh_CN.UTF-8\n$ echo 'LANG=zh_CN.UTF-8' \u003e /etc/sysconfig/i18n\n```\n\n### 3.2 准备 Python3 和 Python 虚拟环境\n```shell\n$ yum groupinstall \"Development tools\" -y\n#安装系统依赖\n$ yum -y install wget sqlite-devel xz gcc automake zlib-devel openssl-devel epel-release git python-ldap openldap-devel python-devel\n\n#安装python3.6\n$ wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz\n$ tar xvf Python-3.6.1.tar.xz  \u0026\u0026 cd Python-3.6.1\n$ ./configure \u0026\u0026 make \u0026\u0026 make install\n# 这里必须执行编译安装，否则在安装 Python 库依赖时会有麻烦...\n\n# 使用虚拟环境\n$ /usr/local/bin/python3.6 -m venv /opt/venv3\n$ source /opt/venv3/bin/activate\n#注意：当出现(venv3)时候，表示虚拟环境生成成功\n$ (venv3) [root@xxx xxx]#\n```\n\n### 3.3 安装谛听(diting)\n\n```shell\n#进入到安装目录/opt\n$ cd /opt\n$ git clone https://github.com/getway/diting.git\n$ cd diting\n# 安装依赖\n$ pip install -r requirements/requirements.txt\n#配置数据库以及redis  自行更改config.py\n\n# 数据库迁移(初始化数据库)\n$ cd /opt/diting/utils\n$ python3 ../apps/manage.py makemigrations common users perms navis likes\n$ bash make_migrations.sh\n#导入数据\n$ cd /opt/diting/apps\n$ python manage.py loaddata fixtures/init.json\n\n\n```\n\n### 3.4 服务启动\n\n```shell\n$ cd /opt/diting\n直接启动：\n$ ./dt start\n#或后台启动\n$ ./dt start -d\n\n# 访问\nhttp://127.0.0.1:8080\n用户名 ： admin\n密码： admin\n\n```\n\n### 3.5 nginx配置\n生产环境，请把配置中DEBUG改为False\n```\n#nginx配置文件\nserver {\n\tlisten 80;\n\tlisten 443 ssl http2;\n\tserver_name 域名; #配置自己的域名\n\n\t#https配置，没有的可以忽略\n\t#ssl on;\n\t#ssl_certificate ***.cer;  #替换为自己的路径\n\t#ssl_certificate_key ***.key; #替换为自己的路径\n\t#ssl_session_timeout 5m;\n\t#ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;\n\t#ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\n\t#ssl_prefer_server_ciphers on;\n\n\tindex index.html index.htm index.php;\n\n\tproxy_set_header X-Real-IP $remote_addr;\n\tproxy_set_header Host $host;\n\tproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n\n\tlocation /media/ {\n\t\troot /opt/diting/data/;\n\t}\n\n\tlocation /static/ {\n\t\troot /opt/diting/data/;\n\t}\n\n\tlocation / {\n\t\tproxy_pass http://localhost:8080;\n\t}\n\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetway%2Fditing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetway%2Fditing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetway%2Fditing/lists"}