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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for wecmdbsrv_cfomp-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b432235173147bfc84dd53ec83653010a3899e2d5d13553399f25966ed5665ed
MD5 a20d98942af56fa8eb8f93bfb049539f
BLAKE2b-256 5eec394ca3913e57a8df5a8ed42235b458e6a38fb917d5d4af4af35937c3755d

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