🐛 Fix images proxy, round 2 questions, media modal close
This commit is contained in:
@@ -29,14 +29,14 @@ server {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
|
||||
# Проксирование медиа (изображения, аудио, видео)
|
||||
location /images/ {
|
||||
# Проксирование медиа к серверу (prefix locations приоритетнее regex)
|
||||
location ^~ /images/ {
|
||||
proxy_pass http://svoya-igra-server:3001;
|
||||
}
|
||||
location /audio/ {
|
||||
location ^~ /audio/ {
|
||||
proxy_pass http://svoya-igra-server:3001;
|
||||
}
|
||||
location /video/ {
|
||||
location ^~ /video/ {
|
||||
proxy_pass http://svoya-igra-server:3001;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,7 @@ server {
|
||||
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||
}
|
||||
|
||||
# Кеширование статики клиента
|
||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
||||
expires 1y;
|
||||
add_header Cache-Control "public, immutable";
|
||||
|
||||
Reference in New Issue
Block a user