From a1ab5d149be2e5a68d428e747236c631aadb404b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 22 Dec 2021 11:05:29 +0100 Subject: [PATCH] Bump yunohost requirement to 4.3.0 --- conf/nginx.conf | 6 +----- manifest.json | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index e096719..d54e506 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -3,11 +3,6 @@ location __PATH__/static/ { alias __PYTHON_VENV_SITE_PACKAGES__/ihatemoney/static/; } location __PATH__/ { - # Force usage of https - if ($scheme = http) { - rewrite ^ https://$server_name$request_uri? permanent; - } - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; @@ -18,6 +13,7 @@ location __PATH__/ { proxy_buffers 8 16k; proxy_busy_buffers_size 32k; proxy_intercept_errors on; + if (!-f $request_filename) { proxy_pass http://unix:/tmp/budget.gunicorn___APP__.sock; break; diff --git a/manifest.json b/manifest.json index fb46459..c69fa4f 100644 --- a/manifest.json +++ b/manifest.json @@ -22,7 +22,7 @@ "url": "https://jocelyn.delalande.fr" }, "requirements": { - "yunohost": ">= 4.1.0" + "yunohost": ">= 4.3.0" }, "multi_instance": true, "services": ["nginx", "mysql", "postfix"],