Configure your Connect server
This article documents Connect server environment variables and special configuration options, such as TLS and manual bus configuration.
1Password Connect Server consists of two containers running in the same network:
- The Connect API container (
1password/connect-api) - The Connect sync container (
1password/connect-sync)
Both containers require a shared volume to store an encrypted copy of your data.
Requirements
Before you can configure your 1Password Connect Server, you must:
Environment variables
The following table lists the available environment variables, their description, and the containers that support them. Most of the environment variables apply to the Connect API and Connect sync containers, but some only apply to the Connect API container.
| Environment variable | Description | Container support |
|---|---|---|
OP_SESSION | The path to the 1password-credentials.json file. You can also set the value to the Base64-encoded content of the 1password-credentials.json file. Acceptable values: A full file path to the 1password-credentials.json file. Default value: ~/.op/1password-credentials.json | • Connect API • Connect sync |
OP_HTTP_PORT | The port for the HTTP server. Acceptable values: Any available port number. Default value: 8080 | • Connect API • Connect sync |
OP_LOG_LEVEL | The logging level of the container. Acceptable values: info, error, debugDefault value: info | • Connect API • Connect sync |
XDG_DATA_HOME | The path in which to create the .op/data/ directory. See Data volume. Acceptable values: A valid file path. Default value: /home/opuser/.op/data | • Connect API • Connect sync |
OP_BUS_PORT | The port for listening to incoming bus connections from other containers. See Manual bus configuration for more details. Acceptable values: Any available port number. Default value: A random free port | • Connect API • Connect sync |
OP_BUS_PEERS | A comma-separated list of [hostname]:[bus port] pairs of other containers to connect to. See Manual bus configuration for more details.Acceptable values: A comma-separated list of [hostname]:[bus port] pairs. Default value: No default because this variable is optional. | • Connect API • Connect sync |
OP_HTTPS_PORT | The port for the HTTP server when using TLS. Acceptable values: Any available port number. Default value: 8443 | • Connect API |
OP_SYNC_TIMEOUT | The time (in seconds) to wait for the initial sync to complete. Acceptable values: A time duration (for example, 1h, 30m, 20s).Default value: 10s (10 seconds) |