mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
nixos/peertube: update nginx configuration
This commit is contained in:
parent
8d76c0b6fb
commit
1afcb4c6ef
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user