nixos/peertube: update nginx configuration

This commit is contained in:
Izorkin 2023-02-27 14:14:54 +03:00
parent 8d76c0b6fb
commit 1afcb4c6ef
No known key found for this signature in database
GPG Key ID: 1436C1B3F3679F09

View File

@ -490,7 +490,7 @@ in {
services.nginx = lib.mkIf cfg.configureNginx {
enable = true;
virtualHosts."${cfg.localDomain}" = {
root = "/var/lib/peertube";
root = "/var/lib/peertube/www";
# Application
locations."/" = {
@ -593,7 +593,7 @@ in {
# Bypass PeerTube for performance reasons.
locations."~ ^/client/(assets/images/(icons/icon-36x36\.png|icons/icon-48x48\.png|icons/icon-72x72\.png|icons/icon-96x96\.png|icons/icon-144x144\.png|icons/icon-192x192\.png|icons/icon-512x512\.png|logo\.svg|favicon\.png|default-playlist\.jpg|default-avatar-account\.png|default-avatar-account-48x48\.png|default-avatar-video-channel\.png|default-avatar-video-channel-48x48\.png))$" = {
tryFiles = "/www/client-overrides/$1 /www/client/$1 $1";
tryFiles = "/client-overrides/$1 /client/$1 $1";
priority = 1310;
};