mirror of
https://github.com/casjaysdevdocker/sqlite
synced 2026-06-24 02:01:00 -04:00
♻️ Migrate sqlite to /config/ source-of-truth architecture ♻️
Migrate sqlite Docker image to the new build-time config architecture. - rootfs/root/docker/setup/03-files.sh: rewrite to canonical form with /tmp/bin, /tmp/var, /tmp/etc, /tmp/usr handlers - rootfs/usr/local/etc/docker/functions/entrypoint.sh: update to latest template - rootfs/usr/local/etc/docker/init.d/*.sh: fix $(basename) UUOC; move inline comments above code lines - rootfs/tmp/etc/: add service config files (phpliteadmin ) deployed to /etc/ at build time - rootfs/usr/local/share/template-files/: delete; config now deployed via /tmp/etc/ and /tmp/usr/ at build time rootfs/root/docker/setup/03-files.sh rootfs/tmp/ rootfs/usr/local/etc/docker/functions/entrypoint.sh rootfs/usr/local/etc/docker/init.d/zz-nginx.sh rootfs/usr/local/share/template-files/config/env/default.sample rootfs/usr/local/share/template-files/config/env/examples/00-directory.sh rootfs/usr/local/share/template-files/config/env/examples/addresses.sh rootfs/usr/local/share/template-files/config/env/examples/certbot.sh rootfs/usr/local/share/template-files/config/env/examples/couchdb.sh rootfs/usr/local/share/template-files/config/env/examples/dockerd.sh rootfs/usr/local/share/template-files/config/env/examples/global.sh rootfs/usr/local/share/template-files/config/env/examples/healthcheck.sh rootfs/usr/local/share/template-files/config/env/examples/mariadb.sh rootfs/usr/local/share/template-files/config/env/examples/mongodb.sh rootfs/usr/local/share/template-files/config/env/examples/networking.sh rootfs/usr/local/share/template-files/config/env/examples/other.sh rootfs/usr/local/share/template-files/config/env/examples/php.sh rootfs/usr/local/share/template-files/config/env/examples/postgres.sh rootfs/usr/local/share/template-files/config/env/examples/redis.sh rootfs/usr/local/share/template-files/config/env/examples/services.sh rootfs/usr/local/share/template-files/config/env/examples/ssl.sh rootfs/usr/local/share/template-files/config/env/examples/supabase.sh rootfs/usr/local/share/template-files/config/env/examples/webservers.sh rootfs/usr/local/share/template-files/config/env/examples/zz-entrypoint.sh rootfs/usr/local/share/template-files/config/.gitkeep rootfs/usr/local/share/template-files/config/phpliteadmin/config.php rootfs/usr/local/share/template-files/data/.gitkeep rootfs/usr/local/share/template-files/defaults/.gitkeep
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
//
|
||||
// You can configure phpliteadmin in one of 2 ways:
|
||||
// 1. Rename phpliteadmin.config.sample.php to phpliteadmin.config.php and change parameters in there.
|
||||
// You can set only your custom settings in phpliteadmin.config.php. All other settings will be set to defaults.
|
||||
// 2. Change parameters directly in main phpliteadmin.php file
|
||||
//
|
||||
// Please see https://bitbucket.org/phpliteadmin/public/wiki/Configuration for more details
|
||||
|
||||
//password to gain access
|
||||
$password = 'REPLACE_ADMIN_PASS_WORD';
|
||||
|
||||
//directory relative to this file to search for databases (if false, manually list databases in the $databases variable)
|
||||
$directory = 'REPLACE_DATABASE_DIR';
|
||||
|
||||
//whether or not to scan the subdirectories of the above directory infinitely deep
|
||||
$subdirectories = false;
|
||||
|
||||
//if the above $directory variable is set to false, you must specify the databases manually in an array as the next variable
|
||||
//if any of the databases do not exist as they are referenced by their path, they will be created automatically
|
||||
$databases = array(
|
||||
array(
|
||||
'path' => 'database1.sqlite',
|
||||
'name' => 'Database 1'
|
||||
),
|
||||
array(
|
||||
'path' => 'database2.sqlite',
|
||||
'name' => 'Database 2'
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
/* ---- Interface settings ---- */
|
||||
|
||||
// Theme! If you want to change theme, save the CSS file in same folder of phpliteadmin or in folder "themes"
|
||||
$theme = 'phpliteadmin.css';
|
||||
|
||||
// the default language! If you want to change it, save the language file in same folder of phpliteadmin or in folder "languages"
|
||||
// More about localizations (downloads, how to translate etc.): https://bitbucket.org/phpliteadmin/public/wiki/Localization
|
||||
$language = 'en';
|
||||
|
||||
// set default number of rows. You need to relog after changing the number
|
||||
$rowsNum = 30;
|
||||
|
||||
// reduce string characters by a number bigger than 10
|
||||
$charsNum = 300;
|
||||
|
||||
// maximum number of SQL queries to save in the history
|
||||
$maxSavedQueries = 10;
|
||||
|
||||
/* ---- Custom functions ---- */
|
||||
|
||||
//a list of custom functions that can be applied to columns in the databases
|
||||
//make sure to define every function below if it is not a core PHP function
|
||||
$custom_functions = array(
|
||||
'md5',
|
||||
'sha1',
|
||||
'time',
|
||||
'strtotime',
|
||||
// add the names of your custom functions to this array
|
||||
/* 'leet_text', */
|
||||
);
|
||||
|
||||
// define your custom functions here
|
||||
/*
|
||||
function leet_text($value)
|
||||
{
|
||||
return strtr($value, 'eaAsSOl', '344zZ01');
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
/* ---- Advanced options ---- */
|
||||
|
||||
//changing the following variable allows multiple phpLiteAdmin installs to work under the same domain.
|
||||
$cookie_name = 'REPLACE_BLOWFISH_SECRECT';
|
||||
|
||||
//whether or not to put the app in debug mode where errors are outputted
|
||||
$debug = false;
|
||||
|
||||
// the user is allowed to create databases with only these extensions
|
||||
$allowed_extensions = array('db', 'db3', 'sqlite', 'sqlite3');
|
||||
Reference in New Issue
Block a user