############################################################################# # Platform Configuration # # Default settings for all environments # # You can overload any feature for any environment by changing the # environment settings at the bottom of the file. # # Alternatively, you can overload any of the methods of Platform::Config ############################################################################# defaults: &defaults enable_platform: true enable_app_directory: true enable_embedded_applications: true enable_mobile_applications: true enable_developer_agreement: false enable_app_statistics: false enable_api_verification: false api_explorer_app_id: 1 # make sure to create an application for the test tool ############################################################################# # Platform best run with caching enabled # You can configure cache adapter and store parameters by providing the # the name of your class implementation and the store settings. For example: # # # cache_adapter: ActiveSupport::Cache # cache_store: memory_store # cache_store: file_store # cache_store: drb_store # cache_store: [mem_cache_store, 'localhost:11211'] # # Alternatively you can provide your own implementation of cache by setting # the adapter to your own class. ############################################################################# caching: enabled: false adapter: "ActiveSupport::Cache" cache_store: ["mem_cache_store", "localhost:11211"] version: 1 # you can change the version to invalidate the cache ############################################################################# # By default, Platform will use its own logger. If you set it to false, # it will use default Rails logger. ############################################################################# logger: enabled: true log_path: log/platform.log # location of the log file ############################################################################# # Site Integration Settings ############################################################################# site_info: title: "Sample Application" logo_url: "/assets/platform/platform5.png" base_url: "localhost:3000" contact_email: platform@geni.com default_url: "/home" login_url: "/login" logout_url: "/login/out" platform_layout: application admin_layout: admin oauth_web_layout: minimal oauth_popup_layout: popup oauth_mobile_layout: popup oauth_desktop_layout: popup system_user_id: 10 media_directory: "/media/p1" user_info: current_user_method: current_user logout_method: "logout!" class_name: User methods: id: id name: name email: "email" link: link mugshot: mugshot admin: admin? guest: guest? locale: language media_info: enabled: false # use internal implementation class_name: "Platform::Media::Image" write_method: "write" logo_url_method: "url" icon_url_method: "url" ############################################################################# # API Settings ############################################################################# API: enabled: true base_url: "localhost:3000/api" scheme: "http" # can also provide an array ["http", "https"] config_path: "config/platform/api" proxies_path: "lib/platform/api" logging_enabled: true admin_email: scott.steadman@geni.com allow_public: true cookies_enabled: true max_models: 50 request_limit: 3 request_window: 1 token_lifetime: 86400 supported_versions: ['1', '0'] default_version: '1' explorer_groups: '0': [['user'], ['bookmark']] '1': [['user'], ['bookmark']] user: create_enabled: true ############################################################################# # Environment Settings # You can overload any feature defined in the defaults for any environment ############################################################################# development: <<: *defaults test: <<: *defaults qa: <<: *defaults stage: <<: *defaults production: <<: *defaults sandbox: <<: *defaults