From 05713892f75770a619336201ff43e2db46583e8f Mon Sep 17 00:00:00 2001 From: TheAMM Date: Sun, 28 May 2017 02:15:39 +0300 Subject: [PATCH] Update config.example.py: remove TABLE_PREFIX, enable stat display by default --- config.example.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config.example.py b/config.example.py index 3b07da0..aa50cd8 100644 --- a/config.example.py +++ b/config.example.py @@ -7,7 +7,7 @@ USE_EMAIL_VERIFICATION = False USE_MYSQL = True # Enable this once stat integration is done -ENABLE_SHOW_STATS = False +ENABLE_SHOW_STATS = True BASE_DIR = os.path.abspath(os.path.dirname(__file__)) if USE_MYSQL: @@ -21,7 +21,6 @@ SECRET_KEY = '***' # Prefix for running multiple sites, user table will not be prefixed. SITE_FLAVOR = 'nyaa' # 'nyaa' or 'sukebei' -TABLE_PREFIX = SITE_FLAVOR + '_' # for recaptcha and email verification: # keys for localhost. Change as appropriate when actual domain is registered. @@ -33,16 +32,16 @@ MAIL_FROM_ADDRESS = '***' SMTP_USERNAME = '***' SMTP_PASSWORD = '***' -# What the site identifies itself as. +# What the site identifies itself as. This affects templates, not database stuff. SITE_NAME = 'Nyaa' # The maximum number of files a torrent can contain # until the site says "Too many files to display." MAX_FILES_VIEW = 1000 -# """ +# # Setting to make sure main announce url is present in torrent -# """ +# ENFORCE_MAIN_ANNOUNCE_URL = False MAIN_ANNOUNCE_URL = '' @@ -51,10 +50,11 @@ BACKUP_TORRENT_FOLDER = 'torrents' # # Search Options # -# Max ES search results, do not set over 10000 RESULTS_PER_PAGE = 75 +# See README.MD on Elasticsearch setup USE_ELASTIC_SEARCH = False ENABLE_ELASTIC_SEARCH_HIGHLIGHT = False +# Max ES search results, do not set over 10000 ES_MAX_SEARCH_RESULT = 1000 ES_INDEX_NAME = SITE_FLAVOR # we create indicies named nyaa or sukebei \ No newline at end of file