fix(server): switch Fluentd logging from legacy env vars to Docker labels

This commit is contained in:
volcie 2025-09-17 12:43:54 +03:00
parent 9e8fb36bc8
commit 81986d627c

View file

@ -2687,8 +2687,8 @@ function generate_fluentd_configuration(): array
'fluentd-address' => 'tcp://127.0.0.1:24224',
'fluentd-async' => 'true',
'fluentd-sub-second-precision' => 'true',
// env vars are used in the LogDrain configurations
'env' => 'COOLIFY_APP_NAME,COOLIFY_PROJECT_NAME,COOLIFY_SERVER_IP,COOLIFY_ENVIRONMENT_NAME',
// labels are used in the LogDrain configurations
'labels' => 'coolify.name,coolify.projectName,coolify.environmentName',
],
];
}