Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9311654
throttling_test_settings.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
696 B
Subscribers
None
throttling_test_settings.py
View Options
# Copyright (C) 2017 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
import
os
import
django
from
swh.web.config
import
get_config
swh_web_config
=
get_config
()
swh_web_config
[
'debug'
]
=
False
swh_web_config
[
'limiters'
]
=
{
'scope1'
:
{
'limiter_rate'
:
'3/min'
},
'scope2'
:
{
'limiter_rate'
:
'5/min'
,
'exempted_networks'
:
[
'127.0.0.0/8'
]
}
}
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"swh.web.settings"
)
django
.
setup
()
scope1_limiter_rate
=
3
scope2_limiter_rate
=
5
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Thu, Jul 3, 10:26 AM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3352085
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment