caddy lables

This commit is contained in:
2026-05-29 16:16:31 +03:00
parent ebb011515a
commit 0c8718b7bf
2 changed files with 5 additions and 2 deletions
@@ -200,8 +200,10 @@ export class ProjectService {
}
// Обновить конфигурацию (сохранить измененные домены и порты)
updateProjectConfig(projectId: string, config: ProjectConfig): Observable<ProjectConfig> {
return this.http.put<ProjectConfig>(`${this.baseUrl}/user/projects/${projectId}/config`, config);
updateProjectConfig(projectId: string, config: ProjectConfig): Observable<string> {
return this.http.put(`${this.baseUrl}/user/projects/${projectId}/config`, config, {
responseType: 'text'
});
}
}
@@ -152,6 +152,7 @@ public class ProjectService {
assert config != null;
String finalComposeContent = injectCaddyLabels(config.getRawComposeContent(), config);
logToConsole(projectId, finalComposeContent);
try {
Files.createDirectories(projectPath);