From da31f0dc0d04a71a81cb50977096e862b2a8b55e Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 12 Mar 2018 10:07:07 +0100 Subject: [PATCH] Added domain specific logs --- public/assets/js/app.js | 13 +++++++++++++ public/index.html | 4 ++++ public/templates/conf/example.com.conf.html | 6 +++++- 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/public/assets/js/app.js b/public/assets/js/app.js index a14180b..0e0c208 100644 --- a/public/assets/js/app.js +++ b/public/assets/js/app.js @@ -65,6 +65,7 @@ pid: '/run/nginx.pid', access_log: '/var/log/nginx/access.log', error_log: '/var/log/nginx/error.log', + domain_log: '$base/log', client_max_body_size: 16, gzip: true, server_tokens: false, @@ -438,6 +439,18 @@ }, }, }; + }) + .filter('rtrim', function () { + return function (input, character) { + if (character === undefined) { + character = ' '; + } + if (character === "]") character = "\\]"; + if (character === "\\") character = "\\\\"; + return input.replace(new RegExp( + "[" + character + "]+$", "g" + ), ""); + } }); })(); diff --git a/public/index.html b/public/index.html index 393bbd2..7a16c38 100644 --- a/public/index.html +++ b/public/index.html @@ -314,6 +314,10 @@ +
+ + +
diff --git a/public/templates/conf/example.com.conf.html b/public/templates/conf/example.com.conf.html index 275f202..ad3c73d 100644 --- a/public/templates/conf/example.com.conf.html +++ b/public/templates/conf/example.com.conf.html @@ -21,7 +21,11 @@ server { root /var/www/{{ domain() }}{{ data.document_root }}; - index {{ data.index ? data.index : 'index.html' + (isPHP() ? ' index.php' : '') }};