add static location for img

fixes not shown mobilizon image on "sorry-page" when service not
running.
This commit is contained in:
Jakobus Schürz 2022-01-19 21:47:34 +01:00
parent 10ca260fc5
commit 8cae6d30c0
2 changed files with 14 additions and 0 deletions

View File

@ -75,6 +75,13 @@ server {
default_type "text/plain";
}
location ~ ^/img {
root /opt/mobilizon/priv/static;
etag off;
access_log off;
add_header Cache-Control "public, max-age=31536000, immutable";
}
location ~ ^/(js|css) {
root /opt/mobilizon/priv/static;
etag off;

View File

@ -75,6 +75,13 @@ server {
default_type "text/plain";
}
location ~ ^/img {
root /opt/mobilizon/priv/static;
etag off;
access_log off;
add_header Cache-Control "public, max-age=31536000, immutable";
}
location ~ ^/(js|css) {
root /home/mobilizon/live/priv/static;
etag off;