Miercoles

This commit is contained in:
2024-05-31 16:13:33 -03:00
parent b7ed61c490
commit 9b00cedf2e
10 changed files with 104 additions and 7 deletions

View File

@ -29,8 +29,28 @@ config :derivantes, DerivantesWeb.Endpoint,
#
# For production it's recommended to configure a different adapter
# at the `config/runtime.exs`.
config :derivantes, Derivantes.Mailer, adapter: Swoosh.Adapters.Local
config :derivantes, Derivantes.Mailer,
adapter: Swoosh.Adapters.SMTP,
relay: "mail.rmitacriocuarto.com.ar",
username: "informedigital@rmitacriocuarto.com.ar",
password: "Infotomo2020+",
auth: :always,
ssl: true,
port: 465,
retries: 10,
sockopts: [
versions: [:"tlsv1.2", :"tlsv1.3"],
verify: :verify_peer,
cacerts: :public_key.cacerts_get(),
depth: 3,
customize_hostname_check: [
match_fun: :public_key.pkix_verify_hostname_match_fun(:https)
],
server_name_indication: 'mail.rmitacriocuarto.com.ar'
]
# Configure esbuild (the version is required)
config :esbuild,
version: "0.17.11",

View File

@ -5,7 +5,7 @@ config :derivantes, Derivantes.Repo,
username: "postgres",
password: "1nf0rm3",
hostname: "localhost",
port: 5555,
port: 5432,
database: "derivantes",
stacktrace: true,
show_sensitive_data_on_connection_error: true,

View File

@ -114,4 +114,26 @@ if config_env() == :prod do
# config :swoosh, :api_client, Swoosh.ApiClient.Hackney
#
# See https://hexdocs.pm/swoosh/Swoosh.html#module-installation for details.
config :derivantes, Derivantes.Mailer, adapter: Swoosh.Adapters.Local,
adapter: Swoosh.Adapters.SMTP,
relay: "mail.rmitacriocuarto.com.ar",
username: "informedigital@rmitacriocuarto.com.ar",
password: "Infotomo2020+",
auth: :always,
ssl: true,
port: 465,
retries: 10,
sockopts: [
versions: [:"tlsv1.2", :"tlsv1.3"],
verify: :verify_peer,
cacerts: :public_key.cacerts_get(),
depth: 3,
customize_hostname_check: [
match_fun: :public_key.pkix_verify_hostname_match_fun(:https)
],
server_name_indication: 'mail.rmitacriocuarto.com.ar'
]
end