Configuration

robdiciuccio edited this page May 31, 2011 · 3 revisions

The default configuration settings are located in linktv_platform/config/linktv_platform.yml. It is not recommended that you modify this file, but instead override these default settings in your own application.yml file.

Configuration options are specified by environment, with a special 'all' section that applies to all environments.

At a minimum, you must obtain and specify API keys for Zemanta and any other related content APIs you plan on using in your application.

Example application.yml file

This file should reside in your application's config/ directory.

all:
  apis:
    zemanta:
      api_key: XXXXXXXXXXXXXXXXXXXXX
    daylife:
      accesskey: XXXXXXXXXXXXXXXXXXXXX
      secretkey: XXXXXXXXXXXXXXXXXXXXX
    truveo:
      appid: XXXXXXXXXXXXXXXXXXXXX
      sharedsecret: XXXXXXXXXXXXXXXXXXXXX

  video:
    admin_player:
      # Override the remote FlowPlayer URLs with a local installation
      flowplayer_swf: /assets/flowplayer/flowplayer-3.2.7.swf
      flowplayer_js: /assets/flowplayer/flowplayer-3.2.6.min.js
      flowplayer_rtmp: /assets/flowplayer/flowplayer.rtmp-3.2.3.swf

  thumbnails:
    # custom "not found" image
    not_available_path: /images/not-found.jpg

development:
  site:
    name: My Site [development]
    host: localhost:3000
    referrer: http://localhost:3000

production:
  site:
    name: My Site
    host: production.mysite.org
    referrer: http://production.mysite.org

  video_host:
    stream_host: rtmp://xxxxxxx.cloudfront.net/cfx/st
    download_host: http://xxxxxxxxxx.cloudfront.net

  video_files:
    cdn_enable: true
    s3_access_key: XXXXXXXXXXXXXXXXXXXXX
    s3_secret_key: XXXXXXXXXXXXXXXXXXXXX
    s3_bucket: mysite-production

  google_analytics:
    account_id: UA-XXXXXX-X