-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py.sample
80 lines (60 loc) · 1.88 KB
/
config.py.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
# SAMPLE CONFIGURATION FILE FOR QSTODE
#
# Please note: this file is a Python script.
#
# See http://qstode.readthedocs.org/en/latest/index.html to read more about
# configuration parameters.
# Run in DEBUG mode
DEBUG = False
# This must be kept SECRET, generated with:
# python -c 'import os; print "%r" % os.urandom(24)'
# or other means
SECRET_KEY = 'secret'
# Database URI (format: driver-name://username:password@address[:port]/db-name)
SQLALCHEMY_DATABASE_URI = "mysql://username:password@localhost/dbname"
# logging
# SYSLOG_SOCKET = '/dev/log'
# import logging
# LOGGING_LEVEL = logging.INFO
# Localization
BABEL_DEFAULT_LOCALE = "it"
BABEL_DEFAULT_TIMEZONE = "Europe/Rome"
# Mail configuration
SMTP_HOST = "localhost"
SMTP_PORT = 25
MAIL_FROM = "[email protected]"
# Enable anonymous access to all the public pages
# PUBLIC_ACCESS = True
# Number of Bookmarks listed on each page
# PER_PAGE = 10
# Number of recent Bookmarks listed in the public RSS feed
# FEED_NUM_ENTRIES = 15
# Number of tags listed in the Popular Tags list
# TAGLIST_ITEMS = 30
# Enable the related tags functions
# NOTE: this is currently half-broken when using MySQL without InnoDB.
# ENABLE_RELATED_TAGS = True
# the domain for the session cookie. If this is not set, the cookie will be
# valid for all subdomains of SERVER_NAME.
# SESSION_COOKIE_DOMAIN = None
# the name and port number of the server. Required for subdomain
# support (e.g.: 'myapp.dev:5000').
# SERVER_NAME = ""
# Extra templates directory
# EXTRA_TEMPLATES = [
# "/path/to/directory",
# ]
# Enable or disable anonymous user registration
ENABLE_USER_REGISTRATION = True
# Recaptcha, for user registration
ENABLE_RECAPTCHA = False
RECAPTCHA_USE_SSL = False
RECAPTCHA_PUBLIC_KEY = ''
RECAPTCHA_PRIVATE_KEY = ''
# google favicon service
USE_GOOGLE_FAVICON = True
# Redis
REDIS_HOST = 'localhost'
# REDIS_PORT = 6379
# REDIS_DB = 0
# REDIS_PASSWORD = ''