mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-11-22 20:27:58 +00:00
New [Web_Viewer] ha_ingress flag. When it's on, requests from the Supervisor (172.30.32.2) carrying X-Ingress-Path get SCRIPT_NAME set from that header, count as authenticated (Home Assistant already logged the user in), and Socket.IO accepts the public Home Assistant origin. Templates use url_for, and browser code goes through window.appUrl and the existing fetch wrapper, so every link, redirect, API call and socket honors the prefix. With the flag off, nothing changes. A regression test fails on new root-relative URL literals that bypass those helpers.
21 lines
733 B
HTML
21 lines
733 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}{{ error_code }} {{ error_title }} — MeshCore Bot{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row justify-content-center mt-5">
|
|
<div class="col-md-6 text-center">
|
|
<div class="card shadow-sm">
|
|
<div class="card-body py-5">
|
|
<h1 class="display-1 fw-bold text-danger">{{ error_code }}</h1>
|
|
<h2 class="h4 mb-3">{{ error_title }}</h2>
|
|
<p class="text-muted mb-4">{{ error_message }}</p>
|
|
<a href="{{ url_for('index') }}" class="btn btn-primary">
|
|
<i class="fas fa-home me-1"></i> Back to Dashboard
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|