From 59f99ad5f86f679085e718c07a7adce930cf1323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Sun, 13 Aug 2023 18:25:49 +0200 Subject: [PATCH] roles/cms: set `admin_num_proxies_used` in the generated `cms.conf` This is needed for the IP addresses to be shown correctly in the logs because the admin web server is deployed behind an nginx reverse proxy. --- roles/cms/templates/cms.conf.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/cms/templates/cms.conf.j2 b/roles/cms/templates/cms.conf.j2 index 5fe6932..85fe4c1 100644 --- a/roles/cms/templates/cms.conf.j2 +++ b/roles/cms/templates/cms.conf.j2 @@ -147,6 +147,12 @@ "_help": "The duration is refreshed on every manual request.", "admin_cookie_duration": 36000, + "_help": "The number of proxies that will be crossed before AWS gets", + "_help": "the request. This is used to determine the request's real", + "_help": "source IP address. For example, if you're using nginx as", + "_help": "a proxy, you will likely want to set this value to 1.", + "admin_num_proxies_used": 1, + "_section": "ScoringService",