-
Notifications
You must be signed in to change notification settings - Fork 22
Handle server setup
Handle server runs within backend container (dspace).
In order to run the following script, dependecy host must be installed, like this: apt update && apt install host -y and for installing the stream run this command sudo apt -y install libnginx-mod-stream
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.
Change IPs in /dspace/handle-server/config.dct to 0.0.0.0 - because the Docker could have different IP address (executed on host, not in container, obviously).
Ports according to official documentation https://www.handle.net/hnr_support.html (paragraph 5).
Add to /etc/nginx/nginx.conf:
stream {
server {
# for handle server
listen 2641;
proxy_pass localhost:2640;
}
}to /etc/nginx/nginx.conf:
Add to some site in /etc/nginx/sites-enabled.
# handle server HTTP
server {
listen 8011;
location / {
proxy_pass http://localhost:8010;
}
}
server {
# handle server HTTPS
server_name <SERVER_NAME>;
listen 8011 ssl;
ssl_certificate /etc/letsencrypt/live/<PATH_TO_CERT>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/<PATH_TO_CERT>/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / {
proxy_pass http://localhost:8010;
}
}sudo iptables -I INPUT -p tcp --dport 8011 -j ACCEPT
Getting Started
Features
- All Features — full categorised list
- CLARIN Licenses
- PIDs & Handles
- Featured Services / Refbox
- Field-Level Permissions
- File Previews
- Sharing a Submission
- Personal Access Tokens
- DOI Configuration per Community
- ROR Authority
Operations
- Kubernetes Deployment
- Samples (.env, Nginx)
- Nginx + Shibboleth
- Handle Server · Setup (v7)
- Shibboleth · DiscoJuice
- Shibboleth Accounts
- S3 Storage · CESNET S3
- Google Analytics
- Matomo
- Solr
- Logging
- Custom Namespace
- Health Report
For Users
Development
Reference
- Authorizations
- Metadata Info
- Citations (proposal)
- Repository Checklist
- Search, Browse & Filters
- Localization
- Importing Items (CLI)
- NFA Import - Steps
- OpenAIRE
- DOI Registration
- Inclusion in OLAC
- Unit Testing
- Deploy Checks
- Troubleshooting
- Versioning Theory
- Dynamic Resource Versioning
- Metashare Import · Schema
- Web Server Overview
- LINDAT Common Theme
- Workshop 2016 Results
- WebLicht Integration
- Google Dataset Search
Archive (v5 / stale)
- Old Home (v5)
- Installation (v5)
- Prerequisites (v5)
- Connecting Tomcat with Apache
- Using Apache
- Building Shibboleth FastCGI
- Shibboleth Install (v5)
- EUDAT Replication
- Backup (v5)
- Spring Social / Google Drive (v5)
- Clarin (→ Repository Checklist)
- Control Panel (v5)
- Overlays (v5)
- Configuration (v5)
- Speeding Up Downloads
- Debugging (v5)
- Selenium (v5)
- Code Contributions (v5)
- Best Practices (v5)
- Testing Hudson
- Working on Windows
- Prerequisites Checklist (v5)
- Migration to DSpace 7.2.1
- Upgrade From Lindat
- Piwik (→ Matomo) · Piwik Cleaning