Environment variables#
Note
This new documentation page has not yet been fully reviewed and may be incomplete.
When deploying LinkAhead with Docker Compose, these environment variables are used by Compose or inside the containers:
General settings#
LINKAHEAD_IMAGEThe Docker image used for the LinkAhead Java server.
Default:indiscale/linkahead:0.16.0LINKAHEAD_CONTAINER_NAMEThe name of the Docker container running the LinkAhead server.
Default:linkaheadCOMPOSE_PROJECT_NAMEThe name that identifies the Docker Compose setup. You can use this name to start and stop the Compose setup.
Default:defaultDEBUGIf
1, the Java server runs in debug mode.
Default:0DOCKER_TZDefines the time zone in the Docker container, which is used by the LinkAhead server.
Default:UTCUSERGROUPThe user and group (in
UID:GIDformat) assigned to the LinkAhead server process.
Default:999:999DOCKER_MAILIf
1, enables sending mail.
Default:0SENDMAILThe sendmail implementation to be used for sending mails. Typically
/usr/sbin/sendmailor/usr/local/bin/sendmail_to_file.
Default:/usr/sbin/sendmail
Authentication#
NIS_ENABLEIf
1, enables NIS authentication.
Default:0NIS_DOMAINSpecifies the NIS domain used for authentication. The domain can be acquired by running
ypdomainname.
Default:nis_domainNIS_SERVERSpecifies the NIS server used for authentication. The server can be acquired by running
ypwhich.
Default:nis_serverLDAP_ENABLEIf
1, enables LDAP authentication. In this case, anslcd.conffile with correct configuration must be mounted into the container.
Default:0LOCAL_USERSIf
1, users from the Docker host are available inside the Docker container.
Default:0
Server configuration#
The LinkAhead server can be configured via environment variables by prefixing the server.conf
options with LINKAHEAD_CONFIG_. See also the
server configuration docs and
linkahead/linkahead-server/-/blob/main/conf/core/server.conf
Example:
LINKAHEAD_CONFIG_AUTH_OPTIONAL=TRUE
Network configuration#
BIND_IPDefines which IP address the LinkAhead server binds to. An empty string (
"") means it accepts connections from any IP.
Default:127.0.0.1NO_TLSIf
1, disables TLS (SSL) in the LinkAhead server. This might be insecure!
Default:0
Ports#
LA_PORT_SSLThe host port mapped to the internal SSL port of the LinkAhead server.
Default:10443LA_PORT_PLAINThe host port mapped to the internal plain (non-SSL) HTTP port of the LinkAhead server.
Default:8000LA_PORT_DEBUGThe host port mapped to the Java debug interface of the LinkAhead server.
Default:9000LA_PORT_PROFILERThe host port mapped to the profiler interface of the LinkAhead server.
Default:9090LA_PORT_GRPC_SSLThe host port mapped to the internal gRPC SSL port of the LinkAhead server.
Default:8443LA_PORT_GRPC_PLAINThe host port mapped to the internal plain gRPC port of the LinkAhead server.
Default:8080
Proxy settings#
HTTP_PROXYOptional proxy URL for HTTP connections.
Default: (unset)HTTPS_PROXYOptional proxy URL for HTTPS connections.
Default: (unset)FTP_PROXYOptional proxy URL for FTP connections.
Default: (unset)NO_PROXYOptional comma-separated list of hosts or IPs that should bypass the proxy.
Default: (unset)
Envoy#
ENVOY_PATHPath to the
envoy.yamlconfiguration file. If empty, a default configuration with sensible defaults is used.
Default: (empty)ENVOY_UIDThe user ID of the Envoy proxy user.
Default:987ENVOY_PORT_PLAINPort for plain HTTP access via Envoy.
Default:8081ENVOY_PORT_SSLPort for HTTPS access via Envoy.
Default:10444
Note
The following settings are defined inside the envoy.yaml file, not via environment variables:
ENVOY_CONNECT_TIMEOUT, ENVOY_ROUTE_TIMEOUT.
Maintenance#
BACKUP_DIRThe directory used for storing and restoring backups.
Default:backup