Skip to content

Commit

Permalink
main.tf: Add LOGS_TO_STDOUT env to log ssh to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelNdeCarvalho committed Oct 10, 2024
1 parent cd560a9 commit 9272ffc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ resource "kubernetes_deployment" "main" {
value = "linuxserver/mods:openssh-server-ssh-tunnel${var.ssh_log_to_stdout ? "|linuxserver/mods:universal-stdout-logs" : ""}"
}

dynamic "env" {
for_each = var.ssh_log_to_stdout ? ["dummy"] : []
content {
name = "LOGS_TO_STDOUT"
value = "/config/logs/openssh/current" # OpenSSH logs
}
}

env {
name = "PUBLIC_KEY_FILE"
value = "/defaults/authorized_keys"
Expand Down

0 comments on commit 9272ffc

Please sign in to comment.