Changeset View
Changeset View
Standalone View
Standalone View
swh/web/config.py
Show All 31 Lines | DEFAULT_CONFIG = { | ||||
}), | }), | ||||
'log_dir': ('string', '/tmp/swh/log'), | 'log_dir': ('string', '/tmp/swh/log'), | ||||
'debug': ('bool', False), | 'debug': ('bool', False), | ||||
'serve_assets': ('bool', False), | 'serve_assets': ('bool', False), | ||||
'host': ('string', '127.0.0.1'), | 'host': ('string', '127.0.0.1'), | ||||
'port': ('int', 5004), | 'port': ('int', 5004), | ||||
'secret_key': ('string', 'development key'), | 'secret_key': ('string', 'development key'), | ||||
# do not display code highlighting for content > 1MB | # do not display code highlighting for content > 1MB | ||||
'content_display_max_size': ('int', 1024 * 1024), | 'content_display_max_size': ('int', 5 * 1024 * 1024), | ||||
'snapshot_content_max_size': ('int', 1000), | 'snapshot_content_max_size': ('int', 1000), | ||||
'throttling': ('dict', { | 'throttling': ('dict', { | ||||
'cache_uri': None, # production: memcached as cache (127.0.0.1:11211) | 'cache_uri': None, # production: memcached as cache (127.0.0.1:11211) | ||||
# development: in-memory cache so None | # development: in-memory cache so None | ||||
'scopes': { | 'scopes': { | ||||
'swh_api': { | 'swh_api': { | ||||
'limiter_rate': { | 'limiter_rate': { | ||||
'default': '120/h' | 'default': '120/h' | ||||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |