diff --git a/pillar/role/mailman3.sls b/pillar/role/mailman3.sls index d131dfb..a71828f 100644 --- a/pillar/role/mailman3.sls +++ b/pillar/role/mailman3.sls @@ -38,6 +38,8 @@ nginx: - include /etc/nginx/feeds.rewritemap - map $request_uri $mboxs_rewritemap: - include /etc/nginx/mboxs.rewritemap + - map $request_uri $miscs_rewritemap: + - include /etc/nginx/miscs.rewritemap - server: - server_name: lists.opensuse.org lists.uyuni-project.org - listen: @@ -51,12 +53,8 @@ nginx: - rewrite: ^(.*)$ $feeds_rewrite:map permanent - if ($mboxs_rewrite:map): - rewrite: ^(.*)$ $mboxs_rewrite:map permanent - - location /archive/: - - return: 301 /archives/ - - location /cgi-bin/search.cgi: - - return: 301 /archives/search - - location /stats: - - return: 301 / + - if ($miscs_rewrite:map): + - rewrite: ^(.*)$ $miscs_rewrite:map permanent - location /static/django-mailman3/img/login/opensuse.png: - return: 301 https://static.opensuse.org/favicon-24.png - location /static/: