mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 00:00:12 +01:00
Makes force_ssl configurable
This commit is contained in:
parent
a65ab48b9f
commit
047fb0acb1
2 changed files with 4 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ Rails.application.configure do
|
||||||
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
||||||
|
|
||||||
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
||||||
# config.force_ssl = true
|
config.force_ssl = SITE_CONFIG['force_ssl']
|
||||||
|
|
||||||
# Use the lowest log level to ensure availability of diagnostic information
|
# Use the lowest log level to ensure availability of diagnostic information
|
||||||
# when problems arise.
|
# when problems arise.
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,9 @@ secure_cookies: false
|
||||||
#
|
#
|
||||||
secret_token: "change-me"
|
secret_token: "change-me"
|
||||||
|
|
||||||
|
# Set to true when your application is running with https
|
||||||
|
force_ssl: false
|
||||||
|
|
||||||
# Configure how static assets (images, stylesheets, etc.) will be served.
|
# Configure how static assets (images, stylesheets, etc.) will be served.
|
||||||
# The best practice is to have a proxying web server such as Apache or Nginx
|
# The best practice is to have a proxying web server such as Apache or Nginx
|
||||||
# serve static assets (images, stylesheets, javascript) for you. Change
|
# serve static assets (images, stylesheets, javascript) for you. Change
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue