# In all environments, the following files are loaded if they exist,
# the latter taking precedence over the former:
#
#  * .env                contains default values for the environment variables needed by the app
#  * .env.local          uncommitted file with local overrides
#  * .env.$APP_ENV       committed environment-specific defaults
#  * .env.$APP_ENV.local uncommitted environment-specific overrides
#
# Real environment variables win over .env files.
#
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
#
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration

###> symfony/framework-bundle ###
APP_DEBUG=0
APP_SECRET=6a76497c8658bb23e2236f97a2627df3
###< symfony/framework-bundle ###

###> doctrine/doctrine-bundle ###
# => defined in the .env.<environment> files
###< doctrine/doctrine-bundle ###

###> lexik/jwt-authentication-bundle ###
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
JWT_PASSPHRASE=opentalent
###< lexik/jwt-authentication-bundle ###

###> opentalent config folder ###
OPENTALENT_CONFIG=/config/opentalent
###< opentalent config folder ###

###> dolibarr client ###
DOLIBARR_API_BASE_URI=https://dev-erp.2iopenservice.com/api/index.php/
DOLIBARR_API_TOKEN=Bocc4zC0J186v8J6QCqu7DnoIw4I7mCJ
###< dolibarr client ###

###> mobyt client ###
MOBYT_API_BASE_URI=https://app.mobyt.fr/API/v1.0/REST/
###< mobyt client ###

###> knplabs/knp-snappy-bundle ###
WKHTMLTOPDF_PATH=/usr/local/bin/wkhtmltopdf
WKHTMLTOIMAGE_PATH=/usr/local/bin/wkhtmltoimage
###< knplabs/knp-snappy-bundle ###

###> symfony/messenger ###
# Choose one of the transports below
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
###< symfony/messenger ###

###> AdminAssos configuration ###
# => defined in the .env.<environment> files
###< AdminAssos configuration ###

###> symfony/lock ###
LOCK_DSN=semaphore
###< symfony/lock ###

###> symfony/mailer ###
MAILER_DSN=smtp://localhost
###< symfony/mailer ###

###> bindfile populate buffer file
BIND_FILE_BUFFER_FILE=/env/subdomain.txt
###< bindfile populate buffer file

###> elasticsearch ###
ELASTICSEARCH_HOST=localhost
ELASTICSEARCH_PORT=9200
###< elasticsearch ###

###> symfony/mercure-bundle ###
# See https://symfony.com/doc/current/mercure.html#configuration
# The URL of the Mercure hub, used by the app to publish updates (can be a local URL)
MERCURE_URL=http://mercure/.well-known/mercure
# The public URL of the Mercure hub, used by the browser to connect
MERCURE_PUBLIC_URL=https://local.mercure.opentalent.fr/.well-known/mercure
# The secret key used to sign the JWTs
MERCURE_PUBLISHER_JWT_KEY=NQEupdREijrfYvCmF2mnvZQFL9zLKDH9RCYter6tUWzjemPqzicffhc2fSf0yEmM
###< symfony/mercure-bundle ###

###> AdminAssos configuration ###
DATABASE_ADMINASSOS_URL=mysql://root:mysql660@db:3306/adminassos?serverVersion=5.7
###< AdminAssos configuration ###

###> Audit configuration ###
DATABASE_AUDIT_URL=mysql://root:mysql660@db:3306/audit?serverVersion=5.7
###< Audit configuration ###

###> typo3 client ###
TYPO3_BASE_URI=http://docker.sub.opentalent.fr
###< typo3 client ###

###> nelmio/cors-bundle ###
CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$'
###< nelmio/cors-bundle ###

###> filename log ###
LOG_FILE_NAME=undefined
###< filename log ###

### Internal requests (@see doc/internal_requests.md)
INTERNAL_REQUESTS_TOKEN=sRyfu6SZLR9StpnSKYRdl6i9wr5qs1bJQzro4DUiVyYJ2jknl
INTERNAL_FILES_DOWNLOAD_URI=https://api.opentalent.fr/_internal/secure/files
###
