Fix acessing antispam via sidebar.

master
Dimitri Huisman 3 years ago
parent 3449b67c86
commit 6b16756d92

@ -75,7 +75,7 @@
</a> </a>
</li> </li>
<li class="nav-item" role="none"> <li class="nav-item" role="none">
<a href="{{ config["WEB_ADMIN"] }}/antispam" data-clicked="{{ url_for('.antispam') }}" target="_blank" class="nav-link" role="menuitem"> <a href="{{ config["WEB_ADMIN"] }}/antispam/" data-clicked="{{ url_for('.antispam') }}" target="_blank" class="nav-link" role="menuitem">
<i class="nav-icon fas fa-trash-alt"></i> <i class="nav-icon fas fa-trash-alt"></i>
<p>{% trans %}Antispam{% endtrans %}</p> <p>{% trans %}Antispam{% endtrans %}</p>
</a> </a>

@ -33,7 +33,6 @@ def webmail():
def client(): def client():
return flask.render_template('client.html') return flask.render_template('client.html')
@ui.route('/antispam', methods=['GET']) @ui.route('/webui_antispam', methods=['GET'])
def antispam(): def antispam():
return flask.render_template('antispam.html') return flask.render_template('antispam.html')

@ -186,7 +186,7 @@ http {
expires $expires; expires $expires;
} }
location ~ {{ WEB_ADMIN }}/antispam/ { location {{ WEB_ADMIN }}/antispam {
rewrite ^{{ WEB_ADMIN }}/antispam/(.*) /$1 break; rewrite ^{{ WEB_ADMIN }}/antispam/(.*) /$1 break;
auth_request /internal/auth/admin; auth_request /internal/auth/admin;
proxy_set_header X-Real-IP ""; proxy_set_header X-Real-IP "";

Loading…
Cancel
Save