-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.yaml.sample
103 lines (83 loc) · 2.75 KB
/
config.yaml.sample
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# _ _ _ _ _ _ _ _
# / \ / \ / \ / \ / \ / \ / \ / \
# ( n | e | w | s | l | y | n | x )
# \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Super User / Org.
super_user: admin
super_user_email: changeme@example.com
super_user_password: admin
super_user_apikey: mj
super_user_org: 'admin'
super_user_org_timezone: UTC
https: false # change this to https for production
# Secret keys
secret_key: changeme1
app_secret_key: changeme2
# API information for the app to know
api_url: http://localhost:5000
api_version: v1
api_dns: http://changeme.com:5000
# s3 bucket for db backups
## The bucket name must already exist or be a unique name since S3 shares a namespace across all buckets, otherwise automation will fail.
s3_bucket: newslynx-myorgname
# Backups will be put in the `backups/<S3-backup-group-name>` so that you can send multiple instances backups to the same S3 bucket
s3_backup_group: group-1
# Database curations
sqlalchemy_pool_size: 1000
sqlalchemy_pool_max_overflow: 100
sqlalchemy_pool_timeout: 60
sqlalchemy_echo: false
# TASK QUEUE
redis_url: "redis://localhost:6379/0"
# url cache
url_cache_prefix: "newslynx-url-cache"
url_cache_ttl: 1209600
url_cache_pool_size: 5
# extraction cache
extract_cache_prefix: "newslynx-extract-cache"
extract_cache_ttl: 259200 # 3 days
# thumbnail settings
thumbnail_cache_prefix: "newslynx-thumbnail-cache"
thumbnail_cache_ttl: 1209600 # 14 days
thumbnail_size: [150, 150]
thumbnail_default_format: "png"
# comparison cache
comparison_cache_prefix: "newslynx-comparison-cache"
comparison_cache_ttl: 86400 # 1 day
comparison_percentiles: [2.5, 5.0, 10.0, 25.0, 75.0, 90.0, 95.0, 97.5]
# merlynne kwargs prefix
merlynne_kwargs_prefix: "newslynx-merlynne-kwargs"
merlynne_kwargs_ttl: 60
merlynne_results_ttl: 60
# scheduler
scheduler_refresh_interval: 45
scheduler_reset_pause_range: [20, 200]
# browser
network_user_agent: "mozilla/5.0 (macintosh; intel mac os x 10_10; rv:33.0) gecko/20100101 firefox/33.0"
network_timeout: 15
network_wait: 0.8
network_backoff: 2
network_max_retries: 2
# # Twitter
# twitter_api_key: dsfadfad
# twitter_api_secret: 3824-3482-341234
# # Google Analytics
# google_analytics_client_id: sdfasdfsafd
# google_analytics_client_secret: o34823-4-23234
# # Facebook
# facebook_app_id: 24123413412
# facebook_app_secret: lajd38opru2j
# Reddit
reddit_user_agent: Newslynx (http://newslynx.org)
# notify (All optional)
notify_methods:
- slack
- email
notify_email_recipients:
- yourmeailaddress@newslynx.org
notify_email_subject_prefix: "[NewsLynx Errors]"
notify_slack_webhook: https://hooks.slack.com/services/asd/fdsaf/fdsafd # see: https://api.slack.com/incoming-webhooks
notify_slack_channel: "#notifications"
notify_slack_username: merlynne
notify_slack_emoji: ":-1:"