mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
Improve nginx setup docs (#182)
* Change nginx config to return 403 on unauthorized access to the non-white TLP locations. We cannot hide the existence anyway, as it is listed in the provider-metadata.json, even when restricted.
This commit is contained in:
parent
2961a70bf2
commit
1e9d31277d
2 changed files with 2 additions and 4 deletions
|
|
@ -33,9 +33,7 @@ echo '
|
|||
autoindex on;
|
||||
# in this location access is only allowed with client certs
|
||||
if ($ssl_client_verify != SUCCESS){
|
||||
# we use status code 404 == "Not Found", because we do
|
||||
# not want to reveal if files within this location exist or not.
|
||||
return 404;
|
||||
return 403;
|
||||
}
|
||||
}
|
||||
'> ~/${FOLDERNAME}/clientCertificateConfigs.txt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue