mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 15:46:52 +03:00
* Improve env values configuration for oka_file bundle.
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
parameters:
|
||||
# Adds a fallback OKAFILE_STORAGE_ROOT_PATH if the env var is not set.
|
||||
# Adds a fallback OKAFILE_STORAGE_WEB_SERVER_HOST if the env var is not set.
|
||||
# This allows you to run cache:warmup even if your
|
||||
# environment variables are not available yet.
|
||||
# You should not need to change this value.
|
||||
env(OKAFILE_STORAGE_ROOT_PATH): '%kernel.project_dir%/public'
|
||||
env(OKAFILE_STORAGE_WEB_SERVER_HOST): 'localhost'
|
||||
|
||||
oka_file:
|
||||
db_driver: orm
|
||||
storage:
|
||||
root_path: '%env(OKAFILE_STORAGE_ROOT_PATH)%'
|
||||
root_path: '%env(resolve:OKAFILE_STORAGE_ROOT_PATH)%'
|
||||
webserver:
|
||||
host: '%env(OKAFILE_STORAGE_WEB_SERVER_HOST)%'
|
||||
host: '%env(resolve:OKAFILE_STORAGE_WEB_SERVER_HOST)%'
|
||||
|
||||
Reference in New Issue
Block a user