27 lines
1.0 KiB
Bash
27 lines
1.0 KiB
Bash
# Example settings of labd for /etc/lincodex-labd/labd.env on the app host.
|
|
# The file holds no secret: the token, certificate, and key are separate files
|
|
# that only the lincodex-labd user can read. See labd/README.en.md.
|
|
|
|
# Listen on the gateway of the application Docker network, so that only the
|
|
# backend reaches the API; the host firewall opens the port to that network.
|
|
LABD_LISTEN_ADDRESS=172.29.79.1:8445
|
|
LABD_ALLOWED_CLIENTS=172.29.79.0/24
|
|
LABD_TLS_CERT_FILE=/etc/lincodex-labd/tls.crt
|
|
LABD_TLS_KEY_FILE=/etc/lincodex-labd/tls.key
|
|
LABD_API_TOKEN_FILE=/etc/lincodex-labd/api-token
|
|
|
|
LABD_LXD_SOCKET=/var/snap/lxd/common/lxd/unix.socket
|
|
LABD_LXD_PROJECT=default
|
|
LABD_STATE_FILE=/var/lib/lincodex-labd/labs.json
|
|
|
|
# Guest memory of all labs together. One lincodex-lab-small node is 768 MiB;
|
|
# leave room for the core stack and the runner VM.
|
|
LABD_MEMORY_BUDGET_MIB=3072
|
|
LABD_MAX_LABS=0
|
|
LABD_MAX_LIFETIME=2h
|
|
|
|
LABD_MGMT_NETWORK=lxdbr-labmgmt
|
|
LABD_MGMT_SUBNET=10.81.0.0/24
|
|
LABD_MGMT_HOST_ADDRESS=10.81.0.1
|
|
LABD_MGMT_FIRST_ADDRESS=10.81.0.16
|