Update proxy handling

This commit is contained in:
Daniel Berteaud 2024-03-02 22:13:13 +01:00
parent 7e050c3967
commit 63c013cc7b
2 changed files with 14 additions and 3 deletions

View File

@ -358,10 +358,20 @@ _EOT
TMPDIR = "/local"
MPLCONFIGDIR = "/local"
MACHINE_LEARNING_HOST = "127.0.0.1"
}
# Use a template block instead of env {} so we can fetch values from vault
template {
data = <<_EOT
LANG=fr_FR.utf8
TZ=Europe/Paris
_EOT
destination = "secrets/.env"
perms = 400
env = true
}
volume_mount {
volume = "ml"
destination = "/cache"

View File

@ -172,9 +172,10 @@ _EOT
TMPDIR = "/local"
MPLCONFIGDIR = "/local"
MACHINE_LEARNING_HOST = "127.0.0.1"
[[ template "common/proxy_env" $c ]]
}
[[ template "common/file_env" $c ]]
volume_mount {
volume = "ml"
destination = "/cache"