mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(certificates): ensure certificates are accessible by traefik
This commit is contained in:
@@ -5,34 +5,22 @@ export const IS_CLOUD = process.env.IS_CLOUD === "true";
|
|||||||
export const docker = new Docker();
|
export const docker = new Docker();
|
||||||
|
|
||||||
export const paths = (isServer = false) => {
|
export const paths = (isServer = false) => {
|
||||||
if (isServer) {
|
|
||||||
const BASE_PATH = "/etc/dokploy";
|
|
||||||
return {
|
|
||||||
BASE_PATH,
|
|
||||||
MAIN_TRAEFIK_PATH: `${BASE_PATH}/traefik`,
|
|
||||||
DYNAMIC_TRAEFIK_PATH: `${BASE_PATH}/traefik/dynamic`,
|
|
||||||
LOGS_PATH: `${BASE_PATH}/logs`,
|
|
||||||
APPLICATIONS_PATH: `${BASE_PATH}/applications`,
|
|
||||||
COMPOSE_PATH: `${BASE_PATH}/compose`,
|
|
||||||
SSH_PATH: `${BASE_PATH}/ssh`,
|
|
||||||
CERTIFICATES_PATH: `${BASE_PATH}/certificates`,
|
|
||||||
MONITORING_PATH: `${BASE_PATH}/monitoring`,
|
|
||||||
REGISTRY_PATH: `${BASE_PATH}/registry`,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
const BASE_PATH =
|
const BASE_PATH =
|
||||||
process.env.NODE_ENV === "production"
|
isServer || process.env.NODE_ENV === "production"
|
||||||
? "/etc/dokploy"
|
? "/etc/dokploy"
|
||||||
: path.join(process.cwd(), ".docker");
|
: path.join(process.cwd(), ".docker");
|
||||||
|
const MAIN_TRAEFIK_PATH = `${BASE_PATH}/traefik`;
|
||||||
|
const DYNAMIC_TRAEFIK_PATH = `${MAIN_TRAEFIK_PATH}/dynamic`;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
BASE_PATH,
|
BASE_PATH,
|
||||||
MAIN_TRAEFIK_PATH: `${BASE_PATH}/traefik`,
|
MAIN_TRAEFIK_PATH,
|
||||||
DYNAMIC_TRAEFIK_PATH: `${BASE_PATH}/traefik/dynamic`,
|
DYNAMIC_TRAEFIK_PATH,
|
||||||
LOGS_PATH: `${BASE_PATH}/logs`,
|
LOGS_PATH: `${BASE_PATH}/logs`,
|
||||||
APPLICATIONS_PATH: `${BASE_PATH}/applications`,
|
APPLICATIONS_PATH: `${BASE_PATH}/applications`,
|
||||||
COMPOSE_PATH: `${BASE_PATH}/compose`,
|
COMPOSE_PATH: `${BASE_PATH}/compose`,
|
||||||
SSH_PATH: `${BASE_PATH}/ssh`,
|
SSH_PATH: `${BASE_PATH}/ssh`,
|
||||||
CERTIFICATES_PATH: `${BASE_PATH}/certificates`,
|
CERTIFICATES_PATH: `${DYNAMIC_TRAEFIK_PATH}/certificates`,
|
||||||
MONITORING_PATH: `${BASE_PATH}/monitoring`,
|
MONITORING_PATH: `${BASE_PATH}/monitoring`,
|
||||||
REGISTRY_PATH: `${BASE_PATH}/registry`,
|
REGISTRY_PATH: `${BASE_PATH}/registry`,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user