-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpgasus.conf
95 lines (79 loc) · 1.88 KB
/
pgasus.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#
# Configuration for pgasus
# Format: TOML 0.4
#
[system]
maxprocs = 8
verbose = true
[http]
address = ":8080"
url_prefix = ""
#key = "server.key"
#cert = "server.crt"
# https://support.cloudflare.com/hc/en-us/articles/204899617-Authenticated-Origin-Pulls
#client_ca = "ca.crt"
#requests_log_file = "requests.log"
default_client_cn = ""
update_forwarded_for_header = true
max_header_size_kbytes = 16
max_body_size_kbytes = 1024
max_response_size_kbytes = 10240
read_timeout_secs = 10
write_timeout_secs = 10
# cookies_domain = "domain.com"
# cookies_path = "/root/path"
[postgres]
#socket = "/var/run/postgresql"
socket = "127.0.0.1"
port = 54321
# server_certificate = "server.crt"
# ca_certificates = "ca.crt"
database = "docker"
updates_channel_name = "pgasus.reload_routes"
search_path = "webapp,pgasus,public"
max_open_connections = 4
context_parameter_name = "context"
routes_table_name = "routes"
fts_function_name = "parse_fts_query"
statement_timeout_secs = 5
[protocol]
filter_query_name = "f"
sort_query_name = "s"
limit_query_name = "l"
[default_context]
test = "ok"
[[binary_formats]]
extension = "pdf"
mime_type = "application/pdf"
[[binary_formats]]
# don't build a whole website on this!
# if you have a lot of templating, let many web servers take the load, and let the DB handle SQL queries
extension = "html"
mime_type = "text/html"
[[binary_formats]]
extension = "htm"
mime_type = "text/html"
[[binary_formats]]
extension = "txt"
mime_type = "text/plain"
[[binary_formats]]
extension = "bmp"
mime_type = "image/bmp"
[[binary_formats]]
extension = "gif"
mime_type = "image/gif"
[[binary_formats]]
extension = "png"
mime_type = "image/png"
[[binary_formats]]
extension = "jpg"
mime_type = "image/jpeg"
[[binary_formats]]
extension = "jpeg"
mime_type = "image/jpeg"
[[binary_formats]]
extension = "webp"
mime_type = "image/webp"
[[binary_formats]]
extension = "svg"
mime_type = "image/svg+xml"