Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docker/web_nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,19 @@ server {
return 429 '{"status": 429, "message": "Too Many Requests. Consider using https://openlibrary.org/developers/dumps."}';
}

location /opds {
Comment thread
mekarpeles marked this conversation as resolved.
Outdated
proxy_pass https://ol-opds.prod.archive.org/;

Comment thread
mekarpeles marked this conversation as resolved.
Outdated
add_header X-OPDS-Backend "ol-opds.prod.archive.org" always;
proxy_set_header Host ol-opds.prod.archive.org;
proxy_set_header X-Real-IP $remote_addr;
Comment thread
mekarpeles marked this conversation as resolved.
Outdated
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Comment thread
mekarpeles marked this conversation as resolved.
Outdated
proxy_set_header X-Forwarded-Proto $scheme;
Comment thread
mekarpeles marked this conversation as resolved.
Outdated

# optional but usually needed
proxy_redirect off;
}

location / {
limit_req zone=web_limit burst=100 delay=10;
limit_req zone=ua_rate_limit burst=25 delay=10;
Expand Down
Loading