Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
demo.typo3.org
demo.typo3.org TYPO3 Installation
Commits
da961ba0
Commit
da961ba0
authored
Apr 08, 2021
by
Matthias Stegmann
Browse files
[TASK] Fix image processing for local development
and other TYPO3_CONF_VARS #29
parent
9ea7a15d
Pipeline
#10543
passed with stages
in 1 minute and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
config/AdditionalConfiguration/Development/DDEVContext.php
View file @
da961ba0
<?php
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'SYS'
][
'trustedHostsPattern'
]
=
'.*'
;
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'DB'
][
'Connections'
][
'Default'
]
=
[
'charset'
=>
'utf8'
,
'dbname'
=>
'db'
,
'host'
=>
'db'
,
'password'
=>
'db'
,
'port'
=>
3306
,
'user'
=>
'db'
,
'driver'
=>
'mysqli'
,
];
// base config by DDEV
if
(
getenv
(
'IS_DDEV_PROJECT'
)
==
'true'
)
{
$GLOBALS
[
'TYPO3_CONF_VARS'
]
=
array_replace_recursive
(
$GLOBALS
[
'TYPO3_CONF_VARS'
],
[
'DB'
=>
[
'Connections'
=>
[
'Default'
=>
[
'charset'
=>
'utf8'
,
'dbname'
=>
'db'
,
'host'
=>
'db'
,
'password'
=>
'db'
,
'port'
=>
3306
,
'user'
=>
'db'
,
'driver'
=>
'mysqli'
,
],
],
],
// This GFX configuration allows processing by installed ImageMagick 6
'GFX'
=>
[
'processor'
=>
'ImageMagick'
,
'processor_path'
=>
'/usr/bin/'
,
'processor_path_lzw'
=>
'/usr/bin/'
,
],
// This mail configuration sends all emails to mailhog
'MAIL'
=>
[
'transport'
=>
'smtp'
,
'transport_smtp_server'
=>
'localhost:1025'
,
],
'SYS'
=>
[
'trustedHostsPattern'
=>
'.*'
,
'devIPmask'
=>
'*'
,
'displayErrors'
=>
1
,
],
'BE'
=>
[
'debug'
=>
true
,
],
'FE'
=>
[
'debug'
=>
true
,
]
]
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment