Skip to content

Handle server setup

MajoBerger edited this page Jul 30, 2024 · 13 revisions

Generating config & running

Handle server runs within backend container (dspace). During installation, the config must be manually created by calling /dspace/bin/make-handle-config, see https://github.com/dataquest-dev/dspace-angular/blob/dtq-dev/.github/workflows/deploy.yml#L93-L101 for all the steps necessary. docker-compose-rest.yml is prepared, so that the handle folder is in volume and entrypoint is set, so that on restart, handle server starts.

Exposing with Nginx

add

stream {
    server {
    # for handle server
        listen 2641;
        proxy_pass localhost:2640;
    }
}

to /etc/nginx/nginx.conf.

and

# handle server HTTP
server {
    listen 8000;
    location / {
        proxy_pass http://localhost:8008;
    }
}

to some site in /etc/nginx/sites-enabled.

Clone this wiki locally