2012-04-24 22:15:38 +04:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2012-05-06 21:24:46 +04:00
|
|
|
# import default settings value from src/default_settings.py
|
|
|
|
# you can refer to this file if you forgot what
|
|
|
|
# settings is for and what it is set to by default
|
2012-05-14 19:17:49 +04:00
|
|
|
# You probably do not want to alter this line
|
|
|
|
from zerobin.default_settings import *
|
2012-04-24 22:15:38 +04:00
|
|
|
|
2012-04-27 01:41:20 +04:00
|
|
|
# debug will get you error message and auto reload
|
|
|
|
# don't set this to True in production
|
2012-05-14 19:17:49 +04:00
|
|
|
DEBUG = True
|
|
|
|
|
|
|
|
# Should the application serve static files on it's own ?
|
|
|
|
# IF yes, set the absolute path to the static files.
|
|
|
|
# If no, set it to None
|
|
|
|
# In dev this is handy, in prod you probably want the HTTP servers
|
|
|
|
# to serve it, but it's OK for small traffic to set it to True in prod too.
|
|
|
|
STATIC_FILES_ROOT = os.path.join(ROOT_DIR, 'static')
|
2012-04-27 01:41:20 +04:00
|
|
|
|
|
|
|
# absolute path where the paste files should be store
|
|
|
|
# default in projectdirectory/static/content/
|
|
|
|
# use "/" even under Windows
|
2012-05-14 19:17:49 +04:00
|
|
|
PASTE_FILES_ROOT = os.path.join(ROOT_DIR, 'static', 'content')
|
|
|
|
|
|
|
|
# a tuple of absolute paths of directory where to look the template for
|
|
|
|
# the first one will be the first to be looked into
|
|
|
|
# if you want to override a template, create a new dir, write the
|
|
|
|
# template with the same name as the one you want to override in it
|
|
|
|
# then add the dir path at the top of this tuple
|
|
|
|
TEMPLATE_DIRS = (
|
|
|
|
os.path.join(ROOT_DIR, 'views'),
|
|
|
|
)
|
2012-05-01 16:21:21 +04:00
|
|
|
|
|
|
|
# Port and host the embeded python server should be using
|
2012-05-06 21:24:46 +04:00
|
|
|
# You can also specify them using the --host and --port script options
|
|
|
|
# which have priority on these settings
|
2012-05-14 19:17:49 +04:00
|
|
|
HOST = "0.0.0.0"
|
2012-05-12 12:33:01 +04:00
|
|
|
PORT = "8000"
|
2012-04-29 01:51:54 +04:00
|
|
|
|
|
|
|
# User and group the server should run as. Set to None if it should be the
|
2012-05-06 21:24:46 +04:00
|
|
|
# current user. Some OS don't support it and if so, it will be ignored.
|
2012-04-29 01:51:54 +04:00
|
|
|
USER = None
|
2012-04-29 22:10:04 +04:00
|
|
|
GROUP = None
|
|
|
|
|
2012-05-08 14:52:17 +04:00
|
|
|
# Names/links to insert in the menu bar.
|
|
|
|
# Any link with "mailto:" will be escaped to prevent spam
|
2020-08-26 13:58:10 +03:00
|
|
|
|
2012-05-08 14:52:17 +04:00
|
|
|
MENU = (
|
2020-08-26 13:58:10 +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"),
|
|
|
|
("Zerobin Pastebin", "https://www.0bin.net/"), # Thanks the authors :)
|
|
|
|
("How to buy Bitcoin?", "/buy_bitcoin"), # Thanks the authors :)
|
2012-05-08 14:52:17 +04:00
|
|
|
)
|
2012-05-07 12:33:55 +04:00
|
|
|
|
2013-03-03 20:27:39 +04:00
|
|
|
# limit size of pasted text in bytes. Be careful allowing too much size can slow down user's
|
2012-05-14 19:17:49 +04:00
|
|
|
# browser
|
|
|
|
MAX_SIZE = 1024 * 500
|
|
|
|
MAX_SIZE_KB = int(math.ceil(MAX_SIZE / 1024.0))
|
|
|
|
|