Merge branch 'master' into 20.03
This commit is contained in:
commit
7d62165696
@ -301,6 +301,7 @@ let
|
|||||||
default = mkDefault true;
|
default = mkDefault true;
|
||||||
inherit (webcfg) basicAuth;
|
inherit (webcfg) basicAuth;
|
||||||
root = optionalString rucfg.enable webdir;
|
root = optionalString rucfg.enable webdir;
|
||||||
|
listen = [ { inherit (webcfg) addr port; } ];
|
||||||
|
|
||||||
locations = {
|
locations = {
|
||||||
"/RPC2".extraConfig = ''
|
"/RPC2".extraConfig = ''
|
||||||
@ -319,15 +320,7 @@ let
|
|||||||
include ${pkgs.nginx}/conf/fastcgi.conf;
|
include ${pkgs.nginx}/conf/fastcgi.conf;
|
||||||
''; }
|
''; }
|
||||||
);
|
);
|
||||||
# workaround because upstream nginx api changed
|
};
|
||||||
# TODO remove when nobody uses 17.03 anymore
|
|
||||||
} // (if hasAttr "port" (head options.services.nginx.virtualHosts.type.getSubModules).submodule.options then {
|
|
||||||
port = webcfg.port;
|
|
||||||
} else {
|
|
||||||
listen = [
|
|
||||||
{ inherit (webcfg) addr port; }
|
|
||||||
];
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
rutorrent-imp = {
|
rutorrent-imp = {
|
||||||
|
Loading…
Reference in New Issue
Block a user