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

If you're not sure about the file name format, learn more about wheel file names.

wecmdbsrv_cfomp-1.1.3-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file wecmdbsrv_cfomp-1.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for wecmdbsrv_cfomp-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f32f128b375e5f6d6f4e6044b9b4626c15dfd22b325b582ab19ae4f09636ff7b
MD5 40d10bf6593c7a4a9ffb535fc4723608
BLAKE2b-256 8d68cffffe56e774040a43b06f72309fcea1d43d9802a6b77abe199a11fd7559

See more details on using hashes here.

Supported by

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