From 66b6b8d6dae364249027a08731be0802ec46847e Mon Sep 17 00:00:00 2001 From: tituspijean Date: Wed, 5 Jul 2023 00:23:57 +0200 Subject: [PATCH 1/2] [autopatch] Fix Host and X-Forwarded-For header spoofing --- conf/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index e8aea12..fdf77fe 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,7 +1,7 @@ location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $http_host; + proxy_set_header Host $host; proxy_set_header X-NginX-Proxy true; proxy_pass http://localhost:9220; From 6906184402e7fcc3f33e2da43f178647129d1633 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Wed, 21 Feb 2024 13:12:30 +0000 Subject: [PATCH 2/2] Auto-update README --- README.md | 4 ++-- README_fr.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7d8c819..eb3c7f3 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ @@ -69,4 +69,4 @@ or sudo yunohost app upgrade duniter -u https://github.com/YunoHost-Apps/duniter_ynh/tree/testing --debug ``` -**More info regarding app packaging:** +**More info regarding app packaging:** \ No newline at end of file diff --git a/README_fr.md b/README_fr.md index 962f993..060aeca 100644 --- a/README_fr.md +++ b/README_fr.md @@ -1,5 +1,5 @@