try internal location

This commit is contained in:
Karol Wypchlo 2022-05-20 14:59:19 +02:00
parent 3fe46e3ef6
commit dc602054f2
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
1 changed files with 5 additions and 3 deletions

View File

@ -23,9 +23,11 @@ rewrite ^/stats /skynet/stats permanent;
rewrite ^/skynet/blacklist /skynet/blocklist permanent; rewrite ^/skynet/blacklist /skynet/blocklist permanent;
rewrite ^/docs(?:/(.*))?$ https://sdk.skynetlabs.com/$1 permanent; rewrite ^/docs(?:/(.*))?$ https://sdk.skynetlabs.com/$1 permanent;
error_page 401 = @http_401; error_page 401 /401.html;
location @http_401 { location = /401.html {
alias /etc/nginx/conf.d/pages/401.txt; root /etc/nginx/conf.d/pages;
allow all;
internal;
} }
#location / { #location / {