mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-08 21:15:17 +00:00
accept suggestion by coderabbit
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
parent
32f35a6ca0
commit
087e2c81cc
@@ -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