Installation guide · Sign-in and tokens
Sign-in on: your organization
Register Sequences with your provider, write the settings, start the container and point the proxy at it.
You need a host name, such as sequences.example.org, its TLS certificate, and a reverse proxy on the same server that serves HTTPS on that name.
1. Register Sequences with your provider
Register a web application (a confidential client) that uses the authorization code flow:
- Redirect URI:
https://sequences.example.org/api/auth/callback - Scopes:
openid email profile - Client authentication: a client secret
Note the issuer URL, the client ID and the client secret. Provider settings shows where each one is.
2. Write the settings
Save the client secret in its own file, readable only by root and by group 10001, the service's group. read asks for the secret without showing it, so it stays out of your shell history:
sudo install -m 0640 -g 10001 /dev/null /etc/sequences/oidc-client-secret
read -rs SECRET && printf %s "$SECRET" | sudo tee /etc/sequences/oidc-client-secret > /dev/null; unset SECRET
Then write the settings in /etc/sequences/sequences.env:
BIOSEQUENCE_ALLOWED_HOSTS=sequences.example.org
BIOSEQUENCE_OIDC_ISSUER=<issuer URL>
BIOSEQUENCE_OIDC_CLIENT_ID=<client ID>
BIOSEQUENCE_OIDC_CLIENT_SECRET_FILE=/config/oidc-client-secret
BIOSEQUENCE_OIDC_NAME=your Example Org account
BIOSEQUENCE_ALLOWED_DOMAINS=example.org
Choose who may sign in with at least one of these:
BIOSEQUENCE_INVITE_FILE=/config/invite.txt: a file with one person per line, as the user claim names them (their email address by default), where#starts a comment. The service reads the file again whenever it changes and checks it on every request, so removing a line ends that person's access at their next click.BIOSEQUENCE_ALLOWED_DOMAINS: everyone whose user claim ends in@and one of these domains.BIOSEQUENCE_OIDC_REQUIRED_GROUP: only people whose group claim holds this value. The group claim is read at sign-in, so a change at the provider applies at the next sign-in, withinBIOSEQUENCE_SESSION_HOURS(12 by default).
A person may sign in when the invite file or an allowed domain names them, if you set either, and their group claim holds the required group, if you set one. With only a required group, everyone in that group may sign in. To let someone see the usage page, add them to BIOSEQUENCE_ADMINS as the user claim names them, separated by commas, such as BIOSEQUENCE_ADMINS=lab.manager@example.org. They must still be allowed to sign in. See Usage.
- With
BIOSEQUENCE_OIDC_USER_CLAIMset to anything butemail, also setBIOSEQUENCE_OIDC_REQUIRED_GROUP. The service checks that an email address is verified, but it has no way to check another claim, such as a sign-in name a user can change at some providers. - A user value with letters beyond plain ASCII, such as an accented name, never matches the invite file or an allowed domain. To let such people in, use the required group alone, with no invite file and no allowed domains.
- A case's owner can hand the case to a colleague's account. See Hand a case to a colleague. The colleague must have signed in here once, and the rule above must let them in now. The required group is the one their last sign-in found, as for API tokens, and a refused sign-in takes it away. With
BIOSEQUENCE_OIDC_USER_CLAIM=email, a case goes only to an address at its owner's own email domain, even whenBIOSEQUENCE_ALLOWED_DOMAINSnames several. - People who work on cases together can start an organization and share cases with it. See Share a case with your organization. An admin of the organization adds a member by the name the user claim gives them, on the same terms as a handover: they must have signed in here once, the rule above must let them in now, and with
BIOSEQUENCE_OIDC_USER_CLAIM=emailthey must be at the admin's own email domain. Membership grants no access to search and no seat: the rule above and the license still decide. - With more than one name in
BIOSEQUENCE_ALLOWED_HOSTS, sign-in happens at one address only:BIOSEQUENCE_SITE_URL, or the first name in the list. A visit on another name goes to that address first. Register only that address's redirect URI. - If your provider's certificate comes from your own certificate authority, put the authority's PEM file in
/etc/sequences/ca.pemand addNODE_EXTRA_CA_CERTS=/config/ca.pemto the settings.
3. Start the container
If you started the sign-in-off container, remove it first: docker stop sequences && docker rm sequences. Then:
docker run -d --name sequences --restart unless-stopped \
--read-only --tmpfs /tmp \
--cap-drop ALL --security-opt no-new-privileges \
-p 127.0.0.1:8765:8765 \
-v sequences-data:/data \
-v /etc/sequences:/config:ro \
--env-file /etc/sequences/sequences.env \
conductscience/sequences:<version>
docker logs sequences
The log names the host, the issuer and the license, for example:
Sequences for sequences.example.org, signed in through https://login.example.org/realms/example, on 0.0.0.0:8765
Trial license for Example Org, 2026-12-01 to 2027-01-15
Inside the container the service listens on all of its addresses (BIOSEQUENCE_HOSTED_BIND=0.0.0.0), and -p 127.0.0.1:8765:8765 publishes that port on the server's loopback address only. Keep the 127.0.0.1: part, so that only the reverse proxy reaches the port. The service answers only requests that name an allowed host. A request addressed to 127.0.0.1 works only from inside the container, which is how the image's health check reaches it. The one exception is GET /api/health, which also answers at an IP address, for a health check that cannot name your host. With this command, such a check runs on the server itself, at http://127.0.0.1:8765/api/health. A load balancer on another machine needs the port published on an address it can reach, as the AWS kit publishes it on the server's private address. See Health and logs.
4. Point the reverse proxy at it
The proxy serves HTTPS on your host name, passes the Host header through unchanged, and forwards to http://127.0.0.1:8765. With Caddy, which keeps the Host header and can get its own certificate for a name that is reachable from the internet:
sequences.example.org {
reverse_proxy 127.0.0.1:8765
}
For an internal name, give Caddy your certificate with a tls line in the same block, such as tls /etc/ssl/sequences.example.org.crt /etc/ssl/sequences.example.org.key.
With nginx, where a large sequence listing or result file needs a large upload limit:
server {
listen 443 ssl;
server_name sequences.example.org;
ssl_certificate /etc/ssl/sequences.example.org.crt;
ssl_certificate_key /etc/ssl/sequences.example.org.key;
client_max_body_size 2g;
proxy_request_buffering off;
location / {
proxy_pass http://127.0.0.1:8765;
proxy_set_header Host $host;
}
}
The Import page sends up to 10 files and 512 MiB in one request, POST /api/imports, and its answer comes once every file has gone in, which can take some minutes for a large result file. The nginx example takes their size; for the wait, add proxy_read_timeout 600s; to its location /. Behind another proxy, let that route take at least 520 MiB and wait 10 minutes for the answer.
Open https://sequences.example.org/ and sign in.
Guide version 1.63.0 · For Sequences 0.155.0