32 lines
854 B
PHP
32 lines
854 B
PHP
<?php
|
|
// API模块配置
|
|
return [
|
|
# 接口允许访问的域名
|
|
'api_domains' => [
|
|
'localhost',
|
|
'127.0.0.1',
|
|
'192.168.1.56',
|
|
'manghe.zpc-xy.com'
|
|
// 添加其他允许的域名
|
|
// 'example.com',
|
|
// '*.example.com',
|
|
],
|
|
# 后台允许访问的域名
|
|
'admin_domains' => [
|
|
'localhost',
|
|
'127.0.0.1',
|
|
'192.168.1.56',
|
|
'manghe.zpc-xy.com'
|
|
// 添加其他允许的域名
|
|
// 'example.com',
|
|
// '*.example.com',
|
|
],
|
|
// 不需要验证域名的白名单路径
|
|
'whitelist_paths' => [
|
|
'notify/*', // 支付回调等通知
|
|
'health', // 健康检查
|
|
'ping', // 服务可用性检查
|
|
'debug', // 调试接口
|
|
'wechat/callback', // 微信回调
|
|
],
|
|
]; |