add postgresql
This commit is contained in:
parent
953985a3ea
commit
2578cd7a6d
10 changed files with 164 additions and 2 deletions
2
lib/data/templates/postgresql/pg_hba.conf.erb
Normal file
2
lib/data/templates/postgresql/pg_hba.conf.erb
Normal file
|
@ -0,0 +1,2 @@
|
|||
local all all peer
|
||||
hostssl all all 0.0.0.0/0 scram-sha-256
|
52
lib/data/templates/postgresql/postgresql.conf.erb
Normal file
52
lib/data/templates/postgresql/postgresql.conf.erb
Normal file
|
@ -0,0 +1,52 @@
|
|||
|
||||
data_directory = '/var/lib/postgresql/15/main'
|
||||
hba_file = '/etc/postgresql/15/main/pg_hba.conf'
|
||||
ident_file = '/etc/postgresql/15/main/pg_ident.conf'
|
||||
|
||||
|
||||
#listen_addresses = 'localhost'
|
||||
listen_addresses = '*'
|
||||
port = 5432
|
||||
max_connections = 100
|
||||
unix_socket_directories = '/var/run/postgresql'
|
||||
password_encryption = scram-sha-256
|
||||
|
||||
ssl = on
|
||||
#ssl_ca_file = ''
|
||||
ssl_cert_file = '/etc/ssl/certs/ssl-cert-snakeoil.pem'
|
||||
#ssl_crl_file = ''
|
||||
#ssl_crl_dir = ''
|
||||
ssl_key_file = '/etc/ssl/private/ssl-cert-snakeoil.key'
|
||||
#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
|
||||
|
||||
shared_buffers = 128MB
|
||||
dynamic_shared_memory_type = posix # the default is usually the first option
|
||||
|
||||
max_wal_size = 1GB
|
||||
min_wal_size = 80MB
|
||||
|
||||
log_line_prefix = '%m [%p] %q%u@%d '
|
||||
log_timezone = 'Etc/UTC'
|
||||
|
||||
|
||||
cluster_name = '15/main'
|
||||
|
||||
datestyle = 'iso, mdy'
|
||||
timezone = 'Etc/UTC'
|
||||
lc_messages = 'C.UTF-8'
|
||||
lc_monetary = 'C.UTF-8'
|
||||
lc_numeric = 'C.UTF-8'
|
||||
lc_time = 'C.UTF-8'
|
||||
|
||||
default_text_search_config = 'pg_catalog.english'
|
||||
|
||||
# include files ending in '.conf' from
|
||||
include_dir = 'conf.d'
|
||||
|
4
lib/data/templates/postgresql/test.erb
Normal file
4
lib/data/templates/postgresql/test.erb
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
|
||||
|
||||
<%= te %>
|
Loading…
Add table
Add a link
Reference in a new issue