Files
hydra-sql/config/packages/framework.yaml
rudy 6667f44aac
Some checks failed
Cadoles/hydra-sql/pipeline/head There was a failure building this commit
ajout param enabled 2fa, trusted headers
2025-09-19 11:32:11 +02:00

45 lines
1.2 KiB
YAML

parameters:
base_url: '%env(BASE_URL)%'
env(BASE_URL): '//'
base_path: '%env(BASE_PATH)%'
env(BASE_PATH): '/'
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)%'
cookie_secure: auto
cookie_samesite: lax
storage_factory_id: session.storage.factory.native
cookie_path: "%cookie_path%"
assets:
json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'
router:
default_uri: '%base_url%'
#esi: true
#fragments: true
php_errors:
log: true
error_controller: App\Controller\CustomErrorController::show
trusted_headers:
[
"x-forwarded-for",
"x-forwarded-host",
"x-forwarded-proto",
"x-forwarded-port",
"x-forwarded-prefix",
]
when@test:
framework:
test: true
session:
storage_factory_id: session.storage.factory.mock_file