from fabric.api import env

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

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

env.base_export_path = "~/tmp"
env.export_prefix = "platform"
env.remote_web_path = "/iridata/www/ldt/"
env.platform_web_module = "ldtplatform"
env.remote_ldt_base_path = "/tmp"
env.remote_virtualenv_path = "/iridata/virtualenv/platform"
env.remote_venv_export_path = "/tmp" 
env.remote_baseline_venv = "/iridata/virtualenv/baseline2.7"
env.web_rsync_filters = [
    "+ core",
    "P .htpasswd",
    "P .htaccess",
    "P ldtplatform/.htaccess",
    "P ldtplatform/config.py",
    "P ldtplatform/modwsgi.wsgi",
    "P robots.txt",
    "P env/***",
    "P log/***",
    "P index/***",
    "P static/media/***",
    "P crossdomain.xml",
]
env.venv_rsync_filters = [
    "+ core",
]
env.web_relaunch_cmd = "supervisorctl restart platform"

# env variables for config file
 
env.base_url = "/tralalere/"
env.web_url = "http://exp.iri.centrepompidou.fr"
env.stream_url = "rtmp://media.iri.centrepompidou.fr/ddc_player/"

env.stream_src_prefix = ""
env.ffmpeg_path = ""

env.db_engine = 'django.db.backends.postgresql_psycopg2'
env.db_name = 'tralalere'
env.db_user = 'iri'
env.db_password = ''
env.db_host = 'sql.iri.centrepompidou.fr'
env.db_port = 5432

env.log_file = env.remote_web_path + '/log/log.txt'
env.index_path = env.remote_web_path + '/index/'

env.google_analytics_code = ""

env.email_use_tls = True
env.email_host = ""
env.email_host_user = ""
env.email_host_user = ""
env.email_port = ""