hydra-sql/config/packages/framework.yaml
cmsassot b2d553590b
Some checks reported warnings
Cadoles/hydra-sql/pipeline/pr-develop This commit is unstable
feat(redis): fix session.handler_id: remove '?'
2023-12-14 14:48:46 +01:00

35 lines
1.0 KiB
YAML

parameters:
base_url: '%env(BASE_URL)%'
env(BASE_URL): '//'
cookie_path: '%env(COOKIE_PATH)%'
env(COOKIE_PATH): '/'
framework:
secret: '%env(APP_SECRET)%'
#csrf_protection: true
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: '%env(REDIS_DSN)%&prefix=%env(string:HYDRA_SQL_REDIS_PREFIX)%&ttl=%env(int:HYDRA_SQL_REDIS_TTL)%'
cookie_secure: auto
cookie_samesite: lax
storage_factory_id: session.storage.factory.native
cookie_path: "%cookie_path%"
assets:
base_urls: '%base_url%'
router:
default_uri: '%base_url%'
#esi: true
#fragments: true
php_errors:
log: true
error_controller: App\Controller\CustomErrorController::show
when@test:
framework:
test: true
session:
storage_factory_id: session.storage.factory.mock_file