.env 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # In all environments, the following files are loaded if they exist,
  2. # the latter taking precedence over the former:
  3. #
  4. # * .env contains default values for the environment variables needed by the app
  5. # * .env.local uncommitted file with local overrides
  6. # * .env.$APP_ENV committed environment-specific defaults
  7. # * .env.$APP_ENV.local uncommitted environment-specific overrides
  8. #
  9. # Real environment variables win over .env files.
  10. #
  11. # DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
  12. # https://symfony.com/doc/current/configuration/secrets.html
  13. #
  14. # Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
  15. # https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
  16. ###> symfony/framework-bundle ###
  17. APP_ENV=dev
  18. APP_SECRET=bacae3f1e917efd351c1f5b8af5bd1d4
  19. ###< symfony/framework-bundle ###
  20. ###> doctrine/doctrine-bundle ###
  21. # Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
  22. # IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
  23. #
  24. # DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
  25. # DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8.0.32&charset=utf8mb4"
  26. DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
  27. # DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
  28. ###< doctrine/doctrine-bundle ###
  29. ###> symfony/messenger ###
  30. # Choose one of the transports below
  31. # MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
  32. # MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
  33. MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
  34. ###< symfony/messenger ###
  35. ###> symfony/mailer ###
  36. # MAILER_DSN=null://null
  37. ###< symfony/mailer ###
  38. ###> nelmio/cors-bundle ###
  39. CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$'
  40. ###< nelmio/cors-bundle ###