From 3d66ba98998b2ca33c029c44b5af57fad8d84a14 Mon Sep 17 00:00:00 2001 From: Yunohost-Bot <> Date: Wed, 31 Dec 2025 17:15:18 +0100 Subject: [PATCH] [autopatch] Automatic patch to simplify `proxy_pass`/`fastcgi_pass` options in nginx.conf (PLEASE DOUBLE CHECK BEFORE MERGING) --- conf/nginx.conf | 9 ++------- manifest.toml | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index dd9ce67..16be95b 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -2,12 +2,7 @@ location __PATH__/ { proxy_pass http://127.0.0.1:__PORT__; - proxy_set_header X-Real-IP $remote_addr; - proxy_http_version 1.1; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $host; - proxy_set_header Connection "Upgrade"; - proxy_set_header Upgrade $http_upgrade; + + include proxy_params_no_auth; proxy_set_header X-Nginx-Proxy true; - proxy_set_header X-Forwarded-Proto $scheme; } diff --git a/manifest.toml b/manifest.toml index 9e00bef..d5c9072 100644 --- a/manifest.toml +++ b/manifest.toml @@ -18,7 +18,7 @@ admindoc = "https://docs.pufferpanel.com/en/latest/" code = "https://github.com/PufferPanel/PufferPanel" [integration] -yunohost = ">= 12.1.17" +yunohost = ">= 12.1.38" helpers_version = "2.1" architectures = "all" multi_instance = false