|
14 | 14 | # https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration |
15 | 15 |
|
16 | 16 | # API Platform distribution |
| 17 | +TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 |
| 18 | +TRUSTED_HOSTS=^(localhost|caddy)$ |
17 | 19 | MERCURE_SUBSCRIBE_URL=https://localhost/.well-known/mercure |
18 | 20 |
|
19 | 21 | ###> symfony/framework-bundle ### |
20 | 22 | APP_ENV=dev |
21 | 23 | APP_SECRET=!ChangeMe! |
22 | | -TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 |
23 | | -TRUSTED_HOSTS='^(localhost|caddy)$' |
24 | 24 | ###< symfony/framework-bundle ### |
25 | 25 |
|
26 | 26 | ###> doctrine/doctrine-bundle ### |
27 | 27 | # Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url |
28 | | -# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db" |
29 | | -# For a MySQL database, use: "mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7" |
30 | 28 | # IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml |
31 | | -DATABASE_URL=postgres://api-platform:!ChangeMe!@database/api?server_version=13 |
| 29 | +# |
| 30 | +# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db" |
| 31 | +# DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7" |
| 32 | +DATABASE_URL="postgresql://api-platform:!ChangeMe!@database:5432/api?serverVersion=13DATABASE_URL="postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"charset=utf8" |
32 | 33 | ###< doctrine/doctrine-bundle ### |
33 | 34 |
|
34 | 35 | ###> nelmio/cors-bundle ### |
|
0 commit comments