Sign inSign up

sjdaws/dls

By sjdaws

Updated about 2 years ago

Image
0

1.6K

sjdaws/dls repository overview

DLS server

DLS server written in Go.

Environment variables
KeyDescriptionRequired
CONTAINER_PORTThe port for the container to listen for connections on, defaults to FORWARDER_PORT.No
DEBUGEnable debug for requests and responses. Note: this is very verbose.No
FORWARDER_HOSTThe external hostname to reach the server, defaults to localhost. Note: this should be the hostname of the proxy/forwarder.No
FORWARDER_PORTThe external port to reach the server, defaults to 80. Note: this should be the port of the proxy/forwarder.No
INSTANCE_REFERENCEUUID for the instance, defaults to 00000000-0000-0000-0000-000000000000.No
KEY_REFERENCEUUID for the key, defaults to 10000000-0000-0000-0000-000000000001.No
LEASE_DURATIONDuration of lease in format 1w2d3h4m5ns. Max 90d, defaults to 90d.No
LEASE_RENEWAL_PERCENTPercentage of licence time before a renewal should be triggered. Max 100(%), defaults to 15(%).No
NOTIFICATION_URLSURLs to notify via Shoutrrr.No
SCOPE_REFERENCEUUID for the scope, defaults to 20000000-0000-0000-0000-000000000002.No
SIGNING_KEYText for the private key used to sign JWTs.Yes*
SIGNING_KEY_PATHPath to the private key used to sign JWTs.Yes*

* One of SIGNING_KEY or SIGNING_KEY_PATH must be specified. Providing a text signing key allows DLS to run completely stateless.

Creating a signing key

Signing keys can be generated using openssl.

openssl genrsa -out signingkey.pem 2048 
Serve via HTTPS

Connections must be served via TLS connections, this should be run behind a proxy or other forwarder which provides SSL termination.

Download tok to instance

The .tok file can be downloaded using the following command.

curl -L -X GET https://<forwarder_host>:<forwarder_port>/token/download -o /etc/nvidia/ClientConfigToken/client_configuration_token_$(date '+%d-%m-%Y-%H-%M-%S').tok

Tag summary

Content type

Image

Digest

sha256:f5eb5a22a

Size

9.5 MB

Last updated

about 2 years ago

docker pull sjdaws/dls