From 97fb4248d922a8efcdcf83497b2632c7e255131b Mon Sep 17 00:00:00 2001 From: Yunohost-Bot <> Date: Wed, 31 Dec 2025 17:21:09 +0100 Subject: [PATCH] [autopatch] Automatic patch to simplify `proxy_pass`/`fastcgi_pass` options in nginx.conf (PLEASE DOUBLE CHECK BEFORE MERGING) --- conf/nginx.conf | 11 ++--------- manifest.toml | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 74a3cb0..fbd0dcd 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -2,14 +2,7 @@ location __PATH__/ { proxy_pass http://127.0.0.1:__PORT__; + + include proxy_params_no_auth; proxy_redirect off; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Host $server_name; - - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; } diff --git a/manifest.toml b/manifest.toml index 19e4e68..4c80534 100644 --- a/manifest.toml +++ b/manifest.toml @@ -21,7 +21,7 @@ cpe = "cpe:2.3:a:technitium:dnsserver" fund = "https://patreon.com/technitium" [integration] -yunohost = ">= 12.1.18" +yunohost = ">= 12.1.38" helpers_version = "2.1" architectures = ["amd64", "arm64", "armhf"] multi_instance = false