Sha256: de241ad25dc7af437c186dc72fa296175ca7858a00eed3dea73548402ebe095b

Contents?: true

Size: 1.32 KB

Versions: 38

Compression:

Stored size: 1.32 KB

Contents

##
# This file mounts each app in the Padrino project to a specified sub-uri.
# You can mount additional applications using any of these commands below:
#
#   Padrino.mount('blog').to('/blog')
#   Padrino.mount('blog', :app_class => 'BlogApp').to('/blog')
#   Padrino.mount('blog', :app_file =>  'path/to/blog/app.rb').to('/blog')
#
# You can also map apps to a specified host:
#
#   Padrino.mount('Admin').host('admin.example.org')
#   Padrino.mount('WebSite').host(/.*\.?example.org/)
#   Padrino.mount('Foo').to('/foo').host('bar.example.org')
#
# Note 1: Mounted apps (by default) should be placed into the project root at '/app_name'.
# Note 2: If you use the host matching remember to respect the order of the rules.
#
# By default, this file mounts the primary app which was generated with this project.
# However, the mounted app can be modified as needed:
#
#   Padrino.mount('AppName', :app_file => 'path/to/file', :app_class => 'BlogApp').to('/')
#

##
# Setup global project settings for your apps. These settings are inherited by every subapp. You can
# override these settings in the subapps as needed.
#
Padrino.configure_apps do
  # enable :sessions
  set :session_secret, '<%= SecureRandom.hex(32) %>'
  set :protection, :except => :path_traversal
  set :protect_from_csrf, true
end

# Mounts the core application for this project

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
padrino-gen-0.16.0.pre3 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.16.0.pre2 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.15.3 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.15.2 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.15.1 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.15.0 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.14.4 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.14.3 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.12.9 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.14.2 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.13.3.4 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.14.1.1 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.14.1 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.14.0.2 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.14.0.1 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.14.0 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.14.0.rc2 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.14.0.rc1 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.13.3.3 lib/padrino-gen/generators/project/config/apps.rb.tt
padrino-gen-0.13.3.2 lib/padrino-gen/generators/project/config/apps.rb.tt