fix: prefix panel API requests with subpath for nginx proxy

Stats and node API calls were hitting /api/* at the site root instead of
the hidden PANEL_PATH, causing stats to show unavailable behind nginx.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-16 10:06:10 +08:00
parent 6edba863b5
commit d339fbd917
2 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
<title>{% block title %}jiedian 面板{% endblock %}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<body{% if request.script_root %} data-base="{{ request.script_root }}"{% endif %}>
{% block body %}{% endblock %}
{% block scripts %}{% endblock %}
</body>