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
|
# Optional configuration file for dserve: use as
# dserve <portnr> <configuration_file_path>
#
# The configuration file is required for dservehttps,
# since key_file and cert_file must be given.
#
# Set multiple values by writing them to lines following
# a def, one item per line, with a leading whitespace, like this:
# admin_tokens=token1
# token2
# token3
#
# all ops creating and deleting databases are considered admin ops.
# all ops adding, updating or deleting data are considered write ops.
# ops not changing any databases are considered read ops.
# -------------
# Defaults and limits for creating new databases: all numeric.
# default_dbase: a dbase name in case none given in request:
# overrides the DEFAULT_DATABASE=1000 macro in dserve.h
# default_dbase_size: default size if none given in request:
# overrides the DEFAULT_DATABASE_SIZE=10000000 macro in dserve.h
# set this to 0 to inhibit automatic database creation upon insert
# max_dbase_size: limit for new database size:
# overrides the MAX_DATABASE_SIZE=10000000000 macro in dserve.h
# set this to 0 to inhibit any database creation
#default_dbase=1000
#default_dbase_size=1000000
#max_dbase_size=100000000
# -------------
# Limit access to these databases only: no limit by default
#dbases=1000
# 1001
# 1002
# -------------
# Limit access from these IP addresses only: no limit by default.
# Use 127.0.0.1 for localhost.
# You can give a first part of the IP address like 127.0: this
# will match all IP addresses with this prefix.
# admin ips get also write and read permissions
# write ips get also read permissions.
# If you set a read or write ips, be sure to set
# stronger ip as well (possibly to 127.0.0.1),
# otherwise the requirement is not enforced.
# If any of these is not defined, there are no ip limits
# for this and weaker kinds of operations.
# Multiple values are accepted.
#admin_ips=127.0.0.1
#write_ips=127.0.0.1
#read_ips=127.0.0.1
# -------------
# Limit access by secret tokens: no limit by default.
# If tokens set, token=sometoken parameter required
# with sometoken being in a set of tokens given here.
# admin tokens give also write and read permissions
# write tokens give also read permissions.
# If you set a read or write token, be sure to set
# stronger tokens as well (possibly to values not told
# to anyone), otherwise the requirement is not enforced.
# If any of these is not defined, there are no limits
# for this and weaker kinds of operations.
# Multiple values are accepted.
#admin_tokens=secret1
#write_tokens=secret1
#read_tokens=secret1
# -------------
# path to private key file for https: needed for dservehttps only
# example created by:
# openssl req -x509 -nodes -days 365 -newkey rsa:2048
# -keyout exampleprivatekey.key -out examplecertificate.crt
# or from this by: openssl rsa -in exampleprivatekey.key -out exampleprivatekey.pem
#key_file=/home/tanel/whitedb/Server/exampleprivatekey.key
# -------------
# path to certificate key file for https: needed for dservehttps only
# example file created by the previous key/cert generation command
#cert_file=/home/tanel/whitedb/Server/examplecertificate.crt
|