From 7f9240dda79d4f0206dd5be931b4ad7eb7c2c2d1 Mon Sep 17 00:00:00 2001 From: Miguel Angel Nubla Date: Fri, 20 Dec 2024 00:59:26 +0100 Subject: [PATCH 1/2] Add custom configuration to dead_host.conf --- backend/templates/dead_host.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/templates/dead_host.conf b/backend/templates/dead_host.conf index 7a06469..2e7d2a0 100644 --- a/backend/templates/dead_host.conf +++ b/backend/templates/dead_host.conf @@ -22,5 +22,7 @@ server { } {% endif %} + # Custom + include /data/nginx/custom/server_dead[.]conf; } {% endif %} From 3eecf7a38b952a15feb32f648ac93569028a5254 Mon Sep 17 00:00:00 2001 From: Miguel Angel Nubla Date: Fri, 20 Dec 2024 01:03:21 +0100 Subject: [PATCH 2/2] Add custom configuration to 404 hosts --- docs/src/advanced-config/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/src/advanced-config/index.md b/docs/src/advanced-config/index.md index c9b42bc..373fd08 100644 --- a/docs/src/advanced-config/index.md +++ b/docs/src/advanced-config/index.md @@ -181,6 +181,7 @@ You can add your custom configuration snippet files at `/data/nginx/custom` as f - `/data/nginx/custom/server_stream.conf`: Included at the end of every stream server block - `/data/nginx/custom/server_stream_tcp.conf`: Included at the end of every TCP stream server block - `/data/nginx/custom/server_stream_udp.conf`: Included at the end of every UDP stream server block + - `/data/nginx/custom/server_dead.conf`: Included at the end of every 404 server block Every file is optional.