match also static pages like /docs/v4

This commit is contained in:
Karol Wypchlo 2022-03-03 16:44:27 +01:00
parent 3b47411f31
commit 7a213bb05a
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ client_max_body_size 128k;
rewrite ^/portals /skynet/portals permanent;
rewrite ^/stats /skynet/stats permanent;
rewrite ^/skynet/blacklist /skynet/blocklist permanent;
rewrite ^/docs https://sdk.skynetlabs.com permanent;
rewrite ^/docs(?:/(.*))?$ https://sdk.skynetlabs.com/$1 permanent;
location / {
include /etc/nginx/conf.d/include/cors;