X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?p=living-lab-site.git;a=blobdiff_plain;f=cis%2Fconfig.py;fp=cis%2Fconfig.py;h=c68d05c6a7a9b4b292abad6624d6ef8d66362c28;hp=868253a3230fc5f3ad690713b77747ed5864ed08;hb=e487ab3d510e231706a1c0973973496beb25d2ff;hpb=007060953ce46eb7da637ee5fb6eb44c5812d74f diff --git a/cis/config.py b/cis/config.py index 868253a..c68d05c 100644 --- a/cis/config.py +++ b/cis/config.py @@ -1,10 +1,18 @@ #!/usr/bin/env python +import logger + # Make here all necessary imports required for API classes. from api import avhandling from api import file_transfer +# === GENERAL CONFIGURATIONS === +LOG_LEVEL = logger.LOG_LEVEL_DEBUG +SECURITY = False +START_DOWNLOADS_INTERVAL = 24 * 3600.0 # Once a day + + # === FILE TRANSFER CONFIGURATIONS === # Path from the Web Server where the raw input video file is stored. WS_UPLOAD_PATH = 'tmp/data/upload' @@ -15,13 +23,15 @@ WS_TORRENTS_PATH = 'tmp/data/torrents' WS_THUMBS_PATH = 'tmp/data/thumbs' -SECURITY = False - - # === BITTORRENT CONFIGURATIONS === #BT_TRACKER = "http://p2p-next-10.grid.pub.ro:6969/announce" BT_TRACKER = 'http://localhost:6969/announce' -CIS_TORRENTS_PATH = 'tmp/torrents' + + +RAW_VIDEOS_PATH = 'tmp/raw' +MEDIA_PATH = 'tmp/media' +THUMBS_PATH = 'tmp/thumbs' +TORRENTS_PATH = 'tmp/torrents' # In a distributed file system for multi-CIS # === EXTERNAL PROGRAMS API CLASSES ===