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

Uploaded Python 3

File details

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

File metadata

  • Download URL: wecmdbsrv_cfomp-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for wecmdbsrv_cfomp-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0ccfefdd2db59d97ebb9d7af07000cb608e96268eb4350bc0e7e3f62e94020d9
MD5 43f65fae7bbd952c15c706bc8f1f59ad
BLAKE2b-256 65edc354762493f045281462d08516e656ee628ddb4f5810f4e5481b93e2b005

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