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

ببب

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