From ec0d61182357b5f96b94ebbcb2978b1ef71f61c3 Mon Sep 17 00:00:00 2001 From: jebabin Date: Mon, 10 Apr 2023 21:08:14 +0200 Subject: [PATCH] Allow to include custom configuration in the location / of proxy blocks --- backend/templates/proxy_host.conf | 2 ++ docs/advanced-config/README.md | 1 + 2 files changed, 3 insertions(+) diff --git a/backend/templates/proxy_host.conf b/backend/templates/proxy_host.conf index 81a542ea5..27ac5f4a8 100644 --- a/backend/templates/proxy_host.conf +++ b/backend/templates/proxy_host.conf @@ -41,6 +41,8 @@ proxy_http_version 1.1; # Proxy! include conf.d/include/proxy.conf; + # Custom + include /data/nginx/custom/server_proxy_location[.]conf; } {% endif %} diff --git a/docs/advanced-config/README.md b/docs/advanced-config/README.md index dd48647ee..a6124c222 100644 --- a/docs/advanced-config/README.md +++ b/docs/advanced-config/README.md @@ -154,6 +154,7 @@ You can add your custom configuration snippet files at `/data/nginx/custom` as f - `/data/nginx/custom/events.conf`: Included at the end of the events block - `/data/nginx/custom/stream.conf`: Included at the end of the main stream block - `/data/nginx/custom/server_proxy.conf`: Included at the end of every proxy server block +- `/data/nginx/custom/server_proxy_location.conf`: Included at the end of every location "/" of proxy server block - `/data/nginx/custom/server_redirect.conf`: Included at the end of every redirection server block - `/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