This repository has been archived by the owner on Dec 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
local.ini.template
90 lines (70 loc) · 1.64 KB
/
local.ini.template
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
[app:example_api]
use = egg:example_api
# Nefertari settings
; nefertari.engine = nefertari_mongodb
nefertari.engine = nefertari_sqla
# SQLA
sqlalchemy.url = postgresql://%(host)s:5432/example_api
# MongoDB settings
mongodb.host = localhost
mongodb.port = 27017
mongodb.db = example_api
#ElasticSearch
elasticsearch.hosts = localhost:9200
elasticsearch.sniff = false
elasticsearch.index_name = example_api
elasticsearch.chunk_size = 1000
elasticsearch.enable_refresh_query = true
elasticsearch.enable_aggregations = true
elasticsearch.enable_polymorphic_query = true
# example_api
host = localhost
base_url = http://%(host)s:6543
auth = true
enable_get_tunneling = true
public_max_limit = 100
request_timing.enable = true
request_timing.slow_request_threshold = 2
auth_tkt_secret = UaneexaSh3choozah6mea9umoo8ePhoh
system.user = system
system.password = 123456
system.email = [email protected]
# CORS
cors.enable = false
cors.allow_origins = %(base_url)s
cors.allow_credentials = true
###
# wsgi server configuration
###
[composite:main]
use = egg:Paste#urlmap
/api/ = example_api
[server:main]
use = egg:waitress#main
host = localhost
port = 6543
threads = 3
[loggers]
keys = root, example_api, nefertari
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_example_api]
level = INFO
handlers =
qualname = example_api
[logger_nefertari]
level = DEBUG
handlers =
qualname = nefertari
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(module)s.%(funcName)s: %(message)s