mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Correct indentation
This commit is contained in:
parent
8f91f35526
commit
6642772f76
@ -28,20 +28,20 @@ server {
|
|||||||
server_name example.com www.example.com;
|
server_name example.com www.example.com;
|
||||||
|
|
||||||
# Defend against SS-2015-013 -- http://www.silverstripe.org/software/download/security-releases/ss-2015-013
|
# Defend against SS-2015-013 -- http://www.silverstripe.org/software/download/security-releases/ss-2015-013
|
||||||
if ($http_x_forwarded_host) {
|
if ($http_x_forwarded_host) {
|
||||||
return 400;
|
return 400;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri /framework/main.php?url=$uri&$query_string;
|
try_files $uri /framework/main.php?url=$uri&$query_string;
|
||||||
}
|
}
|
||||||
|
|
||||||
error_page 404 /assets/error-404.html;
|
error_page 404 /assets/error-404.html;
|
||||||
error_page 500 /assets/error-500.html;
|
error_page 500 /assets/error-500.html;
|
||||||
|
|
||||||
location ^~ /assets/ {
|
location ^~ /assets/ {
|
||||||
sendfile on;
|
sendfile on;
|
||||||
try_files $uri =404;
|
try_files $uri =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /framework/.*(main|rpc|tiny_mce_gzip)\.php$ {
|
location ~ /framework/.*(main|rpc|tiny_mce_gzip)\.php$ {
|
||||||
@ -57,33 +57,33 @@ server {
|
|||||||
|
|
||||||
# Denials
|
# Denials
|
||||||
location ~ /\.. {
|
location ~ /\.. {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
location ~ \.ss$ {
|
location ~ \.ss$ {
|
||||||
satisfy any;
|
satisfy any;
|
||||||
allow 127.0.0.1;
|
allow 127.0.0.1;
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
location ~ web\.config$ {
|
location ~ web\.config$ {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
location ~ \.ya?ml$ {
|
location ~ \.ya?ml$ {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
location ~* README.*$ {
|
location ~* README.*$ {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
location ^~ /vendor/ {
|
location ^~ /vendor/ {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
location ~* /silverstripe-cache/ {
|
location ~* /silverstripe-cache/ {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
location ~* composer\.(json|lock)$ {
|
location ~* composer\.(json|lock)$ {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
location ~* /(cms|framework)/silverstripe_version$ {
|
location ~* /(cms|framework)/silverstripe_version$ {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user