diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 09:08:42 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 09:08:42 +0000 |
commit | b76ae638462ab0f673e5915986070518dd3f9ad3 (patch) | |
tree | bdab0533383b52873be0ec0eb4d3c66598ff8b91 /app/views/help | |
parent | 434373eabe7b4be9593d18a585fb763f1e5f1a6f (diff) | |
download | gitlab-ce-b76ae638462ab0f673e5915986070518dd3f9ad3.tar.gz |
Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42
Diffstat (limited to 'app/views/help')
4 files changed, 93 insertions, 0 deletions
diff --git a/app/views/help/instance_configuration.html.haml b/app/views/help/instance_configuration.html.haml index 1cd05dcf65e..88c531535b4 100644 --- a/app/views/help/instance_configuration.html.haml +++ b/app/views/help/instance_configuration.html.haml @@ -8,6 +8,8 @@ = render 'help/instance_configuration/ssh_info' = render 'help/instance_configuration/gitlab_pages' = render 'help/instance_configuration/gitlab_ci' + = render 'help/instance_configuration/package_registry' + = render 'help/instance_configuration/rate_limits' %p %strong= _("Table of contents") diff --git a/app/views/help/instance_configuration/_package_registry.html.haml b/app/views/help/instance_configuration/_package_registry.html.haml new file mode 100644 index 00000000000..38202b8d6e6 --- /dev/null +++ b/app/views/help/instance_configuration/_package_registry.html.haml @@ -0,0 +1,48 @@ +- package_file_size_limits = @instance_configuration.settings[:package_file_size_limits] +- content_for :table_content do + - if package_file_size_limits.present? + %li= link_to _('Package Registry'), '#package-registry' + +- content_for :settings_content do + - if package_file_size_limits.present? + %h2#package-registry + = _('Package Registry') + + %p + = _('There are several file size limits in place for the Package Registry.') + .table-responsive + %table + %thead + %tr + %th= _('Package type') + - package_file_size_limits.each_key do |title| + %th= title + %tbody + %tr + %td= 'Conan' + - package_file_size_limits.each_value do |limits| + %td= instance_configuration_human_size_cell(limits[:conan]) + %tr + %td= 'Maven' + - package_file_size_limits.each_value do |limits| + %td= instance_configuration_human_size_cell(limits[:maven]) + %tr + %td= 'npm' + - package_file_size_limits.each_value do |limits| + %td= instance_configuration_human_size_cell(limits[:npm]) + %tr + %td= 'NuGet' + - package_file_size_limits.each_value do |limits| + %td= instance_configuration_human_size_cell(limits[:nuget]) + %tr + %td= 'PyPI' + - package_file_size_limits.each_value do |limits| + %td= instance_configuration_human_size_cell(limits[:pypi]) + %tr + %td= 'Terraform Module' + - package_file_size_limits.each_value do |limits| + %td= instance_configuration_human_size_cell(limits[:terraform_module]) + %tr + %td= _('Generic') + - package_file_size_limits.each_value do |limits| + %td= instance_configuration_human_size_cell(limits[:generic]) diff --git a/app/views/help/instance_configuration/_rate_limit_row.html.haml b/app/views/help/instance_configuration/_rate_limit_row.html.haml new file mode 100644 index 00000000000..85c165de7d4 --- /dev/null +++ b/app/views/help/instance_configuration/_rate_limit_row.html.haml @@ -0,0 +1,7 @@ +- public_visible = local_assigns.fetch(:public_visible, false) + +- if rate_limit && (public_visible || user_signed_in?) + %tr + %td= title + %td= instance_configuration_cell_html(rate_limit[:enabled] ? rate_limit[:requests_per_period] : nil) + %td= instance_configuration_cell_html(rate_limit[:enabled] ? rate_limit[:period_in_seconds] : nil) diff --git a/app/views/help/instance_configuration/_rate_limits.html.haml b/app/views/help/instance_configuration/_rate_limits.html.haml new file mode 100644 index 00000000000..d72bd845c5b --- /dev/null +++ b/app/views/help/instance_configuration/_rate_limits.html.haml @@ -0,0 +1,36 @@ +- rate_limits = @instance_configuration.settings[:rate_limits] +- content_for :table_content do + - if rate_limits + %li= link_to _('Rate Limits'), '#rate-limits' + +- content_for :settings_content do + - if rate_limits + %h2#rate-limits + = _('Rate Limits') + + %p + = _('There are several rate limits in place to protect the system.') + .table-responsive + %table + %thead + %tr + %th= _('Rate limit') + %th= _('Requests per period') + %th= _('Period in seconds') + %tbody + = render 'help/instance_configuration/rate_limit_row', title: _('Unauthenticated requests'), rate_limit: rate_limits[:unauthenticated], public_visible: true + = render 'help/instance_configuration/rate_limit_row', title: _('Authenticated API requests'), rate_limit: rate_limits[:authenticated_api] + = render 'help/instance_configuration/rate_limit_row', title: _('Authenticated web requests'), rate_limit: rate_limits[:authenticated_web] + = render 'help/instance_configuration/rate_limit_row', title: _('Protected Paths: requests'), rate_limit: rate_limits[:protected_paths] + = render 'help/instance_configuration/rate_limit_row', title: _('Package Registry: unauthenticated API requests'), rate_limit: rate_limits[:unauthenticated_packages_api], public_visible: true + = render 'help/instance_configuration/rate_limit_row', title: _('Package Registry: authenticated API requests'), rate_limit: rate_limits[:authenticated_packages_api] + = render 'help/instance_configuration/rate_limit_row', title: _('Issue creation requests'), rate_limit: rate_limits[:issue_creation] + = render 'help/instance_configuration/rate_limit_row', title: _('Note creation requests'), rate_limit: rate_limits[:note_creation] + = render 'help/instance_configuration/rate_limit_row', title: _('Project export requests'), rate_limit: rate_limits[:project_export] + = render 'help/instance_configuration/rate_limit_row', title: _('Project export download requests'), rate_limit: rate_limits[:project_export_download] + = render 'help/instance_configuration/rate_limit_row', title: _('Project import requests'), rate_limit: rate_limits[:project_import] + = render 'help/instance_configuration/rate_limit_row', title: _('Group export requests'), rate_limit: rate_limits[:group_export] + = render 'help/instance_configuration/rate_limit_row', title: _('Group export download requests'), rate_limit: rate_limits[:group_export_download] + = render 'help/instance_configuration/rate_limit_row', title: _('Group import requests'), rate_limit: rate_limits[:group_import] + = render 'help/instance_configuration/rate_limit_row', title: _('Raw blob requests'), rate_limit: rate_limits[:raw_blob] + %br |