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