Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
facem-backoffice
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FACEM
facem-backoffice
Commits
57bafae6
Verified
Commit
57bafae6
authored
3 weeks ago
by
David Gunnarsson
Browse files
Options
Downloads
Patches
Plain Diff
Configure smtp on server
parent
18f21845
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/credentials/production.yml.enc
+1
-1
1 addition, 1 deletion
config/credentials/production.yml.enc
config/environments/production.rb
+17
-13
17 additions, 13 deletions
config/environments/production.rb
with
18 additions
and
14 deletions
config/credentials/production.yml.enc
+
1
−
1
View file @
57bafae6
ZA7UQSN8UAcJBh1wEJFCGqUo/+1ZajmLXXUEU3mDEPyc3CNVyO4Jhq3Plr2fsO9XCf7C16lmlSKNIPWvnhHdo/7vEN90TLLCVNWA3MjOv7syDLSS891944ERjTq5cvj/4if8U4djUDyR24oR+GXEKs5TOAa+UdFGDWBH3TVj1xHBH4e2+f89ofCLZkblxkH8k393mKRTea/Kqvny9kpDcSCP2uBM//wE06pxUplL2lpfwOM83VdPA/FsyicF3a6LygRDlEaM1coIdDBNvoFpbT+siSzl8HIyvAi7Mxgg8eDre603I1mTbO9daVGyVJ2496kAbV1kl69Pi9vGS8118tyIZgJXzf/dG4XW82nQPUGdYE36EaEXwtEzr/RtiPx2OL9DbwV8kYYmgaN327mNRYCkD3J4iq53j5k+LKO+OHfC968TvLQD8Go2YjgwDowN5O2HDSWAWuhkWg05230cB+DmGjzJxa5emAEdNjQIEfGSaThNg9g383qZ--UZ42pf71HUb2flZ6--tMf6wHQUrI+te9Po1GUM9A==
7yPtPnPBurQ83tBCBz7RsAiTXIhEvtwFrG7bBwJr7VUg8Mj1Yj6Rxio3RX4bvCGue7bTEuI3sUGA5Vg7VvSNhL/gF1vPCDWktjTfzMfRSF1q4Muu6FgQwlCIsqXmYf4OEV5WDz+XO1g8PQukso3/zZDufqLpkuPMMblxJIvu0de5g31pgp/HTHtqIUo+EBlEDViBHJEY0bB0NYlQ9Hd5ne/XxVeT3tx/3y5o9lzWGnqSKZ/q49KNnIxin5y0M58baGdbtDf7oAfcPsWiR64wST0C5yEW8ch1YIWeA4PI0hSPO7Q2L7Q7/GGhJvH5nngUgO1n2fqVPAfUH6kf6NWxYUYw58514MFhpRYSrRtCkdu/HSPyZAqq+2tg1qY0989Ll7exDbOuCKaiUmx3MgTROG1IMgElrUjN21j71uArOvqLewiPeJ8GMC/BHaen6zlI4wCNec0/1rLuTmLQdh6eEzSvKGP4k/Qc02Hj1IADdpp02UT0oKVHP0lTAUKPfIspUlkagAOADf6idijPwA7vX2mrTLOy7883SEOLTPCCLRJOH8y6bnsAq2Nt/NS9r2MKG1+2eHgXu44+adSbz9wJrRUmXXSlycd/AUfYKwAW6PeGnuc=--MwQDFvuuiR/b5zPW--RZWSoS7siXHmkEEzSTMlcg==
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
config/environments/production.rb
+
17
−
13
View file @
57bafae6
...
@@ -52,21 +52,25 @@ Rails.application.configure do
...
@@ -52,21 +52,25 @@ Rails.application.configure do
# Replace the default in-process and non-durable queuing backend for Active Job.
# Replace the default in-process and non-durable queuing backend for Active Job.
# config.active_job.queue_adapter = :resque
# config.active_job.queue_adapter = :resque
# Ignore bad email addresses and do not raise email delivery errors.
config
.
action_mailer
.
delivery_method
=
:smtp
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
config
.
action_mailer
.
smtp_settings
=
{
# config.action_mailer.raise_delivery_errors = false
address:
Rails
.
application
.
credentials
.
smtp
.
address
,
port:
587
,
domain:
URI
.
parse
(
ENV
[
"DEFAULT_BASE_URL"
]).
host
,
user_name:
Rails
.
application
.
credentials
.
smtp
.
username
,
password:
Rails
.
application
.
credentials
.
smtp
.
password
,
enable_starttls_auto:
true
,
min_version:
OpenSSL
::
SSL
::
TLS1_2_VERSION
}
# Set host to be used by links generated in mailer templates.
# Set host to be used by links generated in mailer templates.
config
.
action_mailer
.
default_url_options
=
{
host:
"example.com"
}
config
.
action_mailer
.
default_url_options
=
{
host:
ENV
[
"DEFAULT_BASE_URL"
],
# Specify outgoing SMTP server. Remember to add smtp/* credentials via rails credentials:edit.
protocol:
"https"
# config.action_mailer.smtp_settings = {
}
# user_name: Rails.application.credentials.dig(:smtp, :user_name),
# password: Rails.application.credentials.dig(:smtp, :password),
config
.
action_mailer
.
perform_deliveries
=
true
# address: "smtp.example.com",
config
.
action_mailer
.
raise_delivery_errors
=
true
# port: 587,
# authentication: :plain
# }
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation cannot be found).
# the I18n.default_locale when a translation cannot be found).
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment