mirror of
https://github.com/casjaysdevdocker/mysql
synced 2025-09-18 03:57:44 -04:00
🦈🏠🐜❗ Initial Commit ❗🐜🦈🏠
This commit is contained in:
38
rootfs/tmp/etc/mysql/my.cnf
Normal file
38
rootfs/tmp/etc/mysql/my.cnf
Normal file
@@ -0,0 +1,38 @@
|
||||
# Default mariadb config file
|
||||
|
||||
[client]
|
||||
port = 3306
|
||||
socket = /tmp/mysql.sock
|
||||
default_character_set = utf8
|
||||
|
||||
[mysqld_safe]
|
||||
datadir = REPLACE_DATABASE_DIR
|
||||
port = 3306
|
||||
socket = /tmp/mysql.sock
|
||||
open_files_limit = 16384
|
||||
log-error = /data/logs/mysql/mysql.err.log
|
||||
|
||||
[mysqld]
|
||||
datadir = REPLACE_DATABASE_DIR
|
||||
port = 3306
|
||||
bind-address = 0.0.0.0
|
||||
socket = /tmp/mysql.sock
|
||||
open_files_limit = 16384
|
||||
max_allowed_packet = 1024M
|
||||
max_connections = 200
|
||||
max_user_connections = 50
|
||||
log_warnings = 2
|
||||
slow_query_log = 1
|
||||
general_log = 1
|
||||
key_buffer_size = 8M
|
||||
general_log_file = /data/logs/mysql/mysql.log
|
||||
slow_query_log_file = /data/logs/mysql/mysql.err.log
|
||||
log_error = /data/logs/mysql/mysql.err.log
|
||||
|
||||
[mysql]
|
||||
no_auto_rehash
|
||||
max_allowed_packet = 1024M
|
||||
prompt = '\u@\h [\d]> '
|
||||
|
||||
[mysqldump]
|
||||
max_allowed_packet = 1024M
|
82
rootfs/tmp/etc/nginx/nginx.conf
Normal file
82
rootfs/tmp/etc/nginx/nginx.conf
Normal file
@@ -0,0 +1,82 @@
|
||||
# nginx configuration for sites
|
||||
|
||||
user REPLACE_WWW_USER;
|
||||
worker_processes auto;
|
||||
daemon on;
|
||||
error_log REPLACE_LOG_DIR/nginx.log warn;
|
||||
pid REPLACE_RUN_DIR/nginx.pid;
|
||||
events { worker_connections 1024; }
|
||||
|
||||
http {
|
||||
include REPLACE_ETC_DIR/mime.types;
|
||||
default_type "text/html";
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
gzip on;
|
||||
map $http_upgrade $connection_upgrade { default upgrade; '' close; }
|
||||
disable_symlinks off;
|
||||
|
||||
server {
|
||||
listen 0.0.0.0:80 default_server;
|
||||
server_name REPLACE_SERVER_NAME;
|
||||
client_max_body_size 0;
|
||||
proxy_intercept_errors off;
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
add_header X-XSS-Protection "1; mode=block" always;
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header Referrer-Policy "no-referrer-when-downgrade" always;
|
||||
add_header Content-Security-Policy "script-src 'self' 'unsafe-inline' 'unsafe-eval' *; frame-src 'self' *; object-src 'self'" always;
|
||||
index index.php index.cgi index.pl index.aspx index.txt index.json index.html index.unknown.php index.default.php;
|
||||
root /var/lib/nginx/html;
|
||||
|
||||
location /health {
|
||||
default_type text/plain;
|
||||
return 200 'ok';
|
||||
}
|
||||
location /health/text {
|
||||
default_type text/plain;
|
||||
return 200 'ok';
|
||||
}
|
||||
location /health/json {
|
||||
default_type application/json;
|
||||
return 200 '{"status":"ok","message":"running"}';
|
||||
}
|
||||
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
if (!-f $document_root$fastcgi_script_name) {
|
||||
return 404;
|
||||
}
|
||||
fastcgi_param HTTP_PROXY "";
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param QUERY_STRING $query_string;
|
||||
fastcgi_param REQUEST_METHOD $request_method;
|
||||
fastcgi_param CONTENT_TYPE $content_type;
|
||||
fastcgi_param CONTENT_LENGTH $content_length;
|
||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param REQUEST_URI $request_uri;
|
||||
fastcgi_param DOCUMENT_URI $document_uri;
|
||||
fastcgi_param DOCUMENT_ROOT $document_root;
|
||||
fastcgi_param SERVER_PROTOCOL $server_protocol;
|
||||
fastcgi_param REQUEST_SCHEME $scheme;
|
||||
fastcgi_param HTTPS $https if_not_empty;
|
||||
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
|
||||
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
|
||||
fastcgi_param REMOTE_ADDR $remote_addr;
|
||||
fastcgi_param REMOTE_PORT $remote_port;
|
||||
fastcgi_param SERVER_ADDR $server_addr;
|
||||
fastcgi_param SERVER_PORT $server_port;
|
||||
fastcgi_param SERVER_NAME $server_name;
|
||||
fastcgi_param REDIRECT_STATUS 200;
|
||||
}
|
||||
|
||||
location / {
|
||||
root REPLACE_PHPMYADMIN_WWW_ROOT;
|
||||
}
|
||||
|
||||
location /phpmyadmin {
|
||||
alias REPLACE_PHPMYADMIN_WWW_ROOT;
|
||||
}
|
||||
}
|
69
rootfs/tmp/etc/phpmyadmin/config.php
Normal file
69
rootfs/tmp/etc/phpmyadmin/config.php
Normal file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
$cfg['blowfish_secret'] = 'REPLACE_BLOWFISH_SECRET'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
|
||||
|
||||
/* Servers configuration */
|
||||
$i = 0;
|
||||
|
||||
/* Server: sqldb [1] */
|
||||
$i++;
|
||||
$cfg['Servers'][$i]['verbose'] = 'sqldb';
|
||||
$cfg['Servers'][$i]['host'] = 'sqldb.us';
|
||||
$cfg['Servers'][$i]['port'] = 3306;
|
||||
$cfg['Servers'][$i]['socket'] = '';
|
||||
$cfg['Servers'][$i]['auth_type'] = 'cookie';
|
||||
$cfg['Servers'][$i]['user'] = '';
|
||||
$cfg['Servers'][$i]['password'] = '';
|
||||
$cfg['Servers'][$i]['hide_db'] = '^(mysql|performance_schema|information_schema|sys)$';
|
||||
|
||||
/* Server: local [2] */
|
||||
$i++;
|
||||
$cfg['Servers'][$i]['verbose'] = 'local';
|
||||
$cfg['Servers'][$i]['host'] = 'localhost';
|
||||
$cfg['Servers'][$i]['port'] = 3306;
|
||||
$cfg['Servers'][$i]['socket'] = '/var/lib/mysql/mysql.sock';
|
||||
$cfg['Servers'][$i]['auth_type'] = 'cookie';
|
||||
$cfg['Servers'][$i]['user'] = 'root';
|
||||
$cfg['Servers'][$i]['password'] = '';
|
||||
$cfg['Servers'][$i]['hide_db'] = '^(mysql|performance_schema|information_schema|sys)$';
|
||||
|
||||
|
||||
// $cfg['Servers'][$i]['controlhost'] = '';
|
||||
// $cfg['Servers'][$i]['controlport'] = '';
|
||||
// $cfg['Servers'][$i]['controluser'] = '';
|
||||
// $cfg['Servers'][$i]['controlpass'] = '';
|
||||
|
||||
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
|
||||
// $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
|
||||
// $cfg['Servers'][$i]['relation'] = 'pma__relation';
|
||||
// $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
|
||||
// $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
|
||||
// $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
|
||||
// $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
|
||||
// $cfg['Servers'][$i]['history'] = 'pma__history';
|
||||
// $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
|
||||
// $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
|
||||
// $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
|
||||
// $cfg['Servers'][$i]['recent'] = 'pma__recent';
|
||||
// $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
|
||||
// $cfg['Servers'][$i]['users'] = 'pma__users';
|
||||
// $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
|
||||
// $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
|
||||
// $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
|
||||
// $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
|
||||
// $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
|
||||
// $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
|
||||
|
||||
$cfg['UploadDir'] = '/tmp';
|
||||
$cfg['SaveDir'] = '/tmp';
|
||||
$cfg['RowActionType'] = 'both';
|
||||
$cfg['ShowAll'] = true;
|
||||
$cfg['MaxRows'] = 50;
|
||||
$cfg['ProtectBinary'] = false;
|
||||
$cfg['DefaultLang'] = 'en';
|
||||
$cfg['PropertiesNumColumns'] = 2;
|
||||
$cfg['QueryHistoryDB'] = true;
|
||||
$cfg['QueryHistoryMax'] = 100;
|
||||
$cfg['SendErrorReports'] = 'always';
|
Reference in New Issue
Block a user