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
commit da232ea497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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}";
};