-
Notifications
You must be signed in to change notification settings - Fork 0
Proxy Nginx english version
nilsw-ra edited this page Jan 12, 2023
·
3 revisions
This configuration creates a reverse proxy where /iiif/ is the proxy address for https://lbiiif.riksarkivet.se/
location /iiif/ {
proxy_http_version 1.1;
proxy_ssl_server_name on;
# Custom User-Agent
proxy_set_header User-Agent "Riksarkivet Proxy Example Nginx/1.0";
# Nollställ Do Not Track-header så att anrop via proxyn kan statistikföras
proxy_set_header DNT "0";
# Lägg till CORS header i response
add_header Access-Control-Allow-Origin *;
proxy_pass https://lbiiif.riksarkivet.se/;
}
There is a pre-configured instance of Nginx in Docker/Docker-compose in this repo at
https://github.com/Riksarkivet/dataplattform/tree/main/docs/examples/iiif_reverse_proxy/nginx
NB: this is a minimal configuration, not a complete web server setup.