Add sample configs

This commit is contained in:
Floorb 2022-03-12 14:02:11 -05:00
parent 8d5061300d
commit f14cf0b6b9
2 changed files with 83 additions and 0 deletions

42
config/site.example.php Normal file
View file

@ -0,0 +1,42 @@
<?php
/* This file has been machine-generated, but is human-editable if you so desire. */
return array (
'site_info' =>
array (
'title' => 'PonePaste',
'description' => 'PonePaste can store green',
'baseurl' => 'ponepaste.local/',
'keywords' => '',
'site_name' => 'PonePaste',
'email' => '',
'additional_scripts' => '',
),
'interface' =>
array (
'language' => 'en',
'theme' => 'bulma',
),
'permissions' =>
array (
'disable_guest' => false,
'private' => false,
),
'mail' =>
array (
'verification' => false,
'smtp_host' => '',
'smtp_port' => '',
'smtp_user' => '',
'socket' => '',
'auth' => '',
'protocol' => '',
),
'captcha' =>
array (
'enabled' => true,
'multiple' => false,
'mode' => 'Normal',
'allowed' => 'ABCDEFGHIJKLMNOPQRSTUVYXYZabcdefghijklmnopqrstuvwxyz0123456789',
'colour' => '#000000',
),
);

View file

@ -0,0 +1,41 @@
<?php
const PP_DEBUG = false;
if (PP_DEBUG) {
error_reporting(E_ALL);
ini_set('display_errors', 1);
} else {
error_reporting(0);
ini_set('display_errors', 0);
}
/* Maximum paste size in bytes */
const PP_PASTE_LIMIT_BYTES = 1048576;
/* A long and random string used for additionally salting passwords. */
const PP_PASSWORD_PEPPER = 'a long and secure random string here';
/* Whether to use friendly URLs that require mod_rewrite */
const PP_MOD_REWRITE = true;
/* Redis credentials */
const PP_REDIS_HOST = '127.0.0.1';
const PP_REDIS_DB = 'ponepaste';
$db_host = 'localhost';
$db_schema = 'ponepaste';
$db_user = 'ponepaste';
$db_pass = 'ponepaste';
// Secret key for paste encryption
const PP_ENCRYPTION_ALGO = 'AES-256-CBC';
const PP_ENCRYPTION_KEY = 'a long and secure random string here';
const PP_HIGHLIGHT_FORMATS = [
'green' => 'Green Text',
'text' => 'Plain Text',
'pastedown' => 'pastedown',
'pastedown_old' => 'pastedown old'
];
// Cookie - I want a cookie, can I have one?