mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Report http->https redirection as warning instead of info for app packaging v2
This commit is contained in:
parent
809c45601d
commit
50a325d27a
1 changed files with 2 additions and 1 deletions
|
@ -1312,7 +1312,8 @@ class Configurations(TestSuite):
|
||||||
|
|
||||||
content = open(app.path + "/conf/" + filename).read()
|
content = open(app.path + "/conf/" + filename).read()
|
||||||
if "if ($scheme = http)" in content and "rewrite ^ https" in content:
|
if "if ($scheme = http)" in content and "rewrite ^ https" in content:
|
||||||
yield Info(
|
level = Info if app_packaging_format <= 1 else Warning
|
||||||
|
yield level(
|
||||||
"Since Yunohost 4.3, the http->https redirect is handled by the core, "
|
"Since Yunohost 4.3, the http->https redirect is handled by the core, "
|
||||||
"therefore having an if ($scheme = http) { rewrite ^ https://... } block "
|
"therefore having an if ($scheme = http) { rewrite ^ https://... } block "
|
||||||
"in the nginx config file is deprecated. (This helps with supporting Yunohost-behind-reverse-proxy use case)"
|
"in the nginx config file is deprecated. (This helps with supporting Yunohost-behind-reverse-proxy use case)"
|
||||||
|
|
Loading…
Reference in a new issue