<?php

$config = [
'components' => [
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => '5-TS9SscpfQXS0aVtRrPUZcRcW053Opc',
],
],
];

if (!YII_ENV_TEST) {
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = 'yii\debug\Module';

$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
'allowedIPs' => [
'127.0.0.1',
'192.168.33.1' //限制ip使用gii
],
];
}

return $config;

yii gii配置ip限制使用gii

 

相关文章:

  • 2021-07-02
  • 2022-01-05
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2021-09-26
猜你喜欢
  • 2021-04-20
  • 2021-06-29
  • 2021-11-13
  • 2021-10-10
  • 2021-10-21
  • 2021-11-15
  • 2022-12-23
相关资源
相似解决方案