Skip to content

Commit

Permalink
Add required proxy changes for ukwa/ukwa-pywb#94 and #100.
Browse files Browse the repository at this point in the history
  • Loading branch information
anjackson committed Jul 26, 2022
1 parent 6d0385c commit be607d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions ingest/w3act/config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@ server {
# NGINX merging // to / routinely causes problems for us, so lets switch it off:
merge_slashes off;

# Add header for tracing where issues occur:
add_header Via $hostname;

# Avoid mistaken hostnames being used:
absolute_redirect off;

# Do not buffer responses so streaming can function:
proxy_buffering off;
proxy_http_version 1.1;

# proxies -----------------------------------------------------------
location /act/wayback {
# Ensure this service authenticates against W3ACT
Expand Down Expand Up @@ -37,9 +44,9 @@ server {
uwsgi_pass pywb:8081;

uwsgi_force_ranges on;
uwsgi_buffer_size 64k;
uwsgi_buffers 16 64k;
uwsgi_busy_buffers_size 64k;
uwsgi_buffer_size 256k;
uwsgi_buffers 16 256k;
uwsgi_busy_buffers_size 256k;
uwsgi_request_buffering off;
uwsgi_buffering off;
}
Expand Down
2 changes: 1 addition & 1 deletion ingest/w3act/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:

# PyWB for QA
pywb:
image: ukwa/ukwa-pywb:2.6.7
image: ukwa/ukwa-pywb:2.6.7.2
environment:
UKWA_INDEX: "http://cdx.api.wa.bl.uk/data-heritrix?url={url}&closest={closest}&sort=closest&filter=!statuscode:429&filter=!mimetype:warc/revisit"
UKWA_ARCHIVE: "webhdfs://warc-server:8000/by-filename/"
Expand Down

0 comments on commit be607d4

Please sign in to comment.