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.2.1-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for wecmdbsrv_cfomp-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7051b01cbc3f2ed43ddb59013e5e50c0f6a7eb9388812cb997c1f9e72d3cc4f5
MD5 852af6835363220a5b6bf50d91c86948
BLAKE2b-256 3c60754a621f1309d68a602f7b9fda300d7ffd5269933bebeccc3112334ee5f9

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