fix(tmail-web): add DOMAIN_REDIRECT_URL to injected env file

Append DOMAIN_REDIRECT_URL=mail.<domain> to the env.file written for the
container so tmail-web redirects to the configured mail subdomain.
This commit is contained in:
Thomas Rijpstra 2026-06-25 09:57:16 +02:00
parent 9650772767
commit dccaca5720
Signed by: thomas
SSH Key Fingerprint: SHA256:NoPljIC4A210B8B3jJovKUIFRtnYxYA4ej6sgkR/yWA
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ variable "server_url" {
locals { locals {
env_file_host_path = "/opt/storage/data/tmail-web/env.file" env_file_host_path = "/opt/storage/data/tmail-web/env.file"
env_file_container_path = "/usr/share/nginx/html/assets/env.file" env_file_container_path = "/usr/share/nginx/html/assets/env.file"
env_file_content = "SERVER_URL=${var.server_url}\n" env_file_content = "SERVER_URL=${var.server_url}\nDOMAIN_REDIRECT_URL=mail.${var.server_domain}\n"
} }
resource "null_resource" "tmail_env_file" { resource "null_resource" "tmail_env_file" {