Browse Source

variabilisation des paramètres du serveur de bdd

develop
seraph 2 years ago
parent
commit
cfed4f0fbc
  1. 2
      .env
  2. 4
      config/packages/doctrine.yaml

2
.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 ###

4
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

Loading…
Cancel
Save