2020-08-13 15:36:42 +03:00
|
|
|
# Get error messages and auto reload.
|
|
|
|
# Don't set this to True in production
|
2020-08-19 12:58:10 +03:00
|
|
|
DEBUG = False
|
2012-05-06 21:24:46 +04:00
|
|
|
|
2020-08-13 16:54:50 +03:00
|
|
|
# Port and host for the embedded python server
|
2012-05-06 21:24:46 +04:00
|
|
|
HOST = "127.0.0.1"
|
2020-08-13 15:36:42 +03:00
|
|
|
PORT = "3255"
|
2012-05-06 21:24:46 +04:00
|
|
|
|
2020-08-13 15:36:42 +03:00
|
|
|
# Names/links to insert in the footer.
|
2020-08-13 16:54:50 +03:00
|
|
|
#
|
2012-05-08 14:52:17 +04:00
|
|
|
MENU = (
|
2020-08-13 16:54:50 +03:00
|
|
|
("Github", "https://github.com/Tygs/0bin"),
|
|
|
|
("Faq", "/faq/"), # You probably want to keep this
|
|
|
|
# Any link with "mailto:" will be escaped to limit spam, but displayed
|
|
|
|
# correctly to the user using JS.
|
|
|
|
("Contact", "mailto:your@email.com"),
|
2020-08-12 15:25:22 +03:00
|
|
|
("Zerobin Pastebin", "https://www.0bin.net/"), # Thanks the authors :)
|
2020-08-18 16:00:38 +03:00
|
|
|
("How to buy Bitcoin?", "/buy_bitcoin"), # Thanks the authors :)
|
2012-05-08 14:52:17 +04:00
|
|
|
)
|
|
|
|
|
2020-08-13 15:36:42 +03:00
|
|
|
# Size limit of the paste content in bytes. Be careful, allowing a size too big can
|
|
|
|
# slow down the user's browser
|
2020-08-19 12:58:10 +03:00
|
|
|
MAX_SIZE = 1024 * 1000
|
2013-04-29 22:17:37 +04:00
|
|
|
|
2020-08-13 16:54:50 +03:00
|
|
|
# Display a tiny counter for pastes created.
|
|
|
|
DISPLAY_COUNTER = True
|
|
|
|
# Refresh counter interval.
|
|
|
|
REFRESH_COUNTER = 60 # in seconds
|
|
|
|
|
2020-08-13 15:36:42 +03:00
|
|
|
# Length of the paste-id string in the url, int from 4 to 27 (length of sha1 digest)
|
2013-04-29 22:17:37 +04:00
|
|
|
# total number of unique pastes can be calculated as 2^(6*PASTE_ID_LENGTH)
|
|
|
|
# for PASTE_ID_LENGTH=8, for example, it's 2^(6*8) = 281 474 976 710 656
|
|
|
|
PASTE_ID_LENGTH = 8
|