2018-04-03 13:30:14 -04:00
|
|
|
= form_for @application_setting, url: admin_application_settings_path, html: { class: 'form-horizontal fieldset-form' } do |f|
|
|
|
|
= form_errors(@application_setting)
|
|
|
|
|
|
|
|
%fieldset
|
|
|
|
.form-group
|
|
|
|
.col-sm-offset-2.col-sm-10
|
2018-04-11 14:05:57 -04:00
|
|
|
.form-check
|
2018-04-03 13:30:14 -04:00
|
|
|
= f.label :throttle_unauthenticated_enabled do
|
|
|
|
= f.check_box :throttle_unauthenticated_enabled
|
|
|
|
Enable unauthenticated request rate limit
|
2018-04-11 14:26:37 -04:00
|
|
|
%span.form-text.text-muted
|
2018-04-03 13:30:14 -04:00
|
|
|
Helps reduce request volume (e.g. from crawlers or abusive bots)
|
|
|
|
.form-group
|
2018-04-11 15:36:17 -04:00
|
|
|
= f.label :throttle_unauthenticated_requests_per_period, 'Max requests per period per IP', class: 'col-form-label col-sm-2'
|
2018-04-03 13:30:14 -04:00
|
|
|
.col-sm-10
|
|
|
|
= f.number_field :throttle_unauthenticated_requests_per_period, class: 'form-control'
|
|
|
|
.form-group
|
2018-04-11 15:36:17 -04:00
|
|
|
= f.label :throttle_unauthenticated_period_in_seconds, 'Rate limit period in seconds', class: 'col-form-label col-sm-2'
|
2018-04-03 13:30:14 -04:00
|
|
|
.col-sm-10
|
|
|
|
= f.number_field :throttle_unauthenticated_period_in_seconds, class: 'form-control'
|
|
|
|
.form-group
|
|
|
|
.col-sm-offset-2.col-sm-10
|
2018-04-11 14:05:57 -04:00
|
|
|
.form-check
|
2018-04-03 13:30:14 -04:00
|
|
|
= f.label :throttle_authenticated_api_enabled do
|
|
|
|
= f.check_box :throttle_authenticated_api_enabled
|
|
|
|
Enable authenticated API request rate limit
|
2018-04-11 14:26:37 -04:00
|
|
|
%span.form-text.text-muted
|
2018-04-03 13:30:14 -04:00
|
|
|
Helps reduce request volume (e.g. from crawlers or abusive bots)
|
|
|
|
.form-group
|
2018-04-11 15:36:17 -04:00
|
|
|
= f.label :throttle_authenticated_api_requests_per_period, 'Max requests per period per user', class: 'col-form-label col-sm-2'
|
2018-04-03 13:30:14 -04:00
|
|
|
.col-sm-10
|
|
|
|
= f.number_field :throttle_authenticated_api_requests_per_period, class: 'form-control'
|
|
|
|
.form-group
|
2018-04-11 15:36:17 -04:00
|
|
|
= f.label :throttle_authenticated_api_period_in_seconds, 'Rate limit period in seconds', class: 'col-form-label col-sm-2'
|
2018-04-03 13:30:14 -04:00
|
|
|
.col-sm-10
|
|
|
|
= f.number_field :throttle_authenticated_api_period_in_seconds, class: 'form-control'
|
|
|
|
.form-group
|
|
|
|
.col-sm-offset-2.col-sm-10
|
2018-04-11 14:05:57 -04:00
|
|
|
.form-check
|
2018-04-03 13:30:14 -04:00
|
|
|
= f.label :throttle_authenticated_web_enabled do
|
|
|
|
= f.check_box :throttle_authenticated_web_enabled
|
|
|
|
Enable authenticated web request rate limit
|
2018-04-11 14:26:37 -04:00
|
|
|
%span.form-text.text-muted
|
2018-04-03 13:30:14 -04:00
|
|
|
Helps reduce request volume (e.g. from crawlers or abusive bots)
|
|
|
|
.form-group
|
2018-04-11 15:36:17 -04:00
|
|
|
= f.label :throttle_authenticated_web_requests_per_period, 'Max requests per period per user', class: 'col-form-label col-sm-2'
|
2018-04-03 13:30:14 -04:00
|
|
|
.col-sm-10
|
|
|
|
= f.number_field :throttle_authenticated_web_requests_per_period, class: 'form-control'
|
|
|
|
.form-group
|
2018-04-11 15:36:17 -04:00
|
|
|
= f.label :throttle_authenticated_web_period_in_seconds, 'Rate limit period in seconds', class: 'col-form-label col-sm-2'
|
2018-04-03 13:30:14 -04:00
|
|
|
.col-sm-10
|
|
|
|
= f.number_field :throttle_authenticated_web_period_in_seconds, class: 'form-control'
|
|
|
|
|
|
|
|
= f.submit 'Save changes', class: "btn btn-success"
|