Remove configs from Git (yes, I know they are still visible in the history.)

This commit is contained in:
Floorb 2022-03-12 13:59:44 -05:00
parent ee11e95019
commit 8d5061300d
4 changed files with 3 additions and 93 deletions

2
.gitignore vendored
View file

@ -9,3 +9,5 @@ yarn-error.log
!.yarn/versions
assets/bundle/*
!assets/bundle/.gitkeep
config/site.php
includes/config.php

View file

@ -1,42 +0,0 @@
<?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

@ -209,8 +209,6 @@ if ($site_permissions) {
$captcha_config = $site_info['captcha'];
$captcha_enabled = (bool) $captcha_config['enabled'];
$total_pastes = Paste::count();
$total_page_views = PageView::select('tpage')->orderBy('id', 'desc')->first()->tpage;
$total_unique_views = PageView::select('tvisit')->orderBy('id', 'desc')->first()->tvisit;

View file

@ -1,48 +0,0 @@
<?php
define("PP_DEBUG", (gethostname() === 'thunderlane'));
if (PP_DEBUG) {
error_reporting(E_ALL);
ini_set('display_errors', 1);
}
/* 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 = 'd791b6c6-91f2-4e8f-ba80-74ea968e4931';
/* 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 = 'p0nepast3s';
$db_user = 'P0nedbAcc0unt';
$db_pass = '1NWO6Tp17IFz9lbl';
// I'm sorry, I didn't want to edit this file and check it in, but I may need to make other changes to it, so I did this
if (PP_DEBUG) {
$db_host = 'localhost';
$db_schema = 'ponepaste';
$db_user = 'ponepaste';
$db_pass = 'ponepaste';
}
// Secret key for paste encryption
//$sec_key = "8ac67343e7980b16b31e8311d4377bbb";
const PP_ENCRYPTION_ALGO = 'AES-256-CBC';
const PP_ENCRYPTION_KEY = '';
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?