# This file is a "template" of which env vars need to be defined for your application
# Copy this file to .env file for development, create environment variables when deploying to production
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration

###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=changethis
APP_NAME=mineseeker
# APP_PUBLIC_HOSTNAME: The public hostname for your application (used for generating absolute URLs in emails)
# For production, set this to your domain (e.g., mineseeker.com)
APP_PUBLIC_HOSTNAME=localhost
# TRUSTED_PROXIES: Only needed for bare-metal dev behind a reverse proxy
# For Docker development, this is set in compose.override.yaml
# For production, set in PROD_ENV_FILE Gitea secret (use 172.18.0.0/16 initially)
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
#TRUSTED_HOSTS=localhost,example.com
###< symfony/framework-bundle ###

###> doctrine/doctrine-bundle ###
# Docker PostgreSQL is exposed on port 15432 — use that for bare-metal dev.
# Replace POSTGRES_USER / POSTGRES_PASSWORD / POSTGRES_DB with the values from your .env.
DATABASE_URL=postgresql://POSTGRES_USER:POSTGRES_PASSWORD@127.0.0.1:15432/POSTGRES_DB?serverVersion=18&charset=utf8
###< doctrine/doctrine-bundle ###

###> google/recaptcha ###
RECAPTCHA_SITE_KEY=changethis
RECAPTCHA_SECRET_KEY=changethis
###< google/recaptcha ###

###> minio/minio ###
MINIO_ROOT_USER=changethis
MINIO_ROOT_PASSWORD=changethis
MINIO_ENDPOINT=http://localhost:9000
MINIO_PUBLIC_URL=https://your-minio-subdomain.example.com
###< minio/minio ###

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

###> 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=https://mine.local/.well-known/mercure
# The public URL of the Mercure hub, used by the browser to connect
MERCURE_PUBLIC_URL=https://mine.local/.well-known/mercure
# The secret used to sign the JWTs
MERCURE_JWT_SECRET="!ChangeThisMercureHubJWTSecretKey!"
# Publisher JWT (must match publisher_jwt in your Caddyfile)
MERCURE_JWT_TOKEN=changethis
# Subscriber JWT sent to the browser so it can authenticate its EventSource connection
MERCURE_SUBSCRIBER_JWT=changethis
###< symfony/mercure-bundle ###

###> web-auth/webauthn-framework ###
WEBAUTHN_RP_ID=mine.local
WEBAUTHN_ORIGIN=https://mine.local
###< web-auth/webauthn-framework ###
