Sha256: d8094e1ae4a155538e0f87e15208c1447a9178338ccb64a5b646cd675dd32ab7
Contents?: true
Size: 1.96 KB
Versions: 5
Compression:
Stored size: 1.96 KB
Contents
Netfira::WebConnect::Rails.configure do |config| # This will be WebConnect's URI namespace. All requests with this # prefix will be routed to WebConnect, e.g. /webconnect/8/info config.uri_namespace = 'webconnect' # By default, WebConnect will use the host application's database. # Uncomment this section if you want to use a different database. # # config.db = { # adapter: 'sqlite3', # database: "#{Rails.root}/db/wc_#{Rails.env}.sqlite3" # } # Tables created by WebConnect will be prefixed with this string. # You can remove this option if WebConnect isn't sharing the host # application's database. config.db_table_prefix = 'wc_' # WebConnect uses Paperclip for file storage. The hash below will # be provided to Paperclip to determine where and how files are # stored. If you remove the option completely, files will not be # stored at all. # # WebConnect adds two additional interpolations for generating paths: # :shop_id The ID of the shop that owns the file # :model_type The type of file (plural), e.g. images, attachments # # See http://rdoc.info/gems/paperclip for specifics. # TODO: S3 file storage config.file_store = { path: ':rails_root/public/system/uploaded_files/shop_:shop_id/:model_type/:filename' } # This callback will be used to authenticate incoming requests. # Pass a block or proc that accepts two arguments (shop name and # password), and returns true/false for success/fail. # # Your handler may also return a string that clients should use as # a password in subsequent requests. # TODO: Real authentication556 config.on_authenticate do |shop_name, password| !shop_name.nil? && !password.nil? end # WebConnect can form sessions with clients to ease load on your # authenticator. To use WebConnect sessions, uncomment the line below, # and set a session lifetime. Assign `true` if you won't want your # sessions to expire. # # config.session_lifetime = 30.days end
Version data entries
5 entries across 5 versions & 1 rubygems