2017-06-21 12:23:11 +00:00
|
|
|
# odissey configuration file.
|
2016-11-07 13:25:12 +00:00
|
|
|
#
|
2016-11-07 12:06:49 +00:00
|
|
|
|
2017-08-02 10:41:37 +00:00
|
|
|
# include "path"
|
|
|
|
|
2017-09-21 13:44:19 +00:00
|
|
|
daemonize no
|
|
|
|
# pid_file "./odissey.pid"
|
|
|
|
# log_file "./odissey.log"
|
|
|
|
#
|
|
|
|
# log text format
|
|
|
|
#
|
2017-09-21 14:17:33 +00:00
|
|
|
# %n = unixtime
|
|
|
|
# %t = timestamp with date
|
2017-09-21 13:44:19 +00:00
|
|
|
# %p = process ID
|
|
|
|
# %i = client ID
|
|
|
|
# %s = server ID
|
|
|
|
# %u = user name
|
|
|
|
# %d = database name
|
|
|
|
# %c = context
|
|
|
|
# %l = level (error, warning, debug)
|
|
|
|
# %m = message
|
|
|
|
# %M = message tskv
|
2017-09-21 14:17:33 +00:00
|
|
|
# %r = client port
|
|
|
|
# %h = client host
|
|
|
|
log_format "%p %t %l [%i %s] (%c) %m\n"
|
2017-09-18 13:14:52 +00:00
|
|
|
|
|
|
|
log_to_stdout yes
|
|
|
|
log_syslog yes
|
|
|
|
log_syslog_ident "odissey"
|
|
|
|
log_syslog_facility "daemon"
|
|
|
|
log_debug yes
|
|
|
|
log_config yes
|
|
|
|
log_session yes
|
2017-10-26 12:54:32 +00:00
|
|
|
log_query no
|
2017-09-18 13:14:52 +00:00
|
|
|
log_stats yes
|
|
|
|
stats_interval 3
|
|
|
|
nodelay yes
|
|
|
|
keepalive 7200
|
|
|
|
readahead 16384
|
|
|
|
pipelining 16384
|
|
|
|
client_max 100
|
|
|
|
workers 3
|
2017-06-02 13:49:20 +00:00
|
|
|
|
2017-07-13 12:58:32 +00:00
|
|
|
listen {
|
2017-06-21 12:23:11 +00:00
|
|
|
host "*"
|
|
|
|
port 6432
|
|
|
|
# backlog 16
|
2017-06-24 13:04:20 +00:00
|
|
|
tls "disable"
|
2017-06-21 12:23:11 +00:00
|
|
|
# tls_cert_file ""
|
|
|
|
# tls_key_file ""
|
|
|
|
# tls_ca_file ""
|
|
|
|
# tls_protocols ""
|
|
|
|
}
|
2016-11-07 12:06:49 +00:00
|
|
|
|
2017-07-13 12:58:32 +00:00
|
|
|
storage "local" {
|
2017-06-24 14:59:28 +00:00
|
|
|
type "local"
|
|
|
|
}
|
|
|
|
|
2017-07-13 12:58:32 +00:00
|
|
|
storage "pg_server" {
|
2017-06-22 12:29:39 +00:00
|
|
|
type "remote"
|
2017-06-21 12:23:11 +00:00
|
|
|
host "127.0.0.1"
|
|
|
|
port 5432
|
2017-06-24 13:04:20 +00:00
|
|
|
tls "disable"
|
2017-06-21 12:23:11 +00:00
|
|
|
# tls_ca_file ""
|
|
|
|
# tls_key_file ""
|
|
|
|
# tls_cert_file ""
|
|
|
|
# tls_protocols ""
|
|
|
|
}
|
2016-11-07 12:06:49 +00:00
|
|
|
|
2017-07-13 12:58:32 +00:00
|
|
|
database "console" {
|
2017-07-03 14:32:48 +00:00
|
|
|
user default {
|
|
|
|
authentication "none"
|
2017-07-13 12:34:10 +00:00
|
|
|
pool "session"
|
2017-07-03 14:32:48 +00:00
|
|
|
storage "local"
|
|
|
|
}
|
2017-06-24 14:59:28 +00:00
|
|
|
}
|
|
|
|
|
2017-07-03 14:32:48 +00:00
|
|
|
database default
|
|
|
|
{
|
|
|
|
user default {
|
2017-07-04 12:12:07 +00:00
|
|
|
# none, block, clear_text, md5
|
2017-10-04 15:29:39 +00:00
|
|
|
authentication "none"
|
2017-10-04 15:07:54 +00:00
|
|
|
#password ""
|
|
|
|
|
2017-10-05 13:42:30 +00:00
|
|
|
#auth_query "select username, pass from auth where username='%u'"
|
2017-09-25 14:10:44 +00:00
|
|
|
#auth_query_user ""
|
|
|
|
#auth_query_db ""
|
2017-07-03 10:56:47 +00:00
|
|
|
|
2017-07-03 14:32:48 +00:00
|
|
|
storage "pg_server"
|
|
|
|
#storage_user "test"
|
|
|
|
#storage_password "test"
|
|
|
|
#storage_db "database"
|
2017-07-03 11:33:03 +00:00
|
|
|
|
2017-07-03 14:32:48 +00:00
|
|
|
pool "transaction"
|
|
|
|
pool_size 100
|
|
|
|
pool_timeout 4000
|
|
|
|
pool_ttl 5
|
|
|
|
pool_cancel yes
|
|
|
|
pool_discard yes
|
|
|
|
pool_rollback yes
|
2017-07-03 11:33:03 +00:00
|
|
|
|
2017-09-12 13:45:04 +00:00
|
|
|
#client_fwd_error no
|
2017-07-03 14:32:48 +00:00
|
|
|
#client_max 100
|
|
|
|
}
|
2016-11-07 12:06:49 +00:00
|
|
|
}
|