-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debug: disable Locomotive & Dragonfly
- Loading branch information
Showing
4 changed files
with
111 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,76 @@ | ||
Locomotive.configure do |config| | ||
|
||
# enable it if you want Locomotive to render the site of the Rails application embedding the engine | ||
if Rails.env.production? | ||
config.host = 'beta.locomotive.works' | ||
end | ||
|
||
# list of forbidden handles for a site because there are in conflicts with internal resources. | ||
# config.reserved_site_handles = %w(sites my_account password sign_in sign_out) | ||
|
||
# list of domains which can't be used by any Locomotive sites | ||
# config.reserved_domains = [] | ||
|
||
# configure how many items we display in sub menu in the "Models" section. | ||
config.ui = { | ||
per_page: 10 | ||
} | ||
|
||
# default locale (for now, only en, de, fr, pl, pt, pt-BR, it, nl, nb, ja, cs, bg, sk, sv and uk are supported) | ||
config.default_locale = :en | ||
|
||
# locales allowed for the back-office UI | ||
config.locales = [:en, :fr, :de, :"zh-CN", :cs, :el, :lt, :"pt-BR", :nl, :ru] | ||
|
||
# available locales suggested to "localize" a site. You will have to pick up at least one among that list. | ||
config.site_locales = %w{en de fr es} # pl pt pt-BR it nl nb es ru ja cs bg sk uk} | ||
|
||
# tell if logs of the Engine (back-office) are enabled. Useful for debug purpose. | ||
config.enable_logs = true | ||
|
||
# setup the logger for Steam (rendering) | ||
# config.steam_log_file = ENV['LOCOMOTIVE_STEAM_LOG'] || Rails.root.join('log', 'steam.log') | ||
config.steam_log_level = ::Logger::INFO | ||
# config.steam_log_level = ::Logger::INFO | ||
|
||
# the API authentication requires to developer to pass 2 params in the header | ||
# of the request: X-Locomotive-Account-Email and X-Locomotive-Token. | ||
# However, to keep backward compatability with v2.x versions, you can use | ||
# the "token" request param instead although it is considered unsafe. | ||
config.unsafe_token_authentication = true | ||
|
||
# Uncomment this line to force Locomotive to redirect all requests in the | ||
# back-office to https in production. | ||
config.enable_admin_ssl = Rails.env.production? | ||
|
||
# Configure the e-mail address which will be shown in the DeviseMailer, NotificationMailer, ...etc | ||
# if you do not put the domain name in the email, Locomotive will take the default domain name depending | ||
# on your deployment target (server, Heroku, Bushido, ...etc) | ||
# | ||
# Ex: | ||
# config.mailer_sender = 'support' | ||
config.mailer_sender = '[email protected]' | ||
|
||
# Add the checksum of a theme asset at the end of its path to allow public caching. | ||
# By default, it's disabled. | ||
# | ||
# config.theme_assets_checksum = true | ||
|
||
# Rack-cache settings, mainly used for the inline resizing image module. Default options: | ||
# config.rack_cache = { | ||
# verbose: true, | ||
# metastore: URI.encode("file:#{Rails.root}/tmp/dragonfly/cache/meta"), # URI encoded in case of spaces | ||
# entitystore: URI.encode("file:#{Rails.root}/tmp/dragonfly/cache/body") | ||
# } | ||
# If you do want to disable it for good, just use the following syntax | ||
# config.rack_cache = false | ||
# | ||
# Note: by default, rack/cache is disabled in the Heroku platform | ||
|
||
# Dragonfly within Steam uses it to generate the protective SHA | ||
config.steam_image_resizer_secret = ENV['DRAGONFLY_SECRET_KEY'] | ||
|
||
# Indicate whether you want to allow users to register with the site. If set | ||
# to false the registration page will not be shown. (Default: true) | ||
config.enable_registration = false | ||
end | ||
# Locomotive.configure do |config| | ||
|
||
# # enable it if you want Locomotive to render the site of the Rails application embedding the engine | ||
# if Rails.env.production? | ||
# config.host = 'beta.locomotive.works' | ||
# end | ||
|
||
# # list of forbidden handles for a site because there are in conflicts with internal resources. | ||
# # config.reserved_site_handles = %w(sites my_account password sign_in sign_out) | ||
|
||
# # list of domains which can't be used by any Locomotive sites | ||
# # config.reserved_domains = [] | ||
|
||
# # configure how many items we display in sub menu in the "Models" section. | ||
# config.ui = { | ||
# per_page: 10 | ||
# } | ||
|
||
# # default locale (for now, only en, de, fr, pl, pt, pt-BR, it, nl, nb, ja, cs, bg, sk, sv and uk are supported) | ||
# config.default_locale = :en | ||
|
||
# # locales allowed for the back-office UI | ||
# config.locales = [:en, :fr, :de, :"zh-CN", :cs, :el, :lt, :"pt-BR", :nl, :ru] | ||
|
||
# # available locales suggested to "localize" a site. You will have to pick up at least one among that list. | ||
# config.site_locales = %w{en de fr es} # pl pt pt-BR it nl nb es ru ja cs bg sk uk} | ||
|
||
# # tell if logs of the Engine (back-office) are enabled. Useful for debug purpose. | ||
# config.enable_logs = true | ||
|
||
# # setup the logger for Steam (rendering) | ||
# # config.steam_log_file = ENV['LOCOMOTIVE_STEAM_LOG'] || Rails.root.join('log', 'steam.log') | ||
# config.steam_log_level = ::Logger::INFO | ||
# # config.steam_log_level = ::Logger::INFO | ||
|
||
# # the API authentication requires to developer to pass 2 params in the header | ||
# # of the request: X-Locomotive-Account-Email and X-Locomotive-Token. | ||
# # However, to keep backward compatability with v2.x versions, you can use | ||
# # the "token" request param instead although it is considered unsafe. | ||
# config.unsafe_token_authentication = true | ||
|
||
# # Uncomment this line to force Locomotive to redirect all requests in the | ||
# # back-office to https in production. | ||
# config.enable_admin_ssl = Rails.env.production? | ||
|
||
# # Configure the e-mail address which will be shown in the DeviseMailer, NotificationMailer, ...etc | ||
# # if you do not put the domain name in the email, Locomotive will take the default domain name depending | ||
# # on your deployment target (server, Heroku, Bushido, ...etc) | ||
# # | ||
# # Ex: | ||
# # config.mailer_sender = 'support' | ||
# config.mailer_sender = '[email protected]' | ||
|
||
# # Add the checksum of a theme asset at the end of its path to allow public caching. | ||
# # By default, it's disabled. | ||
# # | ||
# # config.theme_assets_checksum = true | ||
|
||
# # Rack-cache settings, mainly used for the inline resizing image module. Default options: | ||
# # config.rack_cache = { | ||
# # verbose: true, | ||
# # metastore: URI.encode("file:#{Rails.root}/tmp/dragonfly/cache/meta"), # URI encoded in case of spaces | ||
# # entitystore: URI.encode("file:#{Rails.root}/tmp/dragonfly/cache/body") | ||
# # } | ||
# # If you do want to disable it for good, just use the following syntax | ||
# # config.rack_cache = false | ||
# # | ||
# # Note: by default, rack/cache is disabled in the Heroku platform | ||
|
||
# # Dragonfly within Steam uses it to generate the protective SHA | ||
# config.steam_image_resizer_secret = ENV['DRAGONFLY_SECRET_KEY'] | ||
|
||
# # Indicate whether you want to allow users to register with the site. If set | ||
# # to false the registration page will not be shown. (Default: true) | ||
# config.enable_registration = false | ||
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters