mirror of https://github.com/Cesura/pastey.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
925 B
37 lines
925 B
4 years ago
|
# Data directory
|
||
|
data_directory = "./data"
|
||
|
|
||
|
# Listen address
|
||
|
listen_address = "0.0.0.0"
|
||
|
|
||
|
# Listen port
|
||
|
listen_port = 5000
|
||
|
|
||
|
# Use whitelisting
|
||
|
# Whitelisted IPs can view recent pastes on the home page, as well as delete pastes
|
||
|
# For limiting pasting to whitelisted users, enable the "restrict_pasting" option below
|
||
|
use_whitelist = True
|
||
|
|
||
|
# Whitelist CIDR
|
||
|
whitelist_cidr = ['127.0.0.1/32', '10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16']
|
||
|
|
||
|
# Blacklist CIDR
|
||
|
blacklist_cidr = []
|
||
|
|
||
|
# Restrict pasting functionality to whitelisted IPs
|
||
|
restrict_pasting = False
|
||
|
|
||
|
# Restrict raw pasting to whitelisted IPs
|
||
|
restrict_raw_pasting = True
|
||
|
|
||
|
# Rate limit for pasting (ignored for whitelisted users)
|
||
|
rate_limit = "5/hour"
|
||
|
|
||
|
# Guess threshold for automatic language detection
|
||
|
guess_threshold = 0.20
|
||
|
|
||
|
# Number of recent pastes to show on the home page
|
||
|
recent_pastes = 10
|
||
|
|
||
|
# Try to use X-Real-IP or X-Forwarded-For HTTP headers
|
||
|
behind_proxy = False
|