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

fixes banner image not loading (#2149)

MR: !2442
2151-refused-to-load-spa-manifest-json-2
AMoonRabbit 2023-06-15 13:13:38 +00:00 zatwierdzone przez JuniorJPDJ
rodzic b376d66e58
commit ab521085e9
4 zmienionych plików z 19 dodań i 0 usunięć

Wyświetl plik

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

Wyświetl plik

@ -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.

Wyświetl plik

@ -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.

Wyświetl plik

@ -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.