diff --git a/config/default.yaml b/config/default.yaml index dce95440c8b..e1ebe24cc8e 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -140,6 +140,7 @@ storage: # Various admin/user uploads that are not suitable for the folders above uploads: 'storage/uploads/' # Overridable client files in client/dist/assets/images: + # - logo.svg # - default-avatar-account-48x48.png # - default-avatar-account.png # - default-avatar-video-channel-48x48.png diff --git a/config/production.yaml.example b/config/production.yaml.example index 908f6f41d09..4f33649fd01 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example @@ -138,6 +138,7 @@ storage: # Various admin/user uploads that are not suitable for the folders above uploads: '/var/www/peertube/storage/uploads/' # Overridable client files in client/dist/assets/images: + # - logo.svg # - default-avatar-account-48x48.png # - default-avatar-account.png # - default-avatar-video-channel-48x48.png diff --git a/support/nginx/peertube b/support/nginx/peertube index 10cda910004..e675fe66b26 100644 --- a/support/nginx/peertube +++ b/support/nginx/peertube @@ -191,7 +191,7 @@ server { # Bypass PeerTube for performance reasons. Optional. # Should be consistent with client-overrides assets list in client.ts server controller - location ~ ^/client/(assets/images/(default-playlist\.jpg|default-avatar-account\.png|default-avatar-account-48x48\.png|default-avatar-video-channel\.png|default-avatar-video-channel-48x48\.png))$ { + location ~ ^/client/(assets/images/(logo\.svg|default-playlist\.jpg|default-avatar-account\.png|default-avatar-account-48x48\.png|default-avatar-video-channel\.png|default-avatar-video-channel-48x48\.png))$ { add_header Cache-Control "public, max-age=31536000, immutable"; # Cache 1 year root /var/www/peertube;