Infini-OPTIPLEX: add nginx url probe jail
This commit is contained in:
parent
75c4e4294b
commit
6fc8b69fff
2 changed files with 20 additions and 9 deletions
|
@ -23,18 +23,14 @@ in
|
|||
root = "/srv/web/inx.moe";
|
||||
tryFiles = "$uri $uri.html $uri/ =404";
|
||||
extraConfig = ''
|
||||
deny all;
|
||||
error_page 403 /403.html;
|
||||
error_page 404 /404.html;
|
||||
|
||||
error_page 403 404 /404.html;
|
||||
location ^~ /.well-known { allow all; }
|
||||
|
||||
location = /template.html { deny all; }
|
||||
location /.git { deny all; }
|
||||
|
||||
location = /404.html { allow all; internal; }
|
||||
|
||||
location ~* "\.(html|css|txt)$" { allow all; }
|
||||
location ~ "/[^.]+" { allow all; }
|
||||
location ~ "/$" { allow all; }
|
||||
location ~* "\.(nix|lock)" { deny all; }
|
||||
location ~ "/\..+" { deny all; }
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue