Unverified Commit 1afcb4c6 authored by Izorkin's avatar Izorkin
Browse files

nixos/peertube: update nginx configuration

parent 8d76c0b6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
        };