Change /dump url to internal in nginx conf
/dump is used for snapshot downloading - since we want to allow only authenticated users, we change the url to /api/dump/ (which is handled by nailgun and authentication occurs). Then user is redirected to /dump (using XSendfile). To prevent potential intruder from downloading sensitive data /dump should be changed to 'internal'. Change-Id: I1ee2758e3f21803c82c3587e706f46877fcfbe9b Implements: blueprint snapshot-download-with-auth Depends-On: Id46b533e8d2a8021d1fbb2e5d4284508e1181704
This commit is contained in:
parent
f25d5da0a9
commit
0f891c7584
@ -24,6 +24,7 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /dump {
|
location /dump {
|
||||||
|
internal;
|
||||||
alias <%= @logdumpdir %>;
|
alias <%= @logdumpdir %>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user