caddy lables
This commit is contained in:
@@ -200,8 +200,10 @@ export class ProjectService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Обновить конфигурацию (сохранить измененные домены и порты)
|
// Обновить конфигурацию (сохранить измененные домены и порты)
|
||||||
updateProjectConfig(projectId: string, config: ProjectConfig): Observable<ProjectConfig> {
|
updateProjectConfig(projectId: string, config: ProjectConfig): Observable<string> {
|
||||||
return this.http.put<ProjectConfig>(`${this.baseUrl}/user/projects/${projectId}/config`, config);
|
return this.http.put(`${this.baseUrl}/user/projects/${projectId}/config`, config, {
|
||||||
|
responseType: 'text'
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -152,6 +152,7 @@ public class ProjectService {
|
|||||||
assert config != null;
|
assert config != null;
|
||||||
String finalComposeContent = injectCaddyLabels(config.getRawComposeContent(), config);
|
String finalComposeContent = injectCaddyLabels(config.getRawComposeContent(), config);
|
||||||
|
|
||||||
|
logToConsole(projectId, finalComposeContent);
|
||||||
try {
|
try {
|
||||||
Files.createDirectories(projectPath);
|
Files.createDirectories(projectPath);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user