##// END OF EJS Templates
ini: added new key
ergo -
Show More
@@ -1,180 +1,182 b''
1 [app:appenlight]
1 [app:appenlight]
2 use = egg:appenlight
2 use = egg:appenlight
3 reload_templates = false
3 reload_templates = false
4 debug_authorization = false
4 debug_authorization = false
5 debug_notfound = false
5 debug_notfound = false
6 debug_routematch = false
6 debug_routematch = false
7 debug_templates = false
7 debug_templates = false
8 default_locale_name = en
8 default_locale_name = en
9 sqlalchemy.url = {{ appenlight_dbstring }}
9 sqlalchemy.url = {{ appenlight_dbstring }}
10 sqlalchemy.pool_size = 10
10 sqlalchemy.pool_size = 10
11 sqlalchemy.max_overflow = 50
11 sqlalchemy.max_overflow = 50
12 sqlalchemy.echo = false
12 sqlalchemy.echo = false
13 jinja2.directories = appenlight:templates
13 jinja2.directories = appenlight:templates
14 jinja2.filters = nl2br = appenlight.lib.jinja2_filters.nl2br
14 jinja2.filters = nl2br = appenlight.lib.jinja2_filters.nl2br
15
15
16 appenlight.disable_registration = false
17
16 #includes
18 #includes
17 appenlight.includes =
19 appenlight.includes =
todo

ببب

18
20
19 #redis
21 #redis
20 redis.url = redis://localhost:6379/0
22 redis.url = redis://localhost:6379/0
21 redis.redlock.url = redis://localhost:6379/3
23 redis.redlock.url = redis://localhost:6379/3
22
24
23 #elasticsearch
25 #elasticsearch
24 elasticsearch.nodes = http://127.0.0.1:9200
26 elasticsearch.nodes = http://127.0.0.1:9200
25
27
26 #dirs
28 #dirs
27 webassets.dir = %(here)s/webassets/
29 webassets.dir = %(here)s/webassets/
28
30
29 # encryption
31 # encryption
30 encryption_secret = {{appenlight_encryption_secret}}
32 encryption_secret = {{appenlight_encryption_secret}}
31
33
32 #authtkt
34 #authtkt
33 # uncomment if you use SSL
35 # uncomment if you use SSL
34 # authtkt.secure = true
36 # authtkt.secure = true
35 authtkt.secret = {{appenlight_authtkt_secret}}
37 authtkt.secret = {{appenlight_authtkt_secret}}
36 # session settings
38 # session settings
37 redis.sessions.secret = {{appenlight_redis_session_secret}}
39 redis.sessions.secret = {{appenlight_redis_session_secret}}
38 redis.sessions.timeout = 86400
40 redis.sessions.timeout = 86400
39
41
40 # session cookie settings
42 # session cookie settings
41 redis.sessions.cookie_name = appenlight
43 redis.sessions.cookie_name = appenlight
42 redis.sessions.cookie_max_age = 2592000
44 redis.sessions.cookie_max_age = 2592000
43 redis.sessions.cookie_path = /
45 redis.sessions.cookie_path = /
44 redis.sessions.cookie_domain =
46 redis.sessions.cookie_domain =
45 # uncomment if you use SSL
47 # uncomment if you use SSL
46 redis.sessions.cookie_secure = True
48 redis.sessions.cookie_secure = True
47 redis.sessions.cookie_httponly = True
49 redis.sessions.cookie_httponly = True
48 redis.sessions.cookie_on_exception = True
50 redis.sessions.cookie_on_exception = True
49 redis.sessions.prefix = appenlight:session:
51 redis.sessions.prefix = appenlight:session:
50
52
51 #mailing
53 #mailing
52 mailing.app_url = https://{{appenlight_domain}}
54 mailing.app_url = https://{{appenlight_domain}}
53 mailing.from_name = AppEnlight
55 mailing.from_name = AppEnlight
54 mailing.from_email = no-reply@{{appenlight_domain}}
56 mailing.from_email = no-reply@{{appenlight_domain}}
55
57
56 ###
58 ###
57 # Authomatic configuration
59 # Authomatic configuration
58 ###
60 ###
59
61
60 authomatic.secret =
62 authomatic.secret =
61 authomatic.pr.facebook.app_id =
63 authomatic.pr.facebook.app_id =
62 authomatic.pr.facebook.secret =
64 authomatic.pr.facebook.secret =
63 authomatic.pr.twitter.key =
65 authomatic.pr.twitter.key =
64 authomatic.pr.twitter.secret =
66 authomatic.pr.twitter.secret =
65 authomatic.pr.google.key =
67 authomatic.pr.google.key =
66 authomatic.pr.google.secret =
68 authomatic.pr.google.secret =
67 authomatic.pr.github.key =
69 authomatic.pr.github.key =
68 authomatic.pr.github.secret =
70 authomatic.pr.github.secret =
69 authomatic.pr.github.scope =
71 authomatic.pr.github.scope =
70 authomatic.pr.bitbucket.key =
72 authomatic.pr.bitbucket.key =
71 authomatic.pr.bitbucket.secret =
73 authomatic.pr.bitbucket.secret =
72
74
73 #ziggurat
75 #ziggurat
74 ziggurat_foundations.model_locations.User = appenlight.models.user:User
76 ziggurat_foundations.model_locations.User = appenlight.models.user:User
75 ziggurat_foundations.sign_in.username_key = sign_in_user_name
77 ziggurat_foundations.sign_in.username_key = sign_in_user_name
76 ziggurat_foundations.sign_in.password_key = sign_in_user_password
78 ziggurat_foundations.sign_in.password_key = sign_in_user_password
77 ziggurat_foundations.sign_in.came_from_key = came_from
79 ziggurat_foundations.sign_in.came_from_key = came_from
78
80
79 #cometd
81 #cometd
80 cometd.server = http://127.0.0.1:8088
82 cometd.server = http://127.0.0.1:8088
81 cometd.secret = secret
83 cometd.secret = secret
82 cometd.ws_url = wss://{{appenlight_domain}}/channelstream
84 cometd.ws_url = wss://{{appenlight_domain}}/channelstream
83
85
84 # for celery
86 # for celery
85 appenlight.api_key =
87 appenlight.api_key =
86 appenlight.transport_config =
88 appenlight.transport_config =
87 appenlight.public_api_key =
89 appenlight.public_api_key =
88
90
89 # celery
91 # celery
90 celery.broker_type = redis
92 celery.broker_type = redis
91 celery.broker_url = redis://localhost:6379/3
93 celery.broker_url = redis://localhost:6379/3
92 celery.concurrency = 2
94 celery.concurrency = 2
93 celery.timezone = UTC
95 celery.timezone = UTC
94
96
95 # tasks
97 # tasks
96
98
97 # how often run alerting tasks (60s default)
99 # how often run alerting tasks (60s default)
98 tasks.notifications_reports.interval = 60
100 tasks.notifications_reports.interval = 60
99
101
100 [filter:paste_prefix]
102 [filter:paste_prefix]
101 use = egg:PasteDeploy#prefix
103 use = egg:PasteDeploy#prefix
102
104
103
105
104 [filter:appenlight_client]
106 [filter:appenlight_client]
105 use = egg:appenlight_client
107 use = egg:appenlight_client
106 appenlight.api_key =
108 appenlight.api_key =
107
109
108 # appenlight.transport_config = http://127.0.0.1:6543?threaded=1&timeout=5&verify=0
110 # appenlight.transport_config = http://127.0.0.1:6543?threaded=1&timeout=5&verify=0
109 # by default uses api.appenlight.com server
111 # by default uses api.appenlight.com server
110 appenlight.transport_config =
112 appenlight.transport_config =
111 appenlight.report_local_vars = true
113 appenlight.report_local_vars = true
112 appenlight.report_404 = true
114 appenlight.report_404 = true
113 appenlight.timing.dbapi2_psycopg2 = 0.3
115 appenlight.timing.dbapi2_psycopg2 = 0.3
114
116
115
117
116
118
117 [pipeline:main]
119 [pipeline:main]
118 pipeline = paste_prefix
120 pipeline = paste_prefix
119 appenlight_client
121 appenlight_client
120 appenlight
122 appenlight
121
123
122
124
123
125
124 [server:main]
126 [server:main]
125 use = egg:gunicorn#main
127 use = egg:gunicorn#main
126 host = 0.0.0.0:6543, unix:/tmp/appenlight.sock
128 host = 0.0.0.0:6543, unix:/tmp/appenlight.sock
127 workers = 2
129 workers = 2
128 timeout = 90
130 timeout = 90
129 max_requests = 10000
131 max_requests = 10000
130
132
131 [server:api]
133 [server:api]
132 use = egg:gunicorn#main
134 use = egg:gunicorn#main
133 host = 0.0.0.0:6553, unix:/tmp/api.appenlight.sock
135 host = 0.0.0.0:6553, unix:/tmp/api.appenlight.sock
134 workers = 2
136 workers = 2
135 max_requests = 10000
137 max_requests = 10000
136
138
137
139
138 # Begin logging configuration
140 # Begin logging configuration
139
141
140 [loggers]
142 [loggers]
141 keys = root, appenlight, sqlalchemy
143 keys = root, appenlight, sqlalchemy
142
144
143 [handlers]
145 [handlers]
144 keys = console
146 keys = console
145
147
146 [formatters]
148 [formatters]
147 keys = generic, json
149 keys = generic, json
148
150
149 [logger_root]
151 [logger_root]
150 level = WARN
152 level = WARN
151 handlers = console
153 handlers = console
152
154
153 [logger_appenlight]
155 [logger_appenlight]
154 level = WARN
156 level = WARN
155 handlers =
157 handlers =
156 qualname = appenlight
158 qualname = appenlight
157
159
158 [logger_sqlalchemy]
160 [logger_sqlalchemy]
159 level = WARN
161 level = WARN
160 handlers =
162 handlers =
161 qualname = sqlalchemy.engine
163 qualname = sqlalchemy.engine
162 # "level = INFO" logs SQL queries.
164 # "level = INFO" logs SQL queries.
163 # "level = DEBUG" logs SQL queries and results.
165 # "level = DEBUG" logs SQL queries and results.
164 # "level = WARN" logs neither. (Recommended for production systems.)
166 # "level = WARN" logs neither. (Recommended for production systems.)
165
167
166 [handler_console]
168 [handler_console]
167 class = StreamHandler
169 class = StreamHandler
168 args = (sys.stderr,)
170 args = (sys.stderr,)
169 level = NOTSET
171 level = NOTSET
170 formatter = json
172 formatter = json
171
173
172 [formatter_generic]
174 [formatter_generic]
173 format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
175 format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
174
176
175 # json string will land as "message" key of format string
177 # json string will land as "message" key of format string
176 [formatter_json]
178 [formatter_json]
177 class=appenlight.lib.logging.JSONFormatter
179 class=appenlight.lib.logging.JSONFormatter
178 format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
180 format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
179
181
180 # End logging configuration
182 # End logging configuration
General Comments 3
Approved

Status change > Approved

Under Review
author

Auto status change to "Under Review"

Rejected

Please use: https://github.com/Appenlight/appenlight to contribute :) Thanks !

You need to be logged in to leave comments. Login now