Skip to content

Commit 9740a39

Browse files
fix(docs): Update allowed IPs in configuration for development purposes in configuration.md. (#175)
1 parent 1456f3e commit 9740a39

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- Bug #167: Update section title `Available stacks` and improve badge formatting in `README.md` (@terabytesoftw)
1414
- Bug #171: Update section title to `Available deployment options`, group stacks by type, and add Apache entry in `README.md` (@terabytesoftw)
1515
- Bug #172: Update badge label from `PHPUnit` to `Codeception` in `README.md` (@terabytesoftw)
16+
- Bug #175: Update allowed IPs in configuration for development purposes in `configuration.md` (@terabytesoftw)
1617

1718
## 0.1.0 August 31, 2025
1819

config/web/modules.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
$config = [
66
'debug' => [
77
'class' => yii\debug\Module::class,
8-
// uncomment the following to add your IP if you aren't connecting from localhost.
9-
'allowedIPs' => ['*'], // allow all IPs for development purposes only, do not use in production
8+
// development only: allows all IPs.
9+
// for production, replace '*' with explicit trusted IPs (for example, ['127.0.0.1', '::1']).
10+
'allowedIPs' => ['*'],
1011
],
1112
'gii' => [
1213
'class' => yii\gii\Module::class,
13-
// uncomment the following to add your IP if you aren't connecting from localhost.
14-
'allowedIPs' => ['*'], // allow all IPs for development purposes only, do not use in production
14+
// development only: allows all IPs.
15+
// for production, replace '*' with explicit trusted IPs (for example, ['127.0.0.1', '::1']).
16+
'allowedIPs' => ['*'],
1517
],
1618
];
1719

docs/configuration.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,15 @@ declare(strict_types=1);
201201
$config = [
202202
'debug' => [
203203
'class' => yii\debug\Module::class,
204-
// uncomment the following to add your IP if you aren't connecting from localhost.
205-
//'allowedIPs' => ['127.0.0.1', '::1'],
204+
// development only: allows all IPs.
205+
// for production, replace '*' with explicit trusted IPs (for example, ['127.0.0.1', '::1']).
206+
'allowedIPs' => ['*'],
206207
],
207208
'gii' => [
208209
'class' => yii\gii\Module::class,
209-
// uncomment the following to add your IP if you aren't connecting from localhost.
210-
//'allowedIPs' => ['127.0.0.1', '::1'],
210+
// development only: allows all IPs.
211+
// for production, replace '*' with explicit trusted IPs (for example, ['127.0.0.1', '::1']).
212+
'allowedIPs' => ['*'],
211213
],
212214
];
213215

0 commit comments

Comments
 (0)