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
|
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
|
||||||
|
|
||||||
###> symfony/framework-bundle ###
|
###> symfony/framework-bundle ###
|
||||||
APP_ENV=dev
|
APP_ENV=prod
|
||||||
APP_SECRET=695679907f9c3818e6924d547f872651
|
APP_SECRET=695679907f9c3818e6924d547f872651
|
||||||
TRUSTED_PROXIES=127.0.0.1,172.20.0.1,172.20.0.0/16
|
TRUSTED_PROXIES=127.0.0.1,172.20.0.1,172.20.0.0/16
|
||||||
TRUSTED_HOSTS=^.*$
|
TRUSTED_HOSTS=^.*$
|
||||||
###< symfony/framework-bundle ###
|
###< symfony/framework-bundle ###
|
||||||
|
|
||||||
SITE_BASE_URL=https://escapepage.dev
|
SITE_BASE_URL=https://escapepage.com
|
||||||
|
|
||||||
###> doctrine/doctrine-bundle ###
|
###> doctrine/doctrine-bundle ###
|
||||||
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
|
# 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 ###
|
###> symfony/mailer ###
|
||||||
# Development: use Mailpit (docker compose override provides service `mailer` on port 1025)
|
# 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):
|
# Production/Stage (uncomment and set SENDGRID_API_KEY in real env or secrets):
|
||||||
# MAILER_DSN=sendgrid+api://%env(SENDGRID_API_KEY)%
|
# MAILER_DSN=sendgrid+api://%env(SENDGRID_API_KEY)%
|
||||||
# Alternatively, via SMTP (no extra package needed):
|
# Alternatively, via SMTP (no extra package needed):
|
||||||
# MAILER_DSN="smtp://apikey:%env(SENDGRID_API_KEY)%@smtp.sendgrid.net:587?encryption=tls"
|
# 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):
|
# 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/mailer ###
|
||||||
|
|
||||||
###> symfony/sendgrid-mailer ###
|
###> symfony/sendgrid-mailer ###
|
||||||
@@ -66,7 +65,7 @@ SENDGRID_API_KEY=your_real_key_goes_here
|
|||||||
|
|
||||||
###> mercure ###
|
###> mercure ###
|
||||||
# Internal hub URL used by the PHP app (reachable from the php container)
|
# 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
|
# Public hub URL used by browsers
|
||||||
MERCURE_PUBLIC_URL=https://mercure.escapepage.com/.well-known/mercure
|
MERCURE_PUBLIC_URL=https://mercure.escapepage.com/.well-known/mercure
|
||||||
# Shared secret for signing JWTs (dev only). In prod, set via real env/secrets.
|
# 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_PUBLISHER_JWT_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOlsiKiJdfX0.E5b7ma4k-kA7lVGOQtICh7r2sspwX4G1iOhwtbxHQck
|
||||||
MERCURE_SUBSCRIBER_JWT_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJtZXJjdXJlIjp7InN1YnNjcmliZSI6WyIqIl19fQ.mwSAjvbm6vOnjMoRSHMdcqapNCwyGZs1s57uLK4T3UM
|
MERCURE_SUBSCRIBER_JWT_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJtZXJjdXJlIjp7InN1YnNjcmliZSI6WyIqIl19fQ.mwSAjvbm6vOnjMoRSHMdcqapNCwyGZs1s57uLK4T3UM
|
||||||
# CORS allowed origins (default)
|
# 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.
|
# Base URL for Mercure topics.
|
||||||
MERCURE_TOPIC_BASE=https://escapepage.com
|
MERCURE_TOPIC_BASE=https://escapepage.com
|
||||||
###< mercure ###
|
###< mercure ###
|
||||||
|
|||||||
56
docker/.env
Normal file
56
docker/.env
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
# This file is a template for Docker environment variables.
|
||||||
|
# It was created by merging .env and .env.prod, with .env.prod taking precedence.
|
||||||
|
|
||||||
|
###> symfony/framework-bundle ###
|
||||||
|
APP_ENV=prod
|
||||||
|
APP_SECRET=a8f89e179e8c338423697669d6728c2c
|
||||||
|
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.com
|
||||||
|
|
||||||
|
###> doctrine/doctrine-bundle ###
|
||||||
|
DB_DRIVER=pdo_mysql
|
||||||
|
DB_SERVER_VERSION=8.0.32
|
||||||
|
DB_CHARSET=utf8mb4
|
||||||
|
DB_USER=escapepage
|
||||||
|
DB_PASSWORD=Zr1aOYU5NpCbS3dhpxa64cZp
|
||||||
|
DB_HOST=database
|
||||||
|
DB_PORT=3306
|
||||||
|
DB_NAME=escapepage
|
||||||
|
DATABASE_URL="${DB_DRIVER}://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}?serverVersion=${DB_SERVER_VERSION}&charset=${DB_CHARSET}"
|
||||||
|
###< doctrine/doctrine-bundle ###
|
||||||
|
|
||||||
|
###> symfony/messenger ###
|
||||||
|
MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
|
||||||
|
###< symfony/messenger ###
|
||||||
|
|
||||||
|
###> symfony/mailer ###
|
||||||
|
MAILER_DSN=sendgrid://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@default
|
||||||
|
MAILER_FROM=mailer@escapepage.nl
|
||||||
|
###< symfony/mailer ###
|
||||||
|
|
||||||
|
###> symfony/sendgrid-mailer ###
|
||||||
|
# MAILER_DSN=sendgrid://KEY@default
|
||||||
|
###< symfony/sendgrid-mailer ###
|
||||||
|
|
||||||
|
###> mercure ###
|
||||||
|
MERCURE_URL=https://mercure/.well-known/mercure
|
||||||
|
MERCURE_PUBLIC_URL=https://escapepage.com:8090/.well-known/mercure
|
||||||
|
MERCURE_JWT_SECRET=55UtgFXsZu09TSTdeIA7ljK4HUo9DLkRzEB7MD5tqOLjRfAb
|
||||||
|
MERCURE_PUBLISHER_JWT_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOlsiKiJdfX0.qMVdzh7buYK78e-gwCQx7v6qCxk1Js83SAEKK-GZSrI
|
||||||
|
MERCURE_SUBSCRIBER_JWT_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJtZXJjdXJlIjp7InN1YnNjcmliZSI6WyIqIl19fQ.OCnRPXfCoke27ntAxby2R5jkgpTZdw83DPq1yhvkLbw
|
||||||
|
MERCURE_CORS_ALLOWED_ORIGINS=https://escapepage.com
|
||||||
|
MERCURE_TOPIC_BASE=https://escapepage.com
|
||||||
|
###< mercure ###
|
||||||
|
|
||||||
|
###> docker ###
|
||||||
|
USER_ID=1000
|
||||||
|
GROUP_ID=1000
|
||||||
|
###< docker ###
|
||||||
|
|
||||||
|
###> karser/karser-recaptcha3-bundle ###
|
||||||
|
RECAPTCHA3_KEY=my_site_key
|
||||||
|
RECAPTCHA3_SECRET=my_secret
|
||||||
|
###< karser/karser-recaptcha3-bundle ###
|
||||||
Reference in New Issue
Block a user