forked from potsda.mn/mobilizon
add static location for img
fixes not shown mobilizon image on "sorry-page" when service not running.
This commit is contained in:
parent
10ca260fc5
commit
8cae6d30c0
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue