Prod development
This commit is contained in:
13
.env
13
.env
@@ -15,13 +15,13 @@
|
||||
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
|
||||
|
||||
###> symfony/framework-bundle ###
|
||||
APP_ENV=dev
|
||||
APP_ENV=prod
|
||||
APP_SECRET=695679907f9c3818e6924d547f872651
|
||||
TRUSTED_PROXIES=127.0.0.1,172.20.0.1,172.20.0.0/16
|
||||
TRUSTED_HOSTS=^.*$
|
||||
###< symfony/framework-bundle ###
|
||||
|
||||
SITE_BASE_URL=https://escapepage.dev
|
||||
SITE_BASE_URL=https://escapepage.com
|
||||
|
||||
###> doctrine/doctrine-bundle ###
|
||||
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
|
||||
@@ -50,14 +50,13 @@ MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
|
||||
|
||||
###> symfony/mailer ###
|
||||
# Development: use Mailpit (docker compose override provides service `mailer` on port 1025)
|
||||
MAILER_DSN=smtp://mailer:1025
|
||||
MAILER_DSN=sendgrid://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@default
|
||||
MAILER_FROM=mailer@escapepage.nl
|
||||
# Production/Stage (uncomment and set SENDGRID_API_KEY in real env or secrets):
|
||||
# MAILER_DSN=sendgrid+api://%env(SENDGRID_API_KEY)%
|
||||
# Alternatively, via SMTP (no extra package needed):
|
||||
# MAILER_DSN="smtp://apikey:%env(SENDGRID_API_KEY)%@smtp.sendgrid.net:587?encryption=tls"
|
||||
# Optional default sender (used by test command if --from not passed):
|
||||
MAILER_FROM=noreply@escapepage.dev
|
||||
SENDGRID_API_KEY=your_real_key_goes_here
|
||||
###< symfony/mailer ###
|
||||
|
||||
###> symfony/sendgrid-mailer ###
|
||||
@@ -66,7 +65,7 @@ SENDGRID_API_KEY=your_real_key_goes_here
|
||||
|
||||
###> mercure ###
|
||||
# Internal hub URL used by the PHP app (reachable from the php container)
|
||||
MERCURE_URL=http://mercure/.well-known/mercure
|
||||
MERCURE_URL=https://mercure/.well-known/mercure
|
||||
# Public hub URL used by browsers
|
||||
MERCURE_PUBLIC_URL=https://mercure.escapepage.com/.well-known/mercure
|
||||
# Shared secret for signing JWTs (dev only). In prod, set via real env/secrets.
|
||||
@@ -75,7 +74,7 @@ MERCURE_JWT_SECRET=!ChangeThisMercureJWTSignedBySymfonySecretKey!
|
||||
MERCURE_PUBLISHER_JWT_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOlsiKiJdfX0.E5b7ma4k-kA7lVGOQtICh7r2sspwX4G1iOhwtbxHQck
|
||||
MERCURE_SUBSCRIBER_JWT_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJtZXJjdXJlIjp7InN1YnNjcmliZSI6WyIqIl19fQ.mwSAjvbm6vOnjMoRSHMdcqapNCwyGZs1s57uLK4T3UM
|
||||
# CORS allowed origins (default)
|
||||
MERCURE_CORS_ALLOWED_ORIGINS="https://escapepage.com https://escapepage.dev"
|
||||
MERCURE_CORS_ALLOWED_ORIGINS="https://www.escapepage.com https://escapepage.com"
|
||||
# Base URL for Mercure topics.
|
||||
MERCURE_TOPIC_BASE=https://escapepage.com
|
||||
###< mercure ###
|
||||
|
||||
Reference in New Issue
Block a user