fix(front): added "dynamic_preferences" path block to nginx

fixes banner image not loading (#2149)

MR: !2442
This commit is contained in:
AMoonRabbit 2023-06-15 13:13:38 +00:00 committed by JuniorJPDJ
parent b376d66e58
commit ab521085e9
4 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1 @@
Fix for banner images not being served on pods.

View File

@ -132,6 +132,12 @@ server {
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
# media (uploaded) files once correct permission / authentication
# has been checked on API side.

View File

@ -132,6 +132,12 @@ http {
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
# media (uploaded) files once correct permission / authentication
# has been checked on API side.

View File

@ -97,6 +97,12 @@ server {
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
# media (uploaded) files once correct permission / authentication
# has been checked on API side.