From 4b8164e14b94218d612b15b59502fa2404857ac6 Mon Sep 17 00:00:00 2001 From: Joe Wesch Date: Sat, 11 Feb 2023 00:53:39 +0000 Subject: [PATCH] Changes log filenames from ID to (first) domain --- backend/templates/dead_host.conf | 4 ++-- backend/templates/proxy_host.conf | 4 ++-- backend/templates/redirection_host.conf | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/templates/dead_host.conf b/backend/templates/dead_host.conf index d94dff57..87c64d0f 100644 --- a/backend/templates/dead_host.conf +++ b/backend/templates/dead_host.conf @@ -7,8 +7,8 @@ server { {% include "_hsts.conf" %} {% include "_forced_ssl.conf" %} - access_log /data/logs/dead-host-{{ id }}_access.log standard; - error_log /data/logs/dead-host-{{ id }}_error.log warn; + access_log /data/logs/dead-host-{{ domain_names | first }}_access.log standard; + error_log /data/logs/dead-host-{{ domain_names | first }}_error.log warn; {{ advanced_config }} diff --git a/backend/templates/proxy_host.conf b/backend/templates/proxy_host.conf index ec30cca0..14e638fa 100644 --- a/backend/templates/proxy_host.conf +++ b/backend/templates/proxy_host.conf @@ -19,8 +19,8 @@ proxy_set_header Connection $http_connection; proxy_http_version 1.1; {% endif %} - access_log /data/logs/proxy-host-{{ id }}_access.log proxy; - error_log /data/logs/proxy-host-{{ id }}_error.log warn; + access_log /data/logs/proxy-host-{{ domain_names | first }}_access.log proxy; + error_log /data/logs/proxy-host-{{ domain_names | first }}_error.log warn; {{ advanced_config }} diff --git a/backend/templates/redirection_host.conf b/backend/templates/redirection_host.conf index 339fe72e..fd3a729a 100644 --- a/backend/templates/redirection_host.conf +++ b/backend/templates/redirection_host.conf @@ -9,8 +9,8 @@ server { {% include "_hsts.conf" %} {% include "_forced_ssl.conf" %} - access_log /data/logs/redirection-host-{{ id }}_access.log standard; - error_log /data/logs/redirection-host-{{ id }}_error.log warn; + access_log /data/logs/redirection-host-{{ domain_names | first }}_access.log standard; + error_log /data/logs/redirection-host-{{ domain_names | first }}_error.log warn; {{ advanced_config }}