mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
[fix] Assets not load on v1.4
This commit is contained in:
parent
0b5660c081
commit
0a8d567983
1 changed files with 9 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
|||
# upload max size
|
||||
client_max_body_size 100M;
|
||||
|
||||
# add to v1.4 assets
|
||||
root /home/mastodon/live/public;
|
||||
|
||||
location / {
|
||||
|
||||
if ($scheme = http) {
|
||||
|
@ -13,6 +16,12 @@ location / {
|
|||
include conf.d/yunohost_panel.conf.inc;
|
||||
}
|
||||
|
||||
# add to v1.4 assets
|
||||
location ~ ^/(assets|system/media_attachments/files|system/accounts/avatars) {
|
||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||
try_files $uri @proxy;
|
||||
}
|
||||
|
||||
location @proxy {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
|
Loading…
Add table
Reference in a new issue