From e4272159939a3770f4b0745a399f8f6156aa911a Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 22 May 2020 19:32:45 +0000 Subject: [PATCH] commit 02c8e0a74588680e4a2261d5bd8298274a54468c Author: Robert Kaussow Date: Fri May 22 21:30:03 2020 +0200 move maps to http context in nginx.conf --- index.md | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/index.md b/index.md index 8bbb467..127684b 100644 --- a/index.md +++ b/index.md @@ -25,6 +25,7 @@ Setup [nginx](https://www.nginx.com/) webserver. Nginx is an open source reverse * [nginx_gzip_types](#nginx-gzip-types) * [nginx_hsts_options](#nginx-hsts-options) * [nginx_keepalive_timeout](#nginx-keepalive-timeout) + * [nginx_maps](#nginx-maps) * [nginx_official_repo_enabled](#nginx-official-repo-enabled) * [nginx_reset_timedout_connection](#nginx-reset-timedout-connection) * [nginx_send_timeout](#nginx-send-timeout) @@ -217,6 +218,25 @@ nginx_hsts_options: nginx_keepalive_timeout: 65 ``` +### nginx_maps + +#### Default value + +```YAML +nginx_maps: [] +``` + +#### Example usage + +```YAML +nginx_maps: + - input: $input + output: $output + parameters: + - "default 0" + - "/old/path /new_path" +``` + ### nginx_official_repo_enabled #### Default value @@ -410,12 +430,6 @@ nginx_vhosts_default: dhparam: client_max_body_size: send_timeout: - maps: - - input: $input - output: $output - parameters: - - "default 0" - - "/old/path /new_path" locations: - match: / root: /var/www/vhosts/default