-
Notifications
You must be signed in to change notification settings - Fork 1
/
config_more.py
41 lines (30 loc) · 1.34 KB
/
config_more.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import os
from config import DOMAIN_ID
basedir = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
CSRF_ENABLED = True # cross-site request forgery prevention for Flask-WTF
UPLOAD_URL = '/games-dl/'
IMAGE_UPLOAD_URL = '/media/screenshot/'
IMAGE_UPLOAD_URL_SMALL = IMAGE_UPLOAD_URL + 'small/'
IMAGE_UPLOAD_URL_MEDIUM = IMAGE_UPLOAD_URL + 'medium/'
IMAGE_UPLOAD_URL_ORIGINAL = IMAGE_UPLOAD_URL + 'original/'
IMAGE_SIZE_NORMAL = 1024
IMAGE_SIZE_SMALL = 240
IMAGE_SIZE_MEDIUM = 320
#ALLOWED_EXTENSIONS = set(['exe', 'zip', 'rar'])
ALLOWED_EXTENSIONS_IMG = set(['png', 'jpg', 'jpeg', 'bmp'])
#MAX_CONTENT_LENGTH = 16 * 1024 * 1024
OPENID_PROVIDERS = [
{ 'name': 'Google', 'url': 'https://www.google.com/accounts/o8/id' },
{ 'name': 'Yahoo', 'url': 'https://me.yahoo.com' },
{ 'name': 'AOL', 'url': 'http://openid.aol.com/<username>' },
{ 'name': 'Flickr', 'url': 'http://www.flickr.com/<username>' },
{ 'name': 'MyOpenID', 'url': 'https://www.myopenid.com' }]
# domain settings
START_YEARS=[0,2001,2005]
DOMAIN_URLS=['','http://www.renai.us/', 'http://games.renpy.org/']
DOMAIN_NAMES=['','renai.us', 'games.renpy.org']
DOMAIN_TITLES=["","Ren'Ai Archive", "Ren'Py Games List"]
DOMAIN_NAME=DOMAIN_NAMES[DOMAIN_ID]
DOMAIN_TITLE=DOMAIN_TITLES[DOMAIN_ID]
START_YEAR=START_YEARS[DOMAIN_ID]