Skip to main content

Wxwork callback service for HOST CMDB

Project description

# 运管平台企业微信主机CMDB查询回调服务 运管平台`主机CMDB查询`应用,用户在应用中输入检索的文本,企业微信回调此服务,返回给用户包含查询主机列表的外部超链接。用户点击链接,验证身份通过之后便可得到检索的结果。

## 使用说明 运行时依赖以下环境变量 | Environment variable | Description | Default | | — | — | — | | SECRET_KEY | Flask native config| None | | WEWORK_TOKEN | 企业微信应用的TOKEN | None | | WEWORK_ENCODING_AES_KEY | 企业微信应用的AES密钥 | None | | WEWORK_CORPID | 企业微信的企业ID| None | | WEWORK_AGENTID | 企业微信内应用的ID | None | | WEWORK_SECRET | 企业微信内应用的Secret| None | | ES_HOSTS | Elasticsearch host list| localhost | | ES_SIZE | Elasticsearch search size limit | 20 | | ES_TIMEOUT | Elasticsearch search timeouts | None | | EXTERNAL_URL | Flask native config| https://cfomp.shchinafortune.com/wecmdbsrv | | URL_PREFIX | Flask native config| /wecmdbsrv |

## 注意事项 1. 可以把运行时依赖的环境变量配置到文件中,如`/etc/wecmdbsrv/setting.cfg`, 然后设置`PROJECT_SETTING`环境变量指向这个文件,PROJECT_SETTING=/etc/wecmdbsrv/setting.cfg 1. 运行时需要向https://open.weixin.qq.com/connect/oauth2/authorize 获取OAuth2 token,然后验证用户身份。请依据主机网络是否设置`https_proxy`环境变量

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

wecmdbsrv_cfomp-1.2.2-py3-none-any.whl (14.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page