Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sample_app
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mai Hoang Thai Ha
sample_app
Commits
85858b19
Commit
85858b19
authored
Jun 09, 2021
by
Mai Hoang Thai Ha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use SSL and the Puma webserver in production
parent
6bc62870
Pipeline
#1246
canceled with stages
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
config/environments/production.rb
+2
-0
config/environments/test.rb
+0
-1
No files found.
config/environments/production.rb
View file @
85858b19
...
@@ -117,4 +117,6 @@ Rails.application.configure do
...
@@ -117,4 +117,6 @@ Rails.application.configure do
# config.active_record.database_selector = { delay: 2.seconds }
# config.active_record.database_selector = { delay: 2.seconds }
# config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
# config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
# config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
# config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
config
.
force_ssl
=
true
end
end
config/environments/test.rb
View file @
85858b19
...
@@ -60,5 +60,4 @@ Rails.application.configure do
...
@@ -60,5 +60,4 @@ Rails.application.configure do
# Force all access to the app over SSL, use Strict-Transport-Security,
# Force all access to the app over SSL, use Strict-Transport-Security,
# and use secure cookies.
# and use secure cookies.
config
.
force_ssl
=
true
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment