Merge pull request #78129 from flyfloh/airsonic-vhost

airsonic: fix virtualHost option
This commit is contained in:
Michele Guerini Rocco
2020-04-15 09:18:28 +02:00
committed by GitHub

View File

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