mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-11 06:11:13 +08:00
Some more confs
This commit is contained in:
7
src/nginxconfig/util/get_log_paths.js
Normal file
7
src/nginxconfig/util/get_log_paths.js
Normal 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`);
|
||||
};
|
Reference in New Issue
Block a user