mirror of
https://github.com/kevinpapst/kimai2.git
synced 2024-12-22 12:18:29 +00:00
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
# see https://symfony.com/doc/current/reference/configuration/framework.html
|
|
parameters:
|
|
env(TRUSTED_PROXIES): ''
|
|
|
|
framework:
|
|
secret: '%env(APP_SECRET)%'
|
|
csrf_protection: true
|
|
annotations: false
|
|
handle_all_throwables: true
|
|
disallow_search_engine_index: true
|
|
set_content_language_from_locale: true
|
|
|
|
serializer:
|
|
enable_attributes: true
|
|
|
|
trusted_proxies: '%env(string:TRUSTED_PROXIES)%'
|
|
|
|
exceptions:
|
|
App\Validator\ValidationFailedException:
|
|
log_level: debug
|
|
|
|
default_locale: en
|
|
http_method_override: false
|
|
|
|
# Enables session support. Note that the session will ONLY be started if you read or write from it.
|
|
# Remove or comment this section to explicitly disable session support.
|
|
session:
|
|
handler_id: App\Security\SessionHandler
|
|
cookie_secure: auto
|
|
cookie_samesite: lax
|
|
cookie_httponly: true
|
|
storage_factory_id: session.storage.factory.native
|
|
|
|
php_errors:
|
|
log: true
|
|
|
|
mailer:
|
|
dsn: '%env(MAILER_URL)%'
|
|
|
|
validation:
|
|
email_validation_mode: html5
|
|
enable_attributes: true
|
|
|
|
when@dev:
|
|
framework:
|
|
mailer:
|
|
dsn: 'null://null'
|
|
|
|
when@test:
|
|
framework:
|
|
test: true
|
|
session:
|
|
storage_factory_id: session.storage.factory.mock_file
|
|
mailer:
|
|
dsn: 'null://null'
|