-
Notifications
You must be signed in to change notification settings - Fork 17
/
test.cfg
92 lines (72 loc) · 3.44 KB
/
test.cfg
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
ELASTICSEARCH_HOSTS = [{'host': 'localhost', 'port': 9200}]
INDEX_PER_TYPE_SUBSTITUTE = '_doc'
APP_MACHINES_INTERNAL_IPS = ["localhost:5050"]
# The app is served via nginx / cloudflare - they handle SSL
SSL = False
DEBUG = True
PROXIED = True
NO_QUERY = ['account', 'journal', 'article', 'editor_group', 'suggestion', 'upload', 'provenance']
# Prevent sending emails containing each exception (a portality feature)
SUPPRESS_ERROR_EMAILS = True
# When running the app directly, and e.g. in scripts (gunicorn has its own port config)
PORT = 5004
READ_ONLY_MODE=False
SCRIPTS_READ_ONLY_MODE=False
# Appdata directory
DATA_ROOT="/home/cloo/appdata/doaj/"
UPLOAD_DIR=DATA_ROOT + "upload"
FAILED_ARTICLE_DIR=DATA_ROOT + "failed_articles"
CACHE_DIR=DATA_ROOT + "cache"
ARTICLE_HISTORY_DIR=DATA_ROOT + "history/article"
JOURNAL_HISTORY_DIR=DATA_ROOT + "history/journal"
# Anonymous data exports to local disk
STORE_IMPL = "portality.store.StoreLocal"
STORE_LOCAL_EXPOSE = True
#STORE_IMPL = "portality.store.StoreS3"
STORE_LOCAL_DIR = DATA_ROOT + "local_store/main"
STORE_TMP_DIR = DATA_ROOT + "local_store/tmp"
ELASTIC_SEARCH_SNAPSHOT_REPOSITORY = 'doaj-test-es-backups'
# Crontab for never running a job - February 31st
CRON_NEVER = {"month": "2", "day": "31", "day_of_week": "*", "hour": "*", "minute": "*"}
# The test server runs fewer huey tasks
# TODO: remove PDD, request_backup and anon_export on test server
HUEY_SCHEDULE = {
"sitemap": {"month": "*", "day": "*", "day_of_week": "*", "hour": "8", "minute": "0"},
"reporting": CRON_NEVER,
"journal_csv": {"month": "*", "day": "*", "day_of_week": "*", "hour": "*", "minute": "35"},
"read_news": {"month": "*", "day": "*", "day_of_week": "*", "hour": "*", "minute": "30"},
"article_cleanup_sync": CRON_NEVER,
"async_workflow_notifications": CRON_NEVER,
"request_es_backup": CRON_NEVER,
"check_latest_es_backup": CRON_NEVER,
"prune_es_backups": CRON_NEVER,
"public_data_dump" : {"month": "*", "day": "*", "day_of_week": "6", "hour": "12", "minute": "0"}, # CRON_NEVER,
"harvest": {"month": "*", "day": "*", "day_of_week": "*", "hour": "5", "minute": "30"},
"anon_export": {"month": "*", "day": "*", "day_of_week": "1", "hour": "5", "minute": "30"}, # CRON_NEVER,
"old_data_cleanup": {"month": "*", "day": "*", "day_of_week": "3", "hour": "12", "minute": "0"},
"monitor_bgjobs": {"month": "*", "day": "*/6", "day_of_week": "*", "hour": "10", "minute": "0"},
"find_discontinued_soon": {"month": "*", "day": "*", "day_of_week": "*", "hour": "0", "minute": "3"},
"datalog_journal_added_update": {"month": "*", "day": "*", "day_of_week": "*", "hour": "*", "minute": "*/30"},
}
# =======================
# Account settings
PUBLIC_REGISTER = True
LOGIN_VIA_ACCOUNT_ID = True
# 2022-12-09 enable the shorcircuit handler until we can fix kafka
EVENT_SEND_FUNCTION = "portality.events.shortcircuit.send_event"
# No plausible on test
PLAUSIBLE_URL = None
# Testdrive enabled
TESTDRIVE_ENABLED = True
# =======================
# Selenium test settings
#SELENIUM_REMOTE_URL = 'http://localhost:4444/wd/hub'
#SELENIUM_DOAJ_HOST = '172.17.0.1'
SELENIUM_REMOTE_URL = ''
SELENIUM_DOAJ_HOST = '127.0.0.1'
##################################################
# Autocheck Resource configurations
# Should we autocheck incoming applications and update requests issue #3933
AUTOCHECK_INCOMING = True
AUTOCHECK_RESOURCE_ISSN_ORG_TIMEOUT = 10
AUTOCHECK_RESOURCE_ISSN_ORG_THROTTLE = 1 # seconds between requests