diff --git a/.env b/.env index 71d04a1..6ed6bf5 100644 --- a/.env +++ b/.env @@ -18,6 +18,8 @@ APP_ENV=dev APP_SECRET=597b0529ac702d27dcb9089f7e69c362 # Base website url, should contain https:// and having no trailing slash. example: BASE_URL=https://framadate.org BASE_URL=http://localhost/ +DATABASE_DRIVER=pdo_mysql +DATABASE_SERVER_VERSION=5.7 #TRUSTED_PROXIES=127.0.0.1,127.0.0.2 #TRUSTED_HOSTS='^localhost|example\.com$' ###< symfony/framework-bundle ### diff --git a/config/packages/doctrine.yaml b/config/packages/doctrine.yaml index 1e2e3b6..506fac6 100644 --- a/config/packages/doctrine.yaml +++ b/config/packages/doctrine.yaml @@ -3,8 +3,8 @@ doctrine: # configure these for your database server # use postgresql for PostgreSQL # use sqlite for SQLite - driver: 'mysql' - server_version: '5.7' + driver: '%env(resolve:DATABASE_DRIVER)%' + server_version: '%env(resolve:DATABASE_SERVER_VERSION)%' # only needed for MySQL charset: utf8mb4