Move files needed for reverse-proxy in /var/lib/mobilizon/www

This commit is contained in:
pitchum 2024-03-10 13:19:46 +00:00
parent 0bd8396b23
commit b75e909677
2 changed files with 4 additions and 3 deletions

View File

@ -57,7 +57,7 @@ server {
} }
location ~ ^/(assets|img) { location ~ ^/(assets|img) {
root /var/lib/mobilizon/priv/static; root /var/lib/mobilizon/www/static;
access_log off; access_log off;
add_header Cache-Control "public, max-age=31536000, s-maxage=31536000, immutable"; add_header Cache-Control "public, max-age=31536000, s-maxage=31536000, immutable";
} }
@ -70,7 +70,7 @@ server {
error_page 500 501 502 503 504 @error; error_page 500 501 502 503 504 @error;
location @error { location @error {
root /var/lib/mobilizon/priv/errors; root /var/lib/mobilizon/www/errors;
try_files /error.html 502; try_files /error.html 502;
} }

3
debian/install vendored
View File

@ -1,4 +1,5 @@
debian/config.exs.tpl etc/mobilizon debian/config.exs.tpl etc/mobilizon
_build/prod/rel/mobilizon/lib/mobilizon*/* var/lib/mobilizon _build/prod/rel/mobilizon/lib/mobilizon*/priv/static var/lib/mobilizon/www
_build/prod/rel/mobilizon/lib/mobilizon*/priv/errors var/lib/mobilizon/www
_build/prod/rel/mobilizon usr/share _build/prod/rel/mobilizon usr/share
debian/mobilizon_ctl bin debian/mobilizon_ctl bin