mirror of
https://github.com/casjaysdevdocker/tools
synced 2025-09-18 03:57:46 -04:00
🗃️ Committing everything that changed 🗃️
applications/php/scripts/packages.sh applications/postgres/scripts/install.sh applications/redis/config/ applications/redis/scripts/commands.sh configs/nginx/nginx.conf configs/nginx/nginx.ssl.conf configs/nginx/vhosts.d/default.conf configs/nginx/vhosts.d/default.conf.sample configs/nginx/vhosts.d/default.ssl.conf configs/nginx/vhosts.d/default.ssl.sample configs/phppgadmin/ configs/postgres/ init/ wwwroot/404.html wwwroot/cgi-bin/ wwwroot/css/ wwwroot/favicon.ico wwwroot/health/ wwwroot/images/ wwwroot/index.php wwwroot/info.php wwwroot/js/ wwwroot/robots.txt wwwroot/site.webmanifest wwwroot/www/404.html wwwroot/www/cgi-bin/env.cgi wwwroot/www/cgi-bin/env.php wwwroot/www/cgi-bin/env.pl wwwroot/www/cgi-bin/env.py wwwroot/www/cgi-bin/env.rb wwwroot/www/cgi-bin/printenv wwwroot/www/cgi-bin/printenv.vbs wwwroot/www/cgi-bin/printenv.wsf wwwroot/www/cgi-bin/test-cgi wwwroot/www/css/bootstrap.css wwwroot/www/css/bootstrap.min.css wwwroot/www/css/bs.plain.css wwwroot/www/css/cookieconsent.css wwwroot/www/css/errorpages.css wwwroot/www/css/index.css wwwroot/www/favicon.ico wwwroot/www/health/health/index.json wwwroot/www/health/health/index.txt wwwroot/www/health/index.json wwwroot/www/health/index.txt wwwroot/www/images/403.png wwwroot/www/images/404.gif wwwroot/www/images/bg.png wwwroot/www/images/favicon.ico wwwroot/www/images/icon.png wwwroot/www/images/icon.svg wwwroot/www/index.php wwwroot/www/info.php wwwroot/www/js/app.js wwwroot/www/js/bootstrap.min.js wwwroot/www/js/errorpages/homepage.js wwwroot/www/js/errorpages/isup.js wwwroot/www/js/errorpages/loaddomain.js wwwroot/www/js/errorpages/scale.fix.js wwwroot/www/js/jquery/default.js wwwroot/www/js/passprotect.min.js wwwroot/www/robots.txt wwwroot/www/site.webmanifest
This commit is contained in:
@@ -12,43 +12,67 @@ events {
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type "text/html";
|
||||
access_log /data/logs/nginx/access.default.log;
|
||||
access_log /data/logs/nginx/access.REPLACE_SERVER_NAME.log;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
gzip on;
|
||||
map $http_upgrade $connection_upgrade { default upgrade; '' close; }
|
||||
disable_symlinks off;
|
||||
root REPLACE_SERVER_WWW_DIR;
|
||||
|
||||
server {
|
||||
listen REPLACE_SERVER_PORT default_server;
|
||||
listen REPLACE_SERVER_PORT;
|
||||
server_name REPLACE_SERVER_NAME;
|
||||
root REPLACE_SERVER_WWW_DIR;
|
||||
index index.php index.html index.cgi index.pl index.aspx index.txt index.json index.unknown.php index.default.php;
|
||||
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 Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
||||
add_header Content-Security-Policy "script-src 'self' 'unsafe-inline' 'unsafe-eval' *; frame-src 'self' *; object-src 'self'" always;
|
||||
proxy_intercept_errors off;
|
||||
|
||||
location = /favicon.ico {
|
||||
alias /usr/local/share/wwwroot/favicon.ico;
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location = /robots.txt {
|
||||
alias /usr/local/share/wwwroot/robots.txt;
|
||||
allow all;
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location ^~ /.well-known {
|
||||
default_type "text/plain";
|
||||
root /usr/local/share/wwwroot/.well-known;
|
||||
}
|
||||
|
||||
location ^~ /health {
|
||||
default_type "text/plain";
|
||||
allow all;
|
||||
access_log off;
|
||||
root /usr/local/share/wwwroot/health;
|
||||
}
|
||||
|
||||
location ^~ /health/txt {
|
||||
default_type application/json;
|
||||
allow all;
|
||||
access_log off;
|
||||
return 200 'ok';
|
||||
}
|
||||
|
||||
location = /favicon.ico {
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location = /robots.txt {
|
||||
allow all;
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location /health {
|
||||
default_type text/html;
|
||||
allow all;
|
||||
access_log off;
|
||||
return 200 'OK';
|
||||
}
|
||||
|
||||
location /health/json {
|
||||
location ^~ /health/json {
|
||||
default_type application/json;
|
||||
allow all;
|
||||
access_log off;
|
||||
return 200 '{"status":"OK"}';
|
||||
}
|
||||
|
||||
location /health/status {
|
||||
|
||||
location ^~ /health/status {
|
||||
stub_status;
|
||||
}
|
||||
|
||||
@@ -57,12 +81,55 @@ http {
|
||||
if (!-f $document_root$fastcgi_script_name) {
|
||||
return 404;
|
||||
}
|
||||
fastcgi_param HTTP_PROXY "";
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
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;
|
||||
# PHP only, required if PHP was built with --enable-force-cgi-redirect
|
||||
fastcgi_param REDIRECT_STATUS 200;
|
||||
|
||||
}
|
||||
# location /cgi-bin {
|
||||
# root /usr/local/share/wwwroot/cgi-bin;
|
||||
# gzip off;
|
||||
# fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
||||
# fastcgi_param HTTP_PROXY "";
|
||||
# fastcgi_param GATEWAY_INTERFACE CGI/1.1;
|
||||
# fastcgi_param SERVER_SOFTWARE nginx;
|
||||
# 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 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;
|
||||
# }
|
||||
}
|
||||
include /etc/nginx/vhosts.d/*.conf;
|
||||
}
|
||||
|
131
configs/nginx/nginx.ssl.conf
Normal file
131
configs/nginx/nginx.ssl.conf
Normal file
@@ -0,0 +1,131 @@
|
||||
# Default nginx configuration
|
||||
user root;
|
||||
worker_processes auto;
|
||||
daemon off;
|
||||
error_log /data/logs/nginx/nginx.log warn;
|
||||
pid /run/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type "text/html";
|
||||
access_log /data/logs/nginx/access.default.log;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
gzip on;
|
||||
map $http_upgrade $connection_upgrade { default upgrade; '' close; }
|
||||
disable_symlinks off;
|
||||
root REPLACE_SERVER_WWW_DIR;
|
||||
|
||||
server {
|
||||
listen REPLACE_SERVER_PORT;
|
||||
server_name REPLACE_SERVER_NAME;
|
||||
root REPLACE_SERVER_WWW_DIR;
|
||||
index index.php index.cgi index.pl index.aspx index.txt index.json index.html index.unknown.php index.default.php;
|
||||
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 Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
||||
add_header Content-Security-Policy "script-src 'self' 'unsafe-inline' 'unsafe-eval' *; frame-src 'self' *; object-src 'self'" always;
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
||||
ssl_prefer_server_ciphers off;
|
||||
ssl_certificate /etc/ssl/localhost.crt;
|
||||
ssl_certificate_key /etc/ssl/localhost.key;
|
||||
proxy_intercept_errors off;
|
||||
|
||||
location ^~ /.well-known {
|
||||
default_type "text/plain";
|
||||
root REPLACE_SERVER_WWW_DIR/.well-known;
|
||||
}
|
||||
|
||||
location ^~ = /favicon.ico {
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location ^~ = /robots.txt {
|
||||
allow all;
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location ^~ /health {
|
||||
default_type text/html;
|
||||
allow all;
|
||||
access_log off;
|
||||
return 200 'OK';
|
||||
}
|
||||
|
||||
location ^~ /health/json {
|
||||
default_type application/json;
|
||||
allow all;
|
||||
access_log off;
|
||||
return 200 '{"status":"OK"}';
|
||||
}
|
||||
|
||||
location ^~ /health/status {
|
||||
stub_status;
|
||||
}
|
||||
|
||||
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;
|
||||
# PHP only, required if PHP was built with --enable-force-cgi-redirect
|
||||
fastcgi_param REDIRECT_STATUS 200;
|
||||
|
||||
}
|
||||
# location /cgi-bin {
|
||||
# root /usr/local/share/wwwroot/cgi-bin;
|
||||
# gzip off;
|
||||
# fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
||||
# fastcgi_param HTTP_PROXY "";
|
||||
# fastcgi_param GATEWAY_INTERFACE CGI/1.1;
|
||||
# fastcgi_param SERVER_SOFTWARE nginx;
|
||||
# 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 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;
|
||||
# }
|
||||
}
|
||||
include /etc/nginx/vhosts.d/*.conf;
|
||||
}
|
@@ -1,8 +1,8 @@
|
||||
server {
|
||||
listen REPLACE_SERVER_PORT;
|
||||
server_name REPLACE_SERVER_NAME;
|
||||
root REPLACE_SERVER_DIR;
|
||||
index index.php index.cgi index.pl index.aspx awstats.pl index.txt index.json index.html index.unknown.php index.default.php;
|
||||
root REPLACE_SERVER_WWW_DIR;
|
||||
index index.php index.cgi index.pl index.aspx index.txt index.json index.html index.unknown.php index.default.php;
|
||||
proxy_intercept_errors off;
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
add_header X-XSS-Protection "1; mode=block" always;
|
@@ -1,7 +1,7 @@
|
||||
server {
|
||||
listen REPLACE_SERVER_PORT ssl http2 default_server;
|
||||
listen ssl http2 REPLACE_SERVER_PORT;
|
||||
server_name REPLACE_SERVER_NAME;
|
||||
root REPLACE_SERVER_DIR;
|
||||
root REPLACE_SERVER_WWW_DIR;
|
||||
index index.php index.cgi index.pl index.aspx awstats.pl index.txt index.json index.html index.unknown.php index.default.php;
|
||||
proxy_intercept_errors off;
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
52
configs/phppgadmin/config.php
Normal file
52
configs/phppgadmin/config.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
$conf['servers'][1]['desc'] = 'local';
|
||||
$conf['servers'][1]['host'] = '127.0.0.1';
|
||||
$conf['servers'][1]['port'] = 5432;
|
||||
$conf['servers'][1]['sslmode'] = 'allow';
|
||||
$conf['servers'][1]['defaultdb'] = 'postgres';
|
||||
$conf['servers'][1]['pg_dump_path'] = '/usr/bin/pg_dump';
|
||||
$conf['servers'][1]['pg_dumpall_path'] = '/usr/bin/pg_dumpall';
|
||||
|
||||
// $conf['servers'][0]['desc'] = '';
|
||||
// $conf['servers'][0]['host'] = '';
|
||||
// $conf['servers'][0]['port'] = 5432;
|
||||
// $conf['servers'][0]['sslmode'] = 'allow';
|
||||
// $conf['servers'][0]['defaultdb'] = 'postgres';
|
||||
// $conf['servers'][0]['pg_dump_path'] = '/usr/bin/pg_dump';
|
||||
// $conf['servers'][0]['pg_dumpall_path'] = '/usr/bin/pg_dumpall';
|
||||
|
||||
//$conf['srv_groups'][0]['desc'] = 'group one';
|
||||
//$conf['srv_groups'][0]['servers'] = '0,1,2';
|
||||
//$conf['srv_groups'][1]['desc'] = 'group two';
|
||||
//$conf['srv_groups'][1]['servers'] = '3,1';
|
||||
//$conf['srv_groups'][2]['desc'] = 'group three';
|
||||
//$conf['srv_groups'][2]['servers'] = '4';
|
||||
//$conf['srv_groups'][2]['parents'] = '0,1';
|
||||
|
||||
//$conf['servers'][0]['theme']['default'] = 'default';
|
||||
//$conf['servers'][0]['theme']['user']['specific_user'] = 'default';
|
||||
//$conf['servers'][0]['theme']['db']['specific_db'] = 'default';
|
||||
$conf['default_lang'] = 'auto';
|
||||
$conf['autocomplete'] = 'default on';
|
||||
$conf['extra_login_security'] = false;
|
||||
$conf['owned_only'] = true;
|
||||
$conf['show_comments'] = true;
|
||||
$conf['show_advanced'] = false;
|
||||
$conf['show_system'] = false;
|
||||
$conf['min_password_length'] = 8;
|
||||
$conf['left_width'] = 200;
|
||||
$conf['theme'] = 'default';
|
||||
$conf['show_oids'] = false;
|
||||
$conf['max_rows'] = 30;
|
||||
$conf['max_chars'] = 50;
|
||||
$conf['use_xhtml_strict'] = false;
|
||||
$conf['help_base'] = 'http://www.postgresql.org/docs/%s/interactive/';
|
||||
$conf['ajax_refresh'] = 3;
|
||||
|
||||
$conf['plugins'] = array();
|
||||
|
||||
/*****************************************
|
||||
* Don't modify anything below this line *
|
||||
*****************************************/
|
||||
$conf['version'] = 19;
|
||||
?>
|
9
configs/postgres/pg_hba.conf
Normal file
9
configs/postgres/pg_hba.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
# ===================================================
|
||||
# PostgreSQL Client Authentication Configuration File
|
||||
# ===================================================
|
||||
# TYPE DATABASE USER ADDRESS METHOD
|
||||
local all postgres peer
|
||||
local all all trust
|
||||
local all all md5
|
||||
host all all 0.0.0.0/0 md5
|
||||
host all all ::/0 md5
|
263
configs/postgres/postgresql.conf
Normal file
263
configs/postgres/postgresql.conf
Normal file
@@ -0,0 +1,263 @@
|
||||
# -----------------------------
|
||||
# CasjaysDev PostgreSQL configuration file
|
||||
# -----------------------------
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
# FILE LOCATIONS
|
||||
#------------------------------------------------------------------------------
|
||||
data_directory = 'REPLACE_DATABASE_DIR'
|
||||
#hba_file = 'ConfigDir/pg_hba.conf'
|
||||
#ident_file = 'ConfigDir/pg_ident.conf'
|
||||
#external_pid_file = ''
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# CONNECTIONS AND AUTHENTICATION
|
||||
#------------------------------------------------------------------------------
|
||||
listen_addresses = '*'
|
||||
port = 5432
|
||||
max_connections = 100
|
||||
unix_socket_directories = '/var/run/postgresql, /tmp'
|
||||
#unix_socket_group = ''
|
||||
unix_socket_permissions = 0777
|
||||
#bonjour = off
|
||||
#bonjour_name = ''
|
||||
#authentication_timeout = 1min
|
||||
#password_encryption = on
|
||||
#db_user_namespace = off
|
||||
#krb_server_keyfile = ''
|
||||
#krb_srvname = 'postgres'
|
||||
#krb_caseins_users = off
|
||||
#tcp_keepalives_idle = 0
|
||||
#tcp_keepalives_interval = 0
|
||||
#tcp_keepalives_count = 0
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# SSL configuration
|
||||
#------------------------------------------------------------------------------
|
||||
ssl = off
|
||||
ssl_ca_file = '/etc/ssl/ca.crt'
|
||||
ssl_key_file = '/etc/ssl/localhost.key'
|
||||
ssl_cert_file = '/etc/ssl/localhost.crt'
|
||||
ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed SSL ciphers
|
||||
ssl_prefer_server_ciphers = on
|
||||
ssl_ecdh_curve = 'prime256v1'
|
||||
ssl_min_protocol_version = 'TLSv1.2'
|
||||
#ssl_max_protocol_version = ''
|
||||
#ssl_dh_params_file = ''
|
||||
#ssl_passphrase_command = ''
|
||||
#ssl_passphrase_command_supports_reload = off
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# RESOURCE USAGE (except WAL)
|
||||
#------------------------------------------------------------------------------
|
||||
shared_buffers = 32MB
|
||||
#temp_buffers = 8MB
|
||||
#work_mem = 1MB
|
||||
#maintenance_work_mem = 16MB
|
||||
#max_stack_depth = 2MB
|
||||
#temp_file_limit = -1
|
||||
#max_files_per_process = 1000
|
||||
#shared_preload_libraries = ''
|
||||
#vacuum_cost_delay = 0ms
|
||||
#vacuum_cost_page_hit = 1
|
||||
#vacuum_cost_page_miss = 10
|
||||
#vacuum_cost_page_dirty = 20
|
||||
#vacuum_cost_limit = 200
|
||||
#bgwriter_delay = 200ms
|
||||
#bgwriter_lru_maxpages = 100
|
||||
#bgwriter_lru_multiplier = 2.0
|
||||
#effective_io_concurrency = 1
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# WRITE AHEAD LOG
|
||||
#wal_level = minimal
|
||||
#fsync = on
|
||||
#synchronous_commit = on
|
||||
#wal_sync_method = fsync
|
||||
#full_page_writes = on
|
||||
#wal_buffers = -1
|
||||
#wal_writer_delay = 200ms
|
||||
#commit_delay = 0
|
||||
#commit_siblings = 5
|
||||
#checkpoint_segments = 3
|
||||
#checkpoint_timeout = 5min
|
||||
#checkpoint_completion_target = 0.5
|
||||
#checkpoint_warning = 30s
|
||||
#archive_mode = off
|
||||
#archive_command = ''
|
||||
#archive_timeout = 0
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# REPLICATION
|
||||
#------------------------------------------------------------------------------
|
||||
#max_wal_senders = 0
|
||||
#wal_keep_segments = 0
|
||||
#replication_timeout = 60s
|
||||
#synchronous_standby_names = ''
|
||||
#vacuum_defer_cleanup_age = 0
|
||||
#hot_standby = off
|
||||
#max_standby_archive_delay = 30s
|
||||
#max_standby_streaming_delay = 30s
|
||||
#wal_receiver_status_interval = 10s
|
||||
#hot_standby_feedback = off
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# QUERY TUNING
|
||||
#------------------------------------------------------------------------------
|
||||
#enable_bitmapscan = on
|
||||
#enable_hashagg = on
|
||||
#enable_hashjoin = on
|
||||
#enable_indexscan = on
|
||||
#enable_indexonlyscan = on
|
||||
#enable_material = on
|
||||
#enable_mergejoin = on
|
||||
#enable_nestloop = on
|
||||
#enable_seqscan = on
|
||||
#enable_sort = on
|
||||
#enable_tidscan = on
|
||||
|
||||
#seq_page_cost = 1.0
|
||||
#random_page_cost = 4.0
|
||||
#cpu_tuple_cost = 0.01
|
||||
#cpu_index_tuple_cost = 0.005
|
||||
#cpu_operator_cost = 0.0025
|
||||
#effective_cache_size = 128MB
|
||||
#geqo = on
|
||||
#geqo_threshold = 12
|
||||
#geqo_effort = 5
|
||||
#geqo_pool_size = 0
|
||||
#geqo_generations = 0
|
||||
#geqo_selection_bias = 2.0
|
||||
#geqo_seed = 0.0
|
||||
#default_statistics_target = 100
|
||||
#constraint_exclusion = partition
|
||||
#cursor_tuple_fraction = 0.1
|
||||
#from_collapse_limit = 8
|
||||
#join_collapse_limit = 8
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# ERROR REPORTING AND LOGGING
|
||||
#------------------------------------------------------------------------------
|
||||
log_destination = 'stderr'
|
||||
logging_collector = on
|
||||
log_directory = '/data/logs/postgres'
|
||||
log_filename = 'postgresql.log'
|
||||
#log_file_mode = 0600
|
||||
log_truncate_on_rotation = on
|
||||
log_rotation_age = 1d
|
||||
log_rotation_size = 0
|
||||
#syslog_facility = 'LOCAL0'
|
||||
#syslog_ident = 'postgres'
|
||||
#event_source = 'PostgreSQL'
|
||||
#client_min_messages = notice
|
||||
#log_min_messages = warning
|
||||
#log_min_error_statement = error
|
||||
#log_min_duration_statement = -1
|
||||
#debug_print_parse = off
|
||||
#debug_print_rewritten = off
|
||||
#debug_print_plan = off
|
||||
#debug_pretty_print = on
|
||||
#log_checkpoints = off
|
||||
#log_connections = off
|
||||
#log_disconnections = off
|
||||
#log_duration = off
|
||||
#log_error_verbosity = default
|
||||
#log_hostname = off
|
||||
#log_line_prefix = ''
|
||||
#log_lock_waits = off
|
||||
#log_statement = 'none'
|
||||
#log_temp_files = -1
|
||||
log_timezone = 'US/Eastern'
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# RUNTIME STATISTICS
|
||||
#------------------------------------------------------------------------------
|
||||
#track_activities = on
|
||||
#track_counts = on
|
||||
#track_io_timing = off
|
||||
#track_functions = none
|
||||
#track_activity_query_size = 1024
|
||||
#update_process_title = on
|
||||
#stats_temp_directory = 'pg_stat_tmp'
|
||||
#log_parser_stats = off
|
||||
#log_planner_stats = off
|
||||
#log_executor_stats = off
|
||||
#log_statement_stats = off
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# AUTOVACUUM PARAMETERS
|
||||
#------------------------------------------------------------------------------
|
||||
#autovacuum = on
|
||||
#log_autovacuum_min_duration = -1
|
||||
#autovacuum_max_workers = 3
|
||||
#autovacuum_naptime = 1min
|
||||
#autovacuum_vacuum_threshold = 50
|
||||
#autovacuum_analyze_threshold = 50
|
||||
#autovacuum_vacuum_scale_factor = 0.2
|
||||
#autovacuum_analyze_scale_factor = 0.1
|
||||
#autovacuum_freeze_max_age = 200000000
|
||||
#autovacuum_vacuum_cost_delay = 20ms
|
||||
#autovacuum_vacuum_cost_limit = -1
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# CLIENT CONNECTION DEFAULTS
|
||||
#------------------------------------------------------------------------------
|
||||
#search_path = '"$user",public'
|
||||
#default_tablespace = ''
|
||||
#temp_tablespaces = ''
|
||||
#check_function_bodies = on
|
||||
#default_transaction_isolation = 'read committed'
|
||||
#default_transaction_read_only = off
|
||||
#default_transaction_deferrable = off
|
||||
#session_replication_role = 'origin'
|
||||
#statement_timeout = 0
|
||||
#vacuum_freeze_min_age = 50000000
|
||||
#vacuum_freeze_table_age = 150000000
|
||||
#bytea_output = 'hex'
|
||||
#xmlbinary = 'base64'
|
||||
#xmloption = 'content'
|
||||
#gin_fuzzy_search_limit = 0
|
||||
datestyle = 'iso, mdy'
|
||||
#intervalstyle = 'postgres'
|
||||
timezone = 'US/Eastern'
|
||||
#extra_float_digits = 0
|
||||
#client_encoding = sql_ascii
|
||||
lc_messages = 'en_US.UTF-8'
|
||||
lc_monetary = 'en_US.UTF-8'
|
||||
lc_numeric = 'en_US.UTF-8'
|
||||
lc_time = 'en_US.UTF-8'
|
||||
default_text_search_config = 'pg_catalog.english'
|
||||
#dynamic_library_path = '$libdir'
|
||||
#local_preload_libraries = ''
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# LOCK MANAGEMENT
|
||||
#------------------------------------------------------------------------------
|
||||
#deadlock_timeout = 1s
|
||||
#max_locks_per_transaction = 64
|
||||
#max_pred_locks_per_transaction = 64
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# VERSION/PLATFORM COMPATIBILITY
|
||||
#------------------------------------------------------------------------------
|
||||
#array_nulls = on
|
||||
#backslash_quote = safe_encoding
|
||||
#default_with_oids = off
|
||||
#escape_string_warning = on
|
||||
#lo_compat_privileges = off
|
||||
#quote_all_identifiers = off
|
||||
#sql_inheritance = on
|
||||
#standard_conforming_strings = on
|
||||
#synchronize_seqscans = on
|
||||
#transform_null_equals = off
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# ERROR HANDLING
|
||||
#------------------------------------------------------------------------------
|
||||
#exit_on_error = off
|
||||
#restart_after_crash = on
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# CUSTOMIZED OPTIONS
|
||||
#------------------------------------------------------------------------------
|
||||
# Add settings for extensions here
|
Reference in New Issue
Block a user