add static location for img
fixes not shown mobilizon image on "sorry-page" when service not running.
This commit is contained in:
@@ -75,6 +75,13 @@ server {
|
|||||||
default_type "text/plain";
|
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) {
|
location ~ ^/(js|css) {
|
||||||
root /opt/mobilizon/priv/static;
|
root /opt/mobilizon/priv/static;
|
||||||
etag off;
|
etag off;
|
||||||
|
|||||||
@@ -75,6 +75,13 @@ server {
|
|||||||
default_type "text/plain";
|
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) {
|
location ~ ^/(js|css) {
|
||||||
root /home/mobilizon/live/priv/static;
|
root /home/mobilizon/live/priv/static;
|
||||||
etag off;
|
etag off;
|
||||||
|
|||||||
Reference in New Issue
Block a user