fix(plane): move env/mounts under [config] so template env exports correctly

The v1.3.1 rewrite (669ad4a) reordered template.toml so that
[[config.domains]] preceded the bare `env = [...]` and `mounts = []`
keys. In TOML those keys then attach to the first config.domains table
element instead of [config], leaving config.env undefined. Dokploy reads
env from config.env, so the base64 export / deploy shipped with no
environment variables at all.

Move env/mounts back above [[config.domains]] (matching the original
template and other blueprints like documenso). config.env now resolves
to all 39 entries; the domain table keeps only serviceName/port/host.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
LeoGomide
2026-06-03 10:43:51 -03:00
parent b24dbc7611
commit 2248627c98

View File

@@ -8,11 +8,6 @@ secret_key = "${base64:48}"
live_secret_key = "${base64:48}"
[config]
[[config.domains]]
serviceName = "proxy"
port = 80
host = "${main_domain}"
env = [
"APP_RELEASE=${app_release}",
"APP_DOMAIN=${main_domain}",
@@ -60,3 +55,8 @@ env = [
]
mounts = []
[[config.domains]]
serviceName = "proxy"
port = 80
host = "${main_domain}"