Some more confs

This commit is contained in:
MattIPv4
2020-05-15 20:31:54 +01:00
parent b773081e5f
commit 96e72a44bb
2 changed files with 42 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
export const getAccessLogDomainPath = (domain, global) => {
return global.logging.accessLog.computed.replace(/([^/]+)\.log$/, `${domain.server.domain.computed}.$1.log`);
};
export const getErrorLogDomainPath = (domain, global) => {
return global.logging.errorLog.computed.replace(/([^/]+)\.log (.+)$/, `${domain.server.domain.computed}.$1.log $2`);
};