airsonic: enable nginx.recommendedProxySettings with virtualHost

This fixes music playback when using the `services.airsonic.virtualHost`
option.
This commit is contained in:
Florian 2020-01-14 15:22:22 +01:00
parent 3a3ccb106e
commit 519d4f8e33

View File

@ -138,6 +138,7 @@ in {
services.nginx = mkIf (cfg.virtualHost != null) {
enable = true;
recommendedProxySettings = true;
virtualHosts.${cfg.virtualHost} = {
locations.${cfg.contextPath}.proxyPass = "http://${cfg.listenAddress}:${toString cfg.port}";
};