-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsiridb-http.conf
78 lines (63 loc) · 2.43 KB
/
siridb-http.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
# SiriDB HTTP Configuration file
[Database]
# User with at least 'show' privileges.
user = <your_username>
# A password is required. To protect the password this file should be placed in
# a folder where unauthorized users have no access.
password = <your_password>
# Database to connect to.
dbname = <your_database>
# Multiple servers are allowed and should be comma separated. When a port
# is not provided the default 9000 is used. IPv6 address are supported and
# should be wrapped in square brackets [] in case an alternative port is
# required. SiriDB HTTP will randomly select an available siridb server
# for each request.
#
# Valid examples:
# siridb01.local,siridb02.local,siridb03.local,siridb04.local
# 10.20.30.40
# [::1]:5050,[::1]:5051
# 2001:0db8:85a3:0000:0000:8a2e:0370:7334
servers = localhost
[Configuration]
# Listening to TCP port.
port = 5050
# When disabled no authentication is required. When enabled session
# authentication or basic authentication is required.
require_authentication = True
# When enabled /socket.io/ will be enabled and Socket-IO can be used as an
# alternative to the standard http rest api.
enable_socket_io = True
# When enabled the crt_file and key_file must be configured and the server
# will be hosted on https.
enable_ssl = False
# When enabled a website is hosted on the configured port. When disabled the
# resource URIs like /query, /insert, /auth/.. etc. are still available.
enable_web = True
# When enabled the /query and /insert resource URIs can be used with basic
# authentication.
enable_basic_auth = False
# When multi user is disabled, only the user/password combination provided in
# this configuration file can be used.
enable_multi_user = False
# Cookie max age is used to set the cookie expiration time in seconds.
cookie_max_age = 604800
# The query api allows you to specify a timeout for each query, but the insert
# api only accepts data. Therefore the insert timeout is set as a general
# value and is applicable to each insert.
insert_timeout = 60
[SSL]
# Self-signed certificates can be created with the following command:
#
# openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
# -keyout certificate.key -out certificate.crt
#
crt_file = certificate.crt
key_file = certificate.key
#
# Welcome and thank you for using SiriDB!
#
# A configuration file is required and should be provided with the
# --config <file> argument.
# Above you find an example template which can be used.
#