mirror of https://github.com/Cesura/pastey.git
parent
f2d836159d
commit
677c2ed298
@ -1,37 +0,0 @@
|
|||||||
# 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
|
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 44 KiB |
Loading…
Reference in new issue