<commit_before>ELASTICSEARCH_HOSTS = [{'host': 'localhost', 'port': 9200}]    # es7 upgrade machine
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"

GOOGLE_ANALTYICS_LOG_DIR = DATA_ROOT + 'ga_logs'

# 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-index-ipt-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
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" : CRON_NEVER,
    "harvest": {"month": "*", "day": "*", "day_of_week": "*", "hour": "5", "minute": "30"}
}

# =======================
# Account settings
PUBLIC_REGISTER = True
LOGIN_VIA_ACCOUNT_ID = True<commit_msg>update config<commit_after>ELASTICSEARCH_HOSTS = [{'host': 'localhost', 'port': 9200}]    # es7 upgrade machine
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"

GOOGLE_ANALTYICS_LOG_DIR = DATA_ROOT + 'ga_logs'

# 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-index-ipt-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
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" : CRON_NEVER,
    "harvest": {"month": "*", "day": "*", "day_of_week": "*", "hour": "5", "minute": "30"},
    "anon_export": CRON_NEVER,
}

# =======================
# Account settings
PUBLIC_REGISTER = True
LOGIN_VIA_ACCOUNT_ID = True
{'fraction_non_alphanumeric': 0.17279246974450918, 'fraction_numerical': 0.012550425818018825, 'mean_word_length': 5.951713395638629, 'pattern_counts': {'":': 71, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1384064', 'n_tokens_mistral': 1719, 'n_tokens_neox': 1676, 'n_words': 354}