Skip to main content Link Search Menu Expand Document (external link)

Configuration

The portal is configured in the .env file at the root of ontoportal_docker, created from .env.sample on the first start. The service topology itself (containers, hostnames, volumes) is in docker-compose.yml; edit that file to change it.

Main settings

SettingPurpose
SITE, ORG_URL, SUPPORT_EMAIL, UI_THEMEPortal name, organisation link, support address and theme
UI_URL, API_URLPublic URLs of the web interface and the API
API_KEYAPI key used by the web interface to call the API
STARTER_ONTOLOGYOntology loaded when the portal is provisioned

Image versions

The API, ncbo_cron and web interface images run the master tag by default. For a portal in production, pin each one to a release:

IMAGE_REPOSITORY=agroportal
API_TAG=v3.5
NCBO_CRON_TAG=v3.5
UI_TAG=v3.5.1

Reverse proxy

nginx is the single public entry point: the application servers are only reachable through it. It provides buffering for slow clients, compression, upload size limits and timeouts. The ports and limits are set in .env:

SettingDefaultPurpose
NGINX_HTTP_PORT80Port of the web interface
NGINX_API_PORT9393Port of the API
NGINX_MAX_BODY_SIZE512mMaximum upload size (ontology submissions)
NGINX_PROXY_READ_TIMEOUT300sUpstream response timeout

Keep UI_URL and API_URL consistent with these ports. The nginx configuration itself is in config/nginx/templates/default.conf.template.

FAIRness scores

O’FAIRe scores the ontologies against the FAIR principles; the web interface shows the result on the ontology pages and on the landscape page. It is served next to the API, at /ofaire.

Scores are read from a cache, built once at the end of provisioning. An ontology added afterwards has no score until the cache is rebuilt:

docker compose run --rm fairness fairness-cache

Schedule this command (for example as a nightly cron job on the host) to keep the scores current. The other settings start with FAIRNESS_ in .env; in particular, set FAIRNESS_URL to the public URL (https://data.myportal.org/ofaire) on a public portal, and FAIRNESS_DISABLED=true hides the feature.