mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-16 02:46:44 +02:00
Fix acessing antispam via sidebar.
This commit is contained in:
parent
3449b67c86
commit
6b16756d92
@ -75,7 +75,7 @@
|
||||
</a>
|
||||
</li>
|
||||
<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>
|
||||
<p>{% trans %}Antispam{% endtrans %}</p>
|
||||
</a>
|
||||
|
@ -33,7 +33,6 @@ def webmail():
|
||||
def client():
|
||||
return flask.render_template('client.html')
|
||||
|
||||
@ui.route('/antispam', methods=['GET'])
|
||||
@ui.route('/webui_antispam', methods=['GET'])
|
||||
def antispam():
|
||||
return flask.render_template('antispam.html')
|
||||
|
||||
|
@ -186,7 +186,7 @@ http {
|
||||
expires $expires;
|
||||
}
|
||||
|
||||
location ~ {{ WEB_ADMIN }}/antispam/ {
|
||||
location {{ WEB_ADMIN }}/antispam {
|
||||
rewrite ^{{ WEB_ADMIN }}/antispam/(.*) /$1 break;
|
||||
auth_request /internal/auth/admin;
|
||||
proxy_set_header X-Real-IP "";
|
||||
|
Loading…
Reference in New Issue
Block a user