import datetime #################### # General config # #################### TMP = "./tmp/" TIMEZONE = +8 TZINFO = datetime.timezone(datetime.timedelta(hours=TIMEZONE)) #################### # Frontend config # #################### FRONTEND = "frontend/grpc/server.py" #################### # Backend config # #################### # debug mode DEBUG = False # worker ## work interval WORK_INTERVAL_MIN = 1*60 + 30 # 1.5 mins WORK_INTERVAL_MAX = 3*60 + 30 # 3.5 mins # api ## cache ACCINFO_CACHE = 5*60 # 5 mins - fetch IG account info RELOGIN_LIMIT = 10*60 # 10 mins - re-login limit # IG ACCOUNT_USERNAME = "" ACCOUNT_PASSWORD = "" # type define {mine:ext} FILE_MINE_TYPE = { "image/jpeg": "jpg", "image/pjpeg": "jfif", "image/png": "png", "image/heic": "heic", "image/heif": "heif", "image/webp": "webp", "video/mp4": "mp4", "video/quicktime": "mov", "video/hevc": "hevc", "image/gif": "gif" # convert gif to mp4 } #################### # Interface config # #################### INTERFACE = "interface/example.py" #################### # PictureMaker # #################### PICTURE_MAKER = "PictureMaker/default.py"