-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.sample.py
43 lines (34 loc) · 1.45 KB
/
config.sample.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
42
43
class Config:
# Elasticsearch
T_ES_HOST = 'http://localhost:9200'
T_ES_INDEX = 'tweets-*,toots-*'
# Where to load media files
# direct: Media files are hotlinked from Twitter
# mirror: Media files are served from T_MEDIA_MIRRORS
# filesystem: Media files are served from T_MEDIA_FS_PATH
T_MEDIA_FROM = 'direct'
# You can also use mirror domains in case your Twitter account no longer
# exists. This is just simple string substitution
T_MEDIA_MIRRORS = {
'pbs.twimg.com': 'd1111111111.cloudfront.net/pbs.twimg.com',
'video.twimg.com': 'd1111111111.cloudfront.net/video.twimg.com',
}
# Directory path if loading images from filesystem
T_MEDIA_FS_PATH = './media'
# Uncomment to enable basic auth on search page
#T_SEARCH_BASIC_AUTH = {'username': 'foo', 'password': 'bar'}
# Uncomment to enable external Tweets support. If a Tweet is not found in
# the database, it will be fetched from Twitter API.
T_EXTERNAL_TWEETS = False
#T_TWITTER_KEY = 'consumer key'
#T_TWITTER_SECRET = 'consumer secret'
# Default user to show on index
#T_DEFAULT_USER = 'jack'
# For imported tweets that has minimal `user` dict, this can be used to
# inject additional keys.
T_USER_DICTS = {
'jack': {
'name': 'Jack Dorsey',
'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1661201415899951105/azNjKOSH_400x400.jpg',
}
}