fix /portals and /stats rewrites (#561)

This commit is contained in:
Karol Wypchło 2020-12-08 12:21:20 +01:00 committed by GitHub
parent e201b8de8f
commit cd7696c97d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -54,9 +54,9 @@ server {
client_max_body_size 128k; client_max_body_size 128k;
# legacy endpoint rewrite # legacy endpoint rewrite
rewrite /portals /skynet/portals permanent; rewrite ^/portals /skynet/portals permanent;
rewrite /stats /skynet/stats permanent; rewrite ^/stats /skynet/stats permanent;
rewrite /skynet/blacklist /skynet/blocklist permanent; rewrite ^/skynet/blacklist /skynet/blocklist permanent;
location / { location / {
# This is only safe workaround to reroute based on some conditions # This is only safe workaround to reroute based on some conditions