-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconfig.php
More file actions
34 lines (29 loc) · 1.31 KB
/
config.php
File metadata and controls
34 lines (29 loc) · 1.31 KB
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
<?php
# Site URL, you should REALLY run it under https
$force_https=true;
$base_protocol=(!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != 'on') ? "http://" : "https://";
$base_url=$base_protocol.$_SERVER['HTTP_HOST'].pathinfo($_SERVER['PHP_SELF'])['dirname'];
# you may want to override the auto-detected URL
#$base_url="https://CHANGE_THIS_TO_YOUR_SITE_ADDRESS";
# storage backend, storage config in storage/_BACKEND_.config.php
$backend="textfiles";
#$backend="mysql";
# days till an unread message is purged from the DB
# remember to set a cronjob like
# 0 * * * * YOUR_USER /usr/bin/curl https://YOUR_INSTALLATION_URL/cron.php
$hours_expire=72;
# max upload filesize (in megabytes)
# check the value is smaller than php.ini's upload_max_filesize & post_max_size
# set to 0 to remove the limit
# NOTICE: see the warning in storage/mysql.sql on file sizes if you use
# the MySQL storage backend
$max_upload_size=5;
# cli_auth, password for command line client access
# Leaving this empty (or with the default value) will allow anyone to (ab)use
# your installation if you don't set other limits (i.e. in your webserver config)
$cli_auth="canihazpastes?";
# Ask for confirmation before recovering messages/files
# Prevents messages from being disclosed to whatsapp, outlook, gmail,...
# link "checkers/previewers"
$prompt2show=true;
?>