Skip to content

Commit

Permalink
Add resource_cache location in nginx configuration template
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCalvert committed Feb 1, 2024
1 parent 2610e60 commit 40500ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions nginx/setup/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ server {
location /resource_cache/ {
alias /var/lib/ckan/archiver/;
}

error_page 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 421 422 423 424 425 426 428 429 431 451 500 501 502 503 504 505 506 507 508 510 511 /error.html;

# redirect server error pages to the static page /error.html
Expand Down
5 changes: 5 additions & 0 deletions nginx/setup/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ server {
proxy_cache_key $host$scheme$proxy_host$request_uri;
}

# archived files from ckanext-archiver
location /resource_cache/ {
alias /var/lib/ckan/archiver/;
}

error_page 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 421 422 423 424 425 426 428 429 431 451 500 501 502 503 504 505 506 507 508 510 511 /error.html;

# redirect server error pages to the static page /error.html
Expand Down

0 comments on commit 40500ba

Please sign in to comment.