This repository was archived by the owner on Aug 1, 2023. It is now read-only.
File tree 4 files changed +8
-6
lines changed
4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change
1
+ error_page 401 /401.html;
2
+ location = /401.html {
3
+ root /etc/nginx/conf.d/pages;
4
+ internal;
5
+ }
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ listen 443 ssl http2;
2
2
3
3
include /etc/nginx/conf.d/include/ssl-settings;
4
4
include /etc/nginx/conf.d/include/init-optional-variables;
5
+ include /etc/nginx/conf.d/include/error-pages;
5
6
6
7
# ddos protection: closing slow connections
7
8
client_body_timeout 1h;
@@ -23,12 +24,6 @@ rewrite ^/stats /skynet/stats permanent;
23
24
rewrite ^/skynet/blacklist /skynet/blocklist permanent;
24
25
rewrite ^/docs(?:/(.*))?$ https://sdk.skynetlabs.com/$1 permanent;
25
26
26
- error_page 401 /401.html;
27
- location = /401.html {
28
- root /etc/nginx/conf.d/pages;
29
- internal;
30
- }
31
-
32
27
location / {
33
28
include /etc/nginx/conf.d/include/cors;
34
29
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ listen 443 ssl http2;
2
2
3
3
include /etc/nginx/conf.d/include/ssl-settings;
4
4
include /etc/nginx/conf.d/include/init-optional-variables;
5
+ include /etc/nginx/conf.d/include/error-pages;
5
6
6
7
location / {
7
8
set_by_lua_block $hns_domain { return string.match(ngx.var.host, "[^%.]+") }
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ listen 443 ssl http2;
2
2
3
3
include /etc/nginx/conf.d/include/ssl-settings;
4
4
include /etc/nginx/conf.d/include/init-optional-variables;
5
+ include /etc/nginx/conf.d/include/error-pages;
5
6
6
7
location / {
7
8
set_by_lua_block $skylink { return string.match(ngx.var.host, "%w+") }
You can’t perform that action at this time.
0 commit comments