--- a/sbin/sync/config.py.tmpl Thu Nov 29 18:24:48 2012 +0100
+++ b/sbin/sync/config.py.tmpl Thu Nov 29 18:59:30 2012 +0100
@@ -44,29 +44,29 @@
}
env.web_relaunch_cmd = "supervisorctl restart platform"
-env.base_url = "/"
-env.web_url = "http://ldt.iri.centrepompidou.fr"
-env.stream_url = "rtmp://media.iri.centrepompidou.fr/ddc_player/"
-
-env.stream_src_prefix = ""
-env.ffmpeg_path = "/usr/bin/ffmpeg"
-env.db_engine = 'django.db.backends.postgresql_psycopg2'
-env.db_name = 'platform'
-env.db_user = 'iriuser'
-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.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="
+ },
+}
-env.google_analytics_code = ""
-
-env.email_use_tls = True
-env.email_host = ""
-env.email_host_user = ""
-env.email_host_user = ""
-env.email_port = ""
-
-env.forbidden_stream_url = "rtmp://media.iri.centrepompidou.fr/ddc_player/mp4:video/forbidden_stream.mp4?old_path="
-