# 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.
# https://symfony.com/doc/current/configuration/secrets.html
#
# 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

###> Docker Configuration ###
# These control file permissions in Docker containers
# Automatically set by docker/start.sh helper script
APPLICATION_UID=${UID:-1000}
APPLICATION_GID=${GID:-1000}
DOCKER_PATH_PREFIX=
###< Docker Configuration ###

###> Symfony Framework ###
APP_ENV=dev
# WARNING: You should change this value in .env.local for production!
# Generate with: bin/console secrets:generate-keys
APP_SECRET=change_me_in_env_local_for_production
###< Symfony Framework ###

###> Firebird Database Connection ###
# CRITICAL: Override these in .env.local with your actual database credentials
# These placeholders are required for tests (tests/bootstrap.php) and error handling
# For Docker setup, see: docker/init-database.sh
# IMPORTANT: Use Docker service name 'firebird' (not localhost) when running in containers
# Path must match firebirdsql/firebird image data dir: /var/lib/firebird/data
DBHOST=firebird
DBPORT=3050
DBNAME=/var/lib/firebird/data/database.fdb
DBUSER=
DBPASSWORD=
###< Firebird Database Connection ###

###> MariaDB/MySQL Database ###
# Used by Doctrine for additional database connections (if needed)
###< MariaDB/MySQL Database ###

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

###> symfony/mailer ###
# MAILER_DSN=null://null
###< symfony/mailer ###

###> Nextcloud Integration ###
# NEXTCLOUD_TOKEN=your_token_here
###< Nextcloud Integration ###
