Jump to content

Wikibase/Indexing/WDQS Beta/nginx

From mediawiki.org

nginx config:

server {
    listen 80 default_server;
    listen [::]:80 default_server;

    location / {
        root /srv/blazegraph/gui;
    }

    location /bigdata {
        proxy_pass http://localhost:9999;

        proxy_set_header Host $http_host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-BIGDATA-MAX-QUERY-MILLIS 30000;

        add_header Access-Control-Allow-Origin *;

        client_max_body_size 10M;
        client_body_buffer_size 1m;
        proxy_intercept_errors on;
        proxy_buffering on;
        proxy_buffer_size 128k;
        proxy_buffers 256 16k;
        proxy_busy_buffers_size 256k;
        proxy_temp_file_write_size 256k;
        proxy_max_temp_file_size 0;
        proxy_read_timeout 300;

        limit_except GET OPTIONS {
            deny all;
        }
    }
}