sbin/sync/config.py.tmpl
author cavaliet
Fri, 03 Jan 2014 17:42:15 +0100
changeset 164 96e31428291b
parent 110 7da60a0dd2bb
child 248 249a7c73e0a1
permissions -rw-r--r--
Added tag V02.11.19 for changeset 0256ad138a76

from fabric.api import env
from random import choice

env.hosts = ['iri@web.iri.centrepompidou.fr']

env.web_group = 'www-data'
env.folders = ['log', 'static/media']

env.repos = {
    'ldt': {'repo':"/Users/ymh/dev/workspace/platform", 'src_root':'src/ldt'},
    'web': {'repo':"/Users/ymh/dev/workspace/platform_web", 'src_root':'src'},
    'hashcut': {'repo':"/Users/ymh/dev/workspace/hashcut", 'src_root':'src'},
    'metadatacomposer': {'repo':"/Users/ymh/dev/workspace/metadatacomposer", 'src_root':'src'},
}
env.base_export_path = "~/tmp"
env.export_prefix = "platform"

env.remote_path = {
    'web':"/iridata/www/ldt/",
    'src':"/Users/ymh/dev/tmp/testfab/src",
    'virtualenv':"/iridata/virtualenv/ldt",
    'build_export':"/tmp",
    'venv_export':"/iridata/users/iri/tmp",
}

env.platform_web_module = "ldtplatform"
env.remote_baseline_venv = "/iridata/virtualenv/baseline2.7"

env.rsync_filters = {
    'src' : [
        "P .htpasswd",
        "P .htaccess",
        "P ldtplatform/config.py",
        "P ldtplatform/modwsgi.wsgi",
    ],
    'web': [
        "+ core",
        "P .htpasswd",
        "P .htaccess",
        "P robots.txt",
        "P env/***",
        "P log/***",
        "P index/***",
        "P static/media/***",
        "P crossdomain.xml",
    ],
    'venv': [
        "+ core",
    ]
}
env.web_relaunch_cmd = "supervisorctl restart platform"


env.config = {
    'web': {
        'base_url': "/",
        'web_url': 'http://ldt.iri.centrepompidou.fr',
        'stream_url': "rtmp://media.iri.centrepompidou.fr/ddc_player/",
        'stream_src_prefix': "",
        'ffmpeg_path' : "/usr/bin/ffmpeg",
        'db_engine':'postgresql_psycopg2',
        'db_name':'platform',
        'db_user': 'iriuser',
        'db_password': '',
        'db_host': 'sql.iri.centrepompidou.fr',
        'db_port': 5432,
        'log_file' : env.remote_path['web'] + '/log/log.txt',
        'index_path' : 'env.remote_path['web'] + '/index/',
        'google_analytics_code' : "",
        'email_use_tls' : True,
        'email_host' : "",
        'email_host_user' : "",
        'email_host_user' : "",
        'email_port' : 0,
        'forbidden_stream_url' : "rtmp://media.iri.centrepompidou.fr/ddc_player/mp4:video/forbidden_stream.mp4?old_path=",
        'secret_key' : ''.join([choice('abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)') for i in range(50)]),         
        'audio_record_url' : "rtmp://server.url/app_name",
    },
}