# Business configuration

Security gateway supports Mini Program, Web, APP and other types of business access, each business is assigned by default 1 Gateway domain name, traffic unified by the gateway domain name forwarded to the service back-end source. After accessing the security gateway, all requests go through the WeChat private link. The data and the interface are protected by the security gateway, and the security gateway automatically has the capabilities of nearby access, intelligent routing, dynamic routing, and preferential return to the source, etc., which can significantly improve the performance of the Mini Program service request. Power and request speed.

# Mini Program business

After using the security gateway for the first time, the access Mini Program information will be displayed in the service configuration.newly addedButton to add. The current addition mode is one-click access mode, the following capabilities are only applicable to one-click access mode. Please refer to manual access mode.Mini Program manual access

  • Access switch: used to control whether the current Mini Program access to use the security gatewayIf closed, the Mini Program related requests will no longer take the security gateway link, effective within 1 min, the ability andOne-Click DisconnectidenticalIf opened, the subsequent Mini Program related requests will follow the security gateway link, protected by the security gateway, and it is expected that within 24 hours it can be grayscale more than 90% (failing to grayscale 100% because the one-click access method does not support the low base library version and the PC side Mini Program)
  • Access version: support access to all versions, online version, experience version, development version
    • All versions: the online version, the experience version, and the development version of the mini program are all connected to the use of the security gateway protected by the WeChat private link.After the test is clear,Recommended access to all versionsKeep all versions connected to the same version to facilitate the subsequent problem investigation
    • Online version: that is, only access the online version of the mini program to use the security gateway protected by WeChat private linkNot recommended, such as online problems, because the experience version, development version is not connected to the security gateway, can not quickly troubleshoot the problem
    • Experience version: that is, only the Mini Program experience version is accessed to use the security gateway, which is only used as a pre-access test.
    • Development version: that is, only the Mini Program development version is accessed to use the security gateway, which is only used for the pre-access test.
  • Mini Program URL: support business access by Mini Program URL granularity, fill in the Mini Program domain name for the Mini Program configuration in WeChat Official Platform request legal domain name
    • All: that is, by default, all request legal domain names configured by the Mini Program will be accessed to the security gateway
    • Prefix: support to add multiple paths under the same domain name, the path is empty by default according to the prefix match
  • Access mode: Support full access and gray scale according to the proportion of traffic 2 access modes
    • Full access: support for any access version of 100% traffic access, that is, after the above fill in the Mini Program URL traffic, will all enter the security gateway, the security gateway unified forwarding to the service source domain name
    • Gray scale according to the proportion of traffic: gray scale according to the user, only for the online version of the Mini Program, that is, when the access version is selected forAll versions、Online versionOnly then can you select the grayscale capability in proportion to the flowWhen the access version is selectedAll versionsGray scale is only effective for the online version
  • Gray scale: The gray scale is only effective for the online version, and the development version and the experience version are full access. Gray scale value, may not be accurate in the actual gray processWhen a user hits the grayscale rule, the subsequent re-use service will still be grayscale.

<a href="https://developers.weixin.qq.com/community/business/doc/00082093500fb88faef1689616680d target="_blank" data-ctabtn>

# Web Business

Support independent Web service, webview service in Mini Program, H5 service in Official Account message template, Web service need separate access to the Web security gateway SDK, the need to modify the code after the re-release version takes effect.

Specific access steps, refer to theWeb & H5 Using a Security Gateway

Web service access to WeChat security gateway advanced value-added capabilities, the current purchase of the basic version (specifications: 500QPS)*10Mbps) and above versions of the gateway package can be configured in the console, less than the basic version of the package temporarily do not support the use of this capability.

# APP Business

Support APP business access using WeChat security gateway, the current ability for the beta stage, you can go toSecurity Gateway Console - Technical Support, scan the code to join the security gateway technology group contact management to apply.