fix(front): added "dynamic_preferences" path block to nginx
fixes banner image not loading (#2149) MR: !2442
This commit is contained in:
parent
b376d66e58
commit
ab521085e9
|
@ -0,0 +1 @@
|
||||||
|
Fix for banner images not being served on pods.
|
|
@ -132,6 +132,12 @@ server {
|
||||||
add_header Access-Control-Allow-Origin '*';
|
add_header Access-Control-Allow-Origin '*';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Allow direct access to only specific subdirectories in /media
|
||||||
|
location /media/dynamic_preferences/ {
|
||||||
|
alias ${MEDIA_ROOT}/dynamic_preferences/;
|
||||||
|
add_header Access-Control-Allow-Origin '*';
|
||||||
|
}
|
||||||
|
|
||||||
# This is an internal location that is used to serve
|
# This is an internal location that is used to serve
|
||||||
# media (uploaded) files once correct permission / authentication
|
# media (uploaded) files once correct permission / authentication
|
||||||
# has been checked on API side.
|
# has been checked on API side.
|
||||||
|
|
|
@ -132,6 +132,12 @@ http {
|
||||||
add_header Access-Control-Allow-Origin '*';
|
add_header Access-Control-Allow-Origin '*';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Allow direct access to only specific subdirectories in /media
|
||||||
|
location /media/dynamic_preferences/ {
|
||||||
|
alias ${MEDIA_ROOT}/dynamic_preferences/;
|
||||||
|
add_header Access-Control-Allow-Origin '*';
|
||||||
|
}
|
||||||
|
|
||||||
# This is an internal location that is used to serve
|
# This is an internal location that is used to serve
|
||||||
# media (uploaded) files once correct permission / authentication
|
# media (uploaded) files once correct permission / authentication
|
||||||
# has been checked on API side.
|
# has been checked on API side.
|
||||||
|
|
|
@ -97,6 +97,12 @@ server {
|
||||||
add_header Access-Control-Allow-Origin '*';
|
add_header Access-Control-Allow-Origin '*';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Allow direct access to only specific subdirectories in /media
|
||||||
|
location /media/dynamic_preferences/ {
|
||||||
|
alias ${MEDIA_ROOT}/dynamic_preferences/;
|
||||||
|
add_header Access-Control-Allow-Origin '*';
|
||||||
|
}
|
||||||
|
|
||||||
# This is an internal location that is used to serve
|
# This is an internal location that is used to serve
|
||||||
# media (uploaded) files once correct permission / authentication
|
# media (uploaded) files once correct permission / authentication
|
||||||
# has been checked on API side.
|
# has been checked on API side.
|
||||||
|
|
Loading…
Reference in New Issue