From 9ca3aa861353eeaed1bba7b1d04e7d25e47b4908 Mon Sep 17 00:00:00 2001 From: Kayn Ty Date: Mon, 13 Apr 2020 15:30:30 +0000 Subject: [PATCH] config email and logs --- .env | 2 +- config/packages/dev/swiftmailer.yaml | 2 +- config/packages/prod/monolog.yaml | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 config/packages/prod/monolog.yaml diff --git a/.env b/.env index 889fc6a..00049f9 100755 --- a/.env +++ b/.env @@ -38,7 +38,7 @@ CORS_ALLOW_ORIGIN=^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$ # For Gmail as a transport, use: "gmail://username:password@localhost" # For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode=" # Delivery is disabled by default via "null://localhost" -MAILER_URL=null://localhost +MAILER_URL=MAILER_URL=sendmail://framadate-api.cipherbliss.com # set the support email who will answer users in case of emergency SUPPORT_EMAIL=admin_framadate@yopmail.com ###< symfony/swiftmailer-bundle ### diff --git a/config/packages/dev/swiftmailer.yaml b/config/packages/dev/swiftmailer.yaml index b98158e..8cb6afe 100755 --- a/config/packages/dev/swiftmailer.yaml +++ b/config/packages/dev/swiftmailer.yaml @@ -1,4 +1,4 @@ # See https://symfony.com/doc/current/email/dev_environment.html swiftmailer: # send all emails to a specific address - #delivery_addresses: ['me@example.com'] + delivery_addresses: ['contact@cipherbliss.com'] diff --git a/config/packages/prod/monolog.yaml b/config/packages/prod/monolog.yaml new file mode 100644 index 0000000..ed99010 --- /dev/null +++ b/config/packages/prod/monolog.yaml @@ -0,0 +1,9 @@ +monolog: + handlers: + main: + type: rotating_file + path: '%kernel.logs_dir%/%kernel.environment%.log' + level: debug + # max number of log files to keep + # defaults to zero, which means infinite files + max_files: 10