92 lines
4.4 KiB
Bash
92 lines
4.4 KiB
Bash
# 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
|
|
|
|
###> symfony/framework-bundle ###
|
|
APP_ENV=dev
|
|
APP_SECRET=
|
|
APP_SHARE_DIR=var/share
|
|
|
|
# The Host headers this application answers to, as a regular expression -- the OAuth2
|
|
# redirect_uri is generated from the incoming request, so an unchecked Host header is what myep
|
|
# is told to send the authorization code to. Empty means every host is accepted; set it per
|
|
# environment, e.g. SYMFONY_TRUSTED_HOSTS='^ephub\.example\.com$'.
|
|
SYMFONY_TRUSTED_HOSTS=
|
|
# Only behind a TLS-terminating proxy: the proxy's address, a comma-separated list, or
|
|
# "private_ranges". Without it the generated redirect_uri of such a deployment comes out http://.
|
|
SYMFONY_TRUSTED_PROXIES=
|
|
###< symfony/framework-bundle ###
|
|
|
|
###> symfony/routing ###
|
|
# Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
|
|
# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
|
|
DEFAULT_URI=http://localhost
|
|
###< symfony/routing ###
|
|
|
|
###> doctrine/doctrine-bundle ###
|
|
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
|
|
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
|
|
#
|
|
# MariaDB 11.x, as provided by DDEV. The mysql:// scheme is just DBAL's pdo_mysql alias --
|
|
# serverVersion is what selects MariaDBPlatform over MySQLPlatform, so keep it in sync with
|
|
# the container. DDEV writes the same value into the gitignored .env.local.
|
|
DATABASE_URL="mysql://db:db@db:3306/db?charset=utf8mb4&serverVersion=11.8.0-mariadb"
|
|
###< doctrine/doctrine-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 ###
|
|
|
|
###> symfony/mailer ###
|
|
MAILER_DSN=null://null
|
|
###< symfony/mailer ###
|
|
|
|
###> app/notifications ###
|
|
# Sender of every booking notification; each configured recipient gets their own mail.
|
|
# Must be an address the mail host accepts mail from -- production overrides this in .env.local.
|
|
MAILER_FROM=[email protected]
|
|
###< app/notifications ###
|
|
|
|
###> app/myep-oauth2 ###
|
|
# OAuth2 against myep, the EP identity provider. ephub is a confidential client using the
|
|
# authorization_code grant; it reads /api/userinfo once at login and then uses its own session,
|
|
# so the 10-minute access token is never stored or refreshed.
|
|
#
|
|
# Credentials come from `league:oauth2-server:create-client` ON MYEP. Register the callback
|
|
# https://ephub.ddev.site/auth/check for local dev, plus the production host. Leave the id and
|
|
# secret empty until then -- the login page detects it and says so.
|
|
#
|
|
# The local `user` table is keyed on the `sub` claim -- opaque, stable, and unique per myep
|
|
# account -- so an address change on myep updates the row instead of creating a second one.
|
|
# `email` is the address the session actually signed in with and is kept as a display and
|
|
# contact value. Do NOT use profile.communication.email: it is the first contact address on the
|
|
# BusPro record, shared by every account of the same person.
|
|
EP_OAUTH2_CLIENT_ID=
|
|
EP_OAUTH2_CLIENT_SECRET=
|
|
EP_OAUTH2_URL_AUTHORIZE=https://myep.ddev.site/authorize
|
|
EP_OAUTH2_URL_ACCESS_TOKEN=https://myep.ddev.site/token
|
|
EP_OAUTH2_URL_USERINFO=https://myep.ddev.site/api/userinfo
|
|
EP_OAUTH2_SCOPES=email,profile,roles
|
|
###< app/myep-oauth2 ###
|
|
|
|
###> app/features ###
|
|
# Feature flags, read by config/packages/flagception.yaml. Off here and switched on per
|
|
# deployment in .env.local, so a feature reaches production when its environment says so rather
|
|
# than when it is merged. None at the moment.
|
|
###< app/features ###
|