Skip to content

Commit

Permalink
Backport changes from 1.2 and ignore public directory in default .git…
Browse files Browse the repository at this point in the history
…ignore
  • Loading branch information
LukeTowers committed Dec 14, 2021
1 parent 2e4eacb commit 7473cbe
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 25 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ _ide_helper.php
.DS_Store
package-lock.json
/node_modules

# Ignore generated public directory from `winter:mirror public`
public
16 changes: 8 additions & 8 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@
| from your proxy when rewriting the request. This is an integer map value
| so you may specify more than one value.
|
| Possible values (prepended with `Illuminate\Http\Request::`)
| - HEADER_X_FORWARDED_ALL - trust all forwarded headers
| - HEADER_X_FORWARDED_FOR - trust only the proxy IP
| - HEADER_X_FORWARDED_HOST - trust only the proxy hostname
| - HEADER_X_FORWARDED_PORT - trust only the proxy port
| - HEADER_X_FORWARDED_PROTO - trust only the proxy protocol
| - HEADER_X_FORWARDED_AWS_ELB - trust Amazon Elastic Load Balancing header
| Possible values:
| - 'HEADER_X_FORWARDED_ALL' - trust all forwarded headers
| - Illuminate\Http\Request::HEADER_X_FORWARDED_FOR - trust only the proxy IP
| - Illuminate\Http\Request::HEADER_X_FORWARDED_HOST - trust only the proxy hostname
| - Illuminate\Http\Request::HEADER_X_FORWARDED_PORT - trust only the proxy port
| - Illuminate\Http\Request::HEADER_X_FORWARDED_PROTO - trust only the proxy protocol
| - Illuminate\Http\Request::HEADER_X_FORWARDED_AWS_ELB - trust Amazon Elastic Load Balancing headers
|
| Examples:
| - To trust only the hostname, use the following:
Expand All @@ -132,7 +132,7 @@
| - Amazon ELB users should always use the "HEADER_X_FORWARDED_AWS_ELB" option.
*/

'trustedProxyHeaders' => Illuminate\Http\Request::HEADER_X_FORWARDED_ALL,
'trustedProxyHeaders' => 'HEADER_X_FORWARDED_ALL',

/*
|--------------------------------------------------------------------------
Expand Down
17 changes: 0 additions & 17 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,21 +143,4 @@

],

/*
|--------------------------------------------------------------------------
| Use DB configuration for testing
|--------------------------------------------------------------------------
|
| When running plugin tests Winter CMS by default uses SQLite in memory.
| You can override this behavior by setting `useConfigForTesting` to true.
|
| After that Winter CMS will take DB parameters from the config.
| If file `/config/testing/database.php` exists, config will be read from it,
| but remember that when not specified it will use parameters specified in
| `/config/database.php`.
|
*/

'useConfigForTesting' => false,

];
3 changes: 3 additions & 0 deletions modules/system/console/WinterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ protected function execPhpUnit(string $config, array $args): int
null
);

// Set an unlimited timeout
$process->setTimeout(0);

// Attempt to set tty mode, catch and warn with the exception message if unsupported
try {
$process->setTty(true);
Expand Down

0 comments on commit 7473cbe

Please sign in to comment.