Skip to content

Commit 3800cde

Browse files
committed
Increase page_size for pagination
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 1117b57 commit 3800cde

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

etc/nginx/conf.d/default.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ server {
1212
proxy_redirect off;
1313
client_max_body_size 10G;
1414
proxy_read_timeout 600s;
15+
proxy_set_header X-Forwarded-Proto $scheme;
1516
}
1617

1718
location /static/ {

vulnerablecode/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
"EXCEPTION_HANDLER": "vulnerabilities.throttling.throttled_exception_handler",
252252
"DEFAULT_PAGINATION_CLASS": "vulnerabilities.pagination.SmallResultSetPagination",
253253
# Limit the load on the Database returning a small number of records by default. https://github.com/nexB/vulnerablecode/issues/819
254-
"PAGE_SIZE": 10,
254+
"PAGE_SIZE": 100,
255255
# for API docs
256256
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema",
257257
"DATETIME_FORMAT": "%Y-%m-%dT%H:%M:%SZ",

0 commit comments

Comments
 (0)