mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
accept suggestion by coderabbit
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -186,7 +186,11 @@ export const createDefaultTraefikConfig = () => {
|
|||||||
writeFileSync(mainConfig, yamlStr, "utf8");
|
writeFileSync(mainConfig, yamlStr, "utf8");
|
||||||
|
|
||||||
const acmeJsonPath = "/etc/dokploy/traefik/dynamic/acme.json";
|
const acmeJsonPath = "/etc/dokploy/traefik/dynamic/acme.json";
|
||||||
chmodSync(acmeJsonPath, '600');
|
if (existsSync(acmeJsonPath)) {
|
||||||
|
chmodSync(acmeJsonPath, '600');
|
||||||
|
} else {
|
||||||
|
console.error(`File not found: ${acmeJsonPath}`);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export const createDefaultMiddlewares = () => {
|
export const createDefaultMiddlewares = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user