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