[image-service] updated ALLOWED_FOLDERS
This commit is contained in:
parent
88351993cf
commit
54ecb2ee8c
3 changed files with 35 additions and 8 deletions
10
nginx.conf
10
nginx.conf
|
|
@ -2,13 +2,15 @@ server {
|
|||
listen 80;
|
||||
|
||||
# /image/{folder}/...
|
||||
location ~ ^/image/(page_drink_n|page_drink_press_n|page_drink_disable_n2)/(.*)$ {
|
||||
alias /taobin_project/image/$1/$2;
|
||||
location ~ ^/image/(page_drink|page_drink_disable|page_drink_disable_n|page_drink_disable_n2|page_drink_n|page_drink_picture2_n|page_drink_press|page_drink_press_n|page_drink_select)/(.*)$ {
|
||||
alias /usr/src/app/taobin_project/image/$1/$2;
|
||||
# alias /taobin_project/image/$1/$2;
|
||||
}
|
||||
|
||||
# /inter/{country}/image/{folder}/...
|
||||
location ~ ^/inter/([^/]+)/image/(page_drink_n|page_drink_press_n|page_drink_disable_n2)/(.*)$ {
|
||||
alias /taobin_project/inter/$1/image/$2/$3;
|
||||
location ~ ^/inter/([^/]+)/image/(page_drink|page_drink_disable|page_drink_disable_n|page_drink_disable_n2|page_drink_n|page_drink_picture2_n|page_drink_press|page_drink_press_n|page_drink_select)/(.*)$ {
|
||||
alias /usr/src/app/taobin_project/inter/$1/image/$2/$3;
|
||||
# alias /taobin_project/inter/$1/image/$2/$3;
|
||||
}
|
||||
|
||||
# Block any path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue