nginx-lens 0.1.9__py3-none-any.whl → 0.2.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- analyzer/route.py +1 -1
- commands/route.py +1 -1
- {nginx_lens-0.1.9.dist-info → nginx_lens-0.2.1.dist-info}/METADATA +1 -1
- {nginx_lens-0.1.9.dist-info → nginx_lens-0.2.1.dist-info}/RECORD +8 -8
- {nginx_lens-0.1.9.dist-info → nginx_lens-0.2.1.dist-info}/WHEEL +0 -0
- {nginx_lens-0.1.9.dist-info → nginx_lens-0.2.1.dist-info}/entry_points.txt +0 -0
- {nginx_lens-0.1.9.dist-info → nginx_lens-0.2.1.dist-info}/licenses/LICENSE +0 -0
- {nginx_lens-0.1.9.dist-info → nginx_lens-0.2.1.dist-info}/top_level.txt +0 -0
analyzer/route.py
CHANGED
|
@@ -33,7 +33,7 @@ def find_route(tree, url: str) -> Optional[Dict[str, Any]]:
|
|
|
33
33
|
if score > best_server_score:
|
|
34
34
|
best_server = d
|
|
35
35
|
best_server_score = score
|
|
36
|
-
if not best_server:
|
|
36
|
+
if not best_server or best_server_score < 2:
|
|
37
37
|
return None
|
|
38
38
|
# 2. Внутри server ищем лучший location (longest prefix match)
|
|
39
39
|
best_loc = None
|
commands/route.py
CHANGED
|
@@ -29,7 +29,7 @@ def route(
|
|
|
29
29
|
else:
|
|
30
30
|
configs = glob.glob("/etc/nginx/**/*.conf", recursive=True)
|
|
31
31
|
if not configs:
|
|
32
|
-
console.print(Panel("Не найдено ни одного .conf файла в /etc/nginx", style="red"))
|
|
32
|
+
console.print(Panel("Не найдено ни одного .conf файла в /etc/nginx. Если конфигурация находится в другом месте, используйте опцию -c/--config.", style="red"))
|
|
33
33
|
return
|
|
34
34
|
for conf in configs:
|
|
35
35
|
try:
|
|
@@ -7,7 +7,7 @@ analyzer/duplicates.py,sha256=jpy_6k-BzWxaXFt2Wb3rlulIXUEzbFe9xYRm7rWR50U,1215
|
|
|
7
7
|
analyzer/empty_blocks.py,sha256=7Zu4-5I5PS3bjhH0Ppq1CvM7rMTeRIc4fHx5n5vkMIw,517
|
|
8
8
|
analyzer/include.py,sha256=FhKR4VsogLknykjLD2N8jX9OtwxZcWik5oPpvp-_luE,2465
|
|
9
9
|
analyzer/rewrite.py,sha256=-jSLLG1jqmGU-dXWvU6NHCW6muB8Lfro6fXX1tDCHCQ,1834
|
|
10
|
-
analyzer/route.py,sha256=
|
|
10
|
+
analyzer/route.py,sha256=71dkmQaTrHqDTf4Up5gAsrgmgktNpXqWmxr7-0RAVtg,2370
|
|
11
11
|
analyzer/unused.py,sha256=Ixzv0bPsw9IafblVwLiAOgugdg2dGu1MJDtuoqzPZiY,1066
|
|
12
12
|
analyzer/warnings.py,sha256=zC36QMvegA2eQPvZ-P1eysrX_kXHx5A1MUKHKKNvG5c,5784
|
|
13
13
|
commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -18,20 +18,20 @@ commands/graph.py,sha256=xB6KjXBkLmm5gII3e-5BMRGO7WeTwc7EFxRGzYgnme4,5947
|
|
|
18
18
|
commands/health.py,sha256=SuD2gOeMf9ZaoUfeqx1Nip0xQDBkDus6z872Fhw2Z9w,1682
|
|
19
19
|
commands/include.py,sha256=5PTYG5C00-AlWfIgpQXLq9E7C9yTFSv7HrZkM5ogDps,2224
|
|
20
20
|
commands/logs.py,sha256=RkPUdIpbO9dOVL56lemreYRuAjMjcqqMxRCKOFv2gC4,3691
|
|
21
|
-
commands/route.py,sha256
|
|
21
|
+
commands/route.py,sha256=-x_71u6ENl3iO-oxK3bdE8v5eZKf4xRCydeUyXMFVrY,3163
|
|
22
22
|
commands/syntax.py,sha256=ZWFdaL8LVv9S694wlk2aV3HJKb0OSKjw3wNgTlNvFR8,3418
|
|
23
23
|
commands/tree.py,sha256=mDfx0Aeg1EDQSYQoJ2nJIkSd_uP7ZR7pEqy7Cw3clQ0,2161
|
|
24
24
|
exporter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
25
|
exporter/graph.py,sha256=WYUrqUgCaK6KihgxAcRHaQn4oMo6b7ybC8yb_36ZIsA,3995
|
|
26
26
|
exporter/html.py,sha256=uquEM-WvBt2aV9GshgaI3UVhYd8sD0QQ-OmuNtvYUdU,798
|
|
27
27
|
exporter/markdown.py,sha256=_0mXQIhurGEZ0dO-eq9DbsuKNrgEDIblgtL3DAgYNo8,724
|
|
28
|
-
nginx_lens-0.1.
|
|
28
|
+
nginx_lens-0.2.1.dist-info/licenses/LICENSE,sha256=g8QXKdvZZC56rU8E12vIeYF6R4jeTWOsblOnYAda3K4,1073
|
|
29
29
|
parser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
30
|
parser/nginx_parser.py,sha256=Sa9FtGAkvTqNzoehBvgLUWPJHLLIZYWH9ugSHW50X8s,3699
|
|
31
31
|
upstream_checker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
32
|
upstream_checker/checker.py,sha256=9-6CMUTN7gXUACP8EwX722QogfujZyV-WWWUeM3a79k,455
|
|
33
|
-
nginx_lens-0.1.
|
|
34
|
-
nginx_lens-0.1.
|
|
35
|
-
nginx_lens-0.1.
|
|
36
|
-
nginx_lens-0.1.
|
|
37
|
-
nginx_lens-0.1.
|
|
33
|
+
nginx_lens-0.2.1.dist-info/METADATA,sha256=SskJ-Jnmu9U0GKY-iQT__GmzxCP3Xl-eVc6yZR61Zr8,520
|
|
34
|
+
nginx_lens-0.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
35
|
+
nginx_lens-0.2.1.dist-info/entry_points.txt,sha256=qEcecjSyLqcJjbIVlNlTpqAhPqDyaujUV5ZcBTAr3po,48
|
|
36
|
+
nginx_lens-0.2.1.dist-info/top_level.txt,sha256=mxLJO4rZg0rbixVGhplF3fUNFs8vxDIL25ronZNvRy4,51
|
|
37
|
+
nginx_lens-0.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|